@import url('https://fonts.googleapis.com/css2?family=Poiret+One&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --primary-color: #1a3a5f;
    --secondary-color: #f1c40f;
    --accent-color: #2c5282;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
}

.navbar {
    background-color: var(--primary-color);
}

.navbar-brand img {
    max-height: 50px;
}

.nav-item{
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.col-md-6{
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
    text-align: justify;
    line-height: 2.0;
}

.hero-section {
    position: relative;
    height: 100vh; /* ocupa toda la pantalla */
    background: url("../img/redd-francisco-5U_28ojjgms-unsplash.jpg") no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    border-radius: 0 0 50px 50px; /* redondea bordes inferiores */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-top: 0; /* elimina cualquier espacio superior */
    overflow: hidden;
    font-family: "Poppins", sans-serif;
}

/* Capa oscura encima de la imagen */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(32, 67, 88, 0.45);
    z-index: 1;
    border-radius: inherit;
  }

/* Contenido encima de la capa oscura */
.hero-section .container {
    position: relative;
    z-index: 2;
    padding-top: 80px; /* deja espacio para el navbar */
  }

/* Botón personalizado */
.hero-section .btn {
    background-color: #ffffff;
    color: #000;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
  }

.hero-section .btn:hover {
    background-color: #1a3044;
    color: #ffffff; 
  }

.section-title {
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* MISIÓN Y VISIÓN EDIT*/

#mission-vision {
    background-color: #f9f9f9; /* fondo suave */
    padding: 80px 0;
  }
  
  #mision-vision .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
  }
  
  #mision-vision .section-title::after {
    content: "";
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: #f1c40f;
    bottom: 0;
    left: 9%;
    transform: translateX(-50%);
    border-radius: 2px;
  }

.mission-vision-card {
    background-color: #fff;
    border-radius: 20px;
    padding: 30px 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.6s ease;
    opacity: 0;
    transform: translateY(40px); /* inicia desplazada hacia abajo */
}

/* Animación al hacer scroll */
.mission-vision-card.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Iconos dentro de h3 */
  .mission-vision-card h3 i {
    font-size: 1.3rem;
    color: #f1c40f;
  }
  
  /* Texto */
  .mission-vision-card p {
    color: #555;
    line-height: 1.6;
    margin-top: 15px;
  }

  @media (max-width: 768px) {
    .mission-vision-card {
      padding: 20px 15px;
    }
  }

/* --- Sección Nuestra Historia --- */

#historia {
    padding: 80px 0;
    background-color: #f8f9fa; /* fondo claro */
  }
  
  #historia .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
  }
  
  #historia .section-title::after {
    content: "";
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: #f1c40f;
    bottom: 0;
    left: 9%;
    transform: translateX(-50%);
    border-radius: 2px;
  }

  /* Animación para texto */
.historia-text,
.historia-image {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease;
}

/* Cuando se hace visible al scroll */
.historia-text.visible,
.historia-image.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Imagen */
.historia-image img {
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: auto;
}

/* Responsive */
@media (max-width: 768px) {
  #historia .row {
    flex-direction: column-reverse;
    text-align: center;
  }

  .historia-text,
  .historia-image {
    transform: translateY(20px);
  }
}

/* --- Clientes --- */

#testimonio {
    padding: 80px 0;
    background-color: #ffffff; /* fondo claro */
  }

  #clientes .section-title{
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
  }

  #clientes .section-title::after{
    content: '';
    position: absolute;
    bottom: 1px;
    left: 10%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #f1c40f;
    border-radius: 2px;
  }

.cliente-card {
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    transform: translateY(40px);
  }

.cliente-card.visible {
    opacity: 1;
    transform: translateY(0);
  }
  

.client-logo {
    max-width: 250px;
    border-radius: 15px;
    margin-right: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.client-logo:hover {
    transform: scale(1.1);
}

/* Info cliente */
.cliente-info h5 {
    font-weight: 600;
    margin-bottom: 5px;
  }
  
.cliente-info p {
    margin: 0;
    color: #555;
  }
  
  /* Para flechas del carrusel en el centro vertical */
.carousel-control-prev,
.carousel-control-next {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    height: auto;
    width: auto;
    opacity: 0.1;
    transition: opacity 0.5s;
  }

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
  }

/* Posicionamiento específico */
.carousel-control-prev {
    left: 10px;
  }

.carousel-control-next {
    right: 10px;
  }

/* Estilo de las flechas */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 15px;
    background-size: 50%;
  }

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }

/* ----Tarjeta general en Testimonios----- */

.testimonial-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    transform: translateY(40px);
    opacity: 0;
    height: 100%;
    text-align: center;
  }

 #testimonio .section-title{
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
 }

 #testimonio .section-title::after{
    content: "";
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: #f1c40f;
    bottom: 0;
    left: 9%;
    transform: translateX(-50%);
    border-radius: 2px;
 }
  
  /* Aparece al hacer scroll */
  .testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Hover: flotar con sombra */
  .testimonial-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  }
  
  /* Estrellas */
  .star-rating i {
    color: #f1c40f;
    margin-right: 3px;
    font-size: 18px;
  }
  
  /* Texto */
  .testimonial-card p {
    font-style: bold;
    color: #555;
    margin-bottom: 20px;
  }
  
  /* Footer (nombre y cargo) */
  .testimonial-footer h6 {
    font-weight: 600;
    margin-bottom: 3px;
    color: #1a3a5f;
  }
  
  .testimonial-footer small {
    color: #777;
  }
  
  /* Responsive: separaciones y centrado */
  @media (max-width: 992px) {
    .testimonial-card {
      margin: 10px auto;
      padding: 25px;
    }
  }
  
  /* Animación suave */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(26, 58, 95, 0.25);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-text{
    font-family: "Poppins", sans-serif;
    font-weight: 00;
    font-style: normal;
}

.navbar {
    position: absolute; /* lo coloca encima del Hero */
    top: 20px; /* baja un poco para que no quede pegado arriba */
    left: 50%;
    transform: translateX(-50%); /* centra horizontalmente */
    width: 90%;
    background-color: rgb(19, 41, 68); /* fondo semitransparente */
    backdrop-filter: blur(10px); /* efecto vidrio */
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    padding: 10px 30px;
    z-index: 100;
  }

  /* Logo dentro del navbar */
.navbar-brand img {
    height: 45px;
    transition: transform 0.3s ease;
  }

.navbar-brand img:hover {
    transform: scale(1.05);
  }

/* Estilo de enlaces */
.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    border-radius: 12px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    margin: 0 12px;
  }

/* Efecto al pasar el mouse */
.navbar-nav .nav-link:hover {
    background-color: #ffffff;
    color: #000 !important;
  }


  /* -------PARTE DE CONTÁCTANOS------- */

/* ===============================
   SECCIÓN DE CONTACTO
   =============================== */
   .contact-section {
    background: #f9f9fb;
    padding: 80px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
  }

  .text-muted1 {
    font-family: "Poppins", sans-serif;
    font-size: x-large;
    font-weight: 300;
    font-style: normal;
    text-align: center;
    line-height: 1.8;
  }
  
  /* TITULOS DE LA SECCIÓN */
  .contact-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a3044;
    position: relative;
    font-family: "Poppins", sans-serif;
  }
  
  .contact-section .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #f1c40f;
    margin: 10px auto 0;
    border-radius: 2px;
  }
  
  .contact-section h3.text-muted {
    font-weight: 400;
    color: #6c757d;
    margin-top: 10px;
    font-size: 1.1rem;
  }
  
  /* CONTENEDOR FORMULARIO + INFO */
  .contact-section .contact-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
  }
  
  /* ===============================
     FORMULARIO
     =============================== */
  #contactForm {
    flex: 1 1 50%;
    background: #fff;
    padding: 48px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
  }
  
  #contactForm.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  #contactForm .form-control {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
  }
  
  #contactForm .form-control:focus {
    border-color: #1a3044;
    box-shadow: 0 0 8px rgba(0,123,255,0.2);
    outline: none;
  }
  
  #contactForm .btn {
    background: #0056b3;
    color: #fff;
    font-weight: 600;
    padding: 12px 35px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  #contactForm .btn:hover {
    background: #94acc3;
    transform: translateY(-2px);
  }
  
  /* ===============================
     INFORMACIÓN DE CONTACTO
     =============================== */
  .contact-info {
    flex: 1 1 40%;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease 0.2s;
  }
  
  .contact-info.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .contact-info .info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
  }
  
  .contact-info .info-item i {
    font-size: 1.8rem;
    color: #1a3044;
    min-width: 40px;
    text-align: center;
  }
  
  .contact-info .info-item h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
  }
  
  .contact-info .info-item p {
    font-size: 0.95rem;
    color: #555;
  }
  
  .contact-info .info-item a {
    color: #1a3044;
    text-decoration: none;
  }
  
  .contact-info .info-item a:hover {
    text-decoration: underline;
  }
  
  /* BOTONES DE MAPAS */
  .map-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
  }
  
  .map-links .map-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0056b3;
    color: #fff;
    padding: 10px 18px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  .map-links .map-btn img {
    width: 20px;
    height: 20px;
  }
  
  .map-links .map-btn:hover {
    background: #94acc3;
    transform: translateY(-2px);
  } 
  
  /* ===============================
     RESPONSIVE
     =============================== */
  @media (max-width: 992px) {
    .contact-section .contact-row {
      flex-direction: column;
      align-items: center;
    }
  
    #contactForm, .contact-info {
      flex: 1 1 100%;
      margin-bottom: 30px;
    }
  }
  
  @media (max-width: 576px) {
    .contact-section .section-title {
      font-size: 2rem;
    }
  
    #contactForm .form-control, #contactForm .btn {
      font-size: 0.95rem;
    }
  
    .contact-info .info-item i {
      font-size: 1.5rem;
    }
  }  


  /* --------FOOTER--------- */

  /* Footer general */

  .footer-section {
    background: url('../img/entorno-de-derecho-fotorrealista.jpg') center center/cover no-repeat;
    position: relative;
    color: #f8f9fa;
    font-family: 'Poppins', sans-serif;
}

/* Overlay semitransparente */
.footer-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(52, 58, 64, 0.7); /* gris oscuro con transparencia */
    z-index: 0;
}

/* Contenido centrado por encima del overlay */
.footer-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* Logo */
.footer-logo img {
    max-width: 150px;
    height: auto;
}

/* Título de la empresa */
.footer-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

/* Redes sociales */
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(73, 80, 87, 0.7); /* semitransparente */
    color: #f8f9fa;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: #007bff;
    color: #fff;
    transform: translateY(-2px);
}

/* Derechos reservados */
.footer-copy {
    font-size: 0.9rem;
    color: #f8f9fa;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 576px) {
    .footer-title {
        font-size: 1.3rem;
    }

    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}
