* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  /* Se divide 10px / 16 px dando 0.625 y al usar 
  porcentajes se respetan los tamaños en versiones responsivas*/
  /* font-size: 62.5%; */
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: sans-serif;
  line-height: 2;
  color: #121958;
  font-family: "Google Sans", sans-serif;

  /*solo funciona si no hay nada posicionado 
  absoluto en relacion con body*/
  overflow-x: hidden;
}

h1 {
  line-height: 1.5;
  margin-top: 1em;
  margin-bottom: 1em;
}

.title {
  padding: 2rem 5.6rem 0rem;
}

.title-center {
  padding: 2rem 5.6rem 0rem;
  text-align: center;
}

.dark-background {
  background: #121958;
}

.dark-background-font {
  color: white;
}

/* ---------- NAVBAR ---------- */

/* --- RESET Y BASE --- */
.navbar {
  display: flex;
  justify-content: space-between; /* Logo a la izquierda, menú/hamburguesa a la derecha */
  align-items: center;
  padding: 10px 5%;
  background-color: #ffffff;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.logo img {
  height: 50px; /* Ajusta según tu logo */
  width: auto;
}

/* --- MENÚ PARA ESCRITORIO --- */
.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
  margin: 0;
  padding: 0;
  transition: 0.5s;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: 0.3s;
}

.nav-links a:hover:not(.btn-nav) {
  color: #121958;
}

.btn-nav {
  background-color: #121958;
  color: white !important;
  padding: 10px 20px;
  font-weight: 600;
  border-radius: 4px;
}

/* --- CHECKBOX Y HAMBURGUESA (Ocultos en PC) --- */
#check {
  display: none;
}

.checkbtn {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.line {
  width: 25px;
  height: 3px;
  background-color: #121958;
  margin: 5px;
  transition: 0.3s;
}

@media (max-width: 1024px) {
  .checkbtn {
    display: block; /* Aparece la hamburguesa */
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%; /* Escondido a la izquierda */
    background-color: white;
    width: 80%;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
  }

  /* Cuando el check está activo, el menú entra */
  #check:checked ~ .nav-links {
    left: 0;
  }

  /* Animación de la X */
  #check:checked ~ .checkbtn .line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  #check:checked ~ .checkbtn .line:nth-child(2) {
    opacity: 0;
  }
  #check:checked ~ .checkbtn .line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}
/* ---------- BANNER INICIO ----------*/

.banner {
  /* Aumentamos a 75vh para que destaque al abrir la web */
  height: 75vh;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background-size: cover;
  background-position: center;
  /* Agregamos una transición suave para cuando cargue la imagen */
  transition: all 0.5s ease-in-out;
}

.banner-principal {
  /* Mejoramos el gradiente para que el centro sea más claro y los bordes más oscuros */
  background-image:
    radial-gradient(circle, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%),
    url("/assets/banner-1@2x.png");
}

.banner-contenido {
  max-width: 800px;
  padding: 0 20px;
  /* Animación de entrada suave */
  animation: fadeInDown 1s ease-out;
}

.isotipo {
  width: 80px;
  height: auto;
  margin-bottom: 1.5rem;
}

.banner-contenido h1 {
  font-size: clamp(
    2.5rem,
    5vw,
    4.5rem
  ); /* Tamaño fluido: se ajusta solo entre móvil y PC */
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 15px;
}

.banner-contenido p {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.boton {
  display: inline-block;
  padding: 15px 40px;
  background-color: white;
  color: #121958;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 2px solid white;
}

.boton:hover {
  background-color: transparent;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Animación de entrada */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- QUIENES SOMOS ---------- */

.section-dark {
  background-color: #121958;
  color: white;
  text-align: center;
}

.container-about {
  max-width: 65rem;
  margin: 0 auto;
  padding: 5rem 1rem; /* Bajamos el padding lateral para móviles */
}

.container-about p {
  max-width: 800px;
  margin: 1.5rem auto; /* Centra el bloque de texto y le da aire arriba/abajo */
  line-height: 1.6; /* Mejora mucho la legibilidad */
}

/* ---------- SERVICIOS ---------- */
#servicios {
  padding: 60px 20px;
  text-align: center;
}

.title {
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

.container-services {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  padding: 2rem;
}

.service-card {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px); /* Efecto al pasar el mouse */
}

.service-icon {
  width: 150px;
  height: auto;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.service-card p {
  line-height: 1.6;
  color: #555;
  text-align: left;
}

/* ---------- BANNERS ---------- */

.banner-3 {
  height: 40vh; /* Un poco más de aire para que no se sienta apretado */
  min-height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background-image: url("/assets/banner-3@2x.png");
  background-size: cover;
  background-position: center;
  background-attachment: scroll; /* Diferente al secundario para variar el ritmo */
}

/* Capa de color para asegurar que el texto se lea perfecto */
.banner-3-overlay {
  background: rgba(18, 25, 88, 0.6); /* El azul de tu marca con opacidad */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.banner-3-contenido {
  max-width: 900px;
  text-align: center;
}

.banner-3-contenido h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 3px;
}

.banner-3-contenido p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.9;
}

/* BANNER SECUNDARIO */

.banner-secundario {
  height: 40vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background-attachment: fixed; /* Efecto Parallax: la imagen se queda quieta al hacer scroll */
  background-size: cover;
  background-position: center;
  background-image:
    linear-gradient(rgba(18, 25, 88, 0.7), rgba(18, 25, 88, 0.7)),
    /* Usamos el azul de tu marca con opacidad */
    url("/assets/banner-secundario.png");
}

.banner-secundario-contenido {
  max-width: 700px;
  padding: 20px;
}

.banner-secundario h2 {
  font-size: 2.5rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.banner-secundario p {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* --- Botón Versión Secundaria --- */
.btn-secundario {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid white;
  color: white;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-secundario:hover {
  background-color: white;
  color: #121958; /* El color azul de tu marca */
  transform: scale(1.05);
}

/* ---------- MISION Y VISION ---------- */

.mision-vision-section {
  max-width: 1600px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4rem;
  text-align: center;
}

.mision-vision-item {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  padding: 2rem;
}

.mision-vision-img {
  width: 160px;
  height: auto;
  margin-bottom: 1.5rem;
}

.mision-vision-item h1 {
  margin-bottom: 1rem;
  color: #121958;
}

.mision-vision-item p {
  line-height: 1.6;
  color: #666;
  text-align: left;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
  .mision-vision-section {
    padding: 2rem 1rem;
    gap: 2rem;
  }

  .mision-vision-item {
    min-width: 100%;
  }
}

/* ---------- VALORES ---------- */
.dark-background {
  background-color: #121958;
  color: white;
  padding: 20px 20px 70px;
}

.title-center {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.container-valores {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  text-align: center;
}

.valor-card {
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.valor-card:hover {
  transform: scale(1.05); /* Efecto de zoom */
}

.valor-card h3 {
  margin-top: 1rem;
  letter-spacing: 1px;
  font-size: 1.4rem;
}

.valor-card p {
  color: #ccc;
  margin-top: 0.8rem;
  line-height: 1.5;
}

.service-icon {
  width: 140px;
  height: auto;
}

/* ---------- PROCESO DE TRABAJO ---------- */
#proceso {
  padding: 80px 5%;
  text-align: center;
  background-color: #fcfcfc;
}

.container-proceso {
  max-width: 1800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.proceso-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.proceso-item h3 {
  margin: 1.5rem 0 1rem;
  font-size: 1.2rem;
  color: #121958;
  min-height: 3em;
  display: flex;
  align-items: center;
}

.proceso-item p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #666;
  text-align: left;
}

.service-icon {
  width: 120px;
  height: auto;
  transition: transform 0.3s ease;
}

/* Efecto visual */
.proceso-item:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

@media (max-width: 480px) {
  .container-proceso {
    gap: 2rem;
  }
  .proceso-item p {
    text-align: center;
  }
}

/* ---------- CONTACTO ---------- */

.footer-dark {
  background-color: #121958; /* El azul de tu botón para coherencia */
  color: white;
  padding: 5rem 2rem 2rem;
}

.container-footer {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  /* Dos columnas en desktop, una en móvil */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #fff;
  position: relative;
}

/* Línea decorativa bajo el título */
.footer-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 2px;
  background-color: white;
  margin-top: 10px;
}

.contacto-bloque {
  display: flex;
  align-items: flex-start; /* Mejor para direcciones largas de varios renglones */
  gap: 15px;
  margin-bottom: 20px;
}

.icono-svg {
  width: 22px;
  height: auto;
  filter: brightness(0) invert(1); /* Si tus iconos son negros, esto los vuelve blancos */
}

.social-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin-top: 1.5rem;
}

.social-links img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
  filter: brightness(0) invert(1);
}

.social-links a:hover img {
  transform: translateY(-5px);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsivo para tablets y celulares */
@media (max-width: 768px) {
  .container-footer {
    text-align: center;
    grid-template-columns: 1fr;
  }

  .contacto-bloque {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-title::after {
    margin: 10px auto;
  }
}
