

/* ============================================================
   SECCIÓN DE ENCABEZADO (Hero principal con imagen y texto)
   ============================================================ */

/* Contenedor principal del hero.
   - Ocupa casi toda la pantalla.
   - Permite colocar texto encima de la imagen. */
.encabezado {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
}

/* Imagen de fondo del hero.
   - Se ajusta para cubrir completamente sin deformarse. */
.encabezado img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Capa oscura + degradado encima de la imagen.
   - Sirve para que el texto se lea mejor.
   - Si quiere más o menos oscuridad, aquí se ajusta. */
.encabezado::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(to bottom, rgba(0,0,0,0) 30%, rgba(0,0,0,0.55) 100%),
    rgba(0,0,0,0.30);
  z-index: 1;
}

/* Contenedor del texto dentro del hero.
   - Posicionado sobre la imagen.
   - Aquí puede mover la posición del texto (left, bottom). */
.encabezado .contenido {
  position: absolute;
  bottom: 10%;
  left: 5%;
  color: white;
  z-index: 2;
  max-width: 60%;
}

/* Título del hero.
   - Si desea hacerlo más grande o más pequeño, modifique font-size. */
.encabezado .contenido h2 {
  margin: 0 0 0.5em 0;
  font-size: 3vw;
  line-height: 1.2;
  font-weight: 700;
}

/* Párrafo del hero.
   - Control del tamaño y separación del texto. */
.encabezado .contenido p {
  margin: 0 0 1em 0;
  font-size: 1.3vw;
  line-height: 1.4;
}

/* Botón principal.
   - Aquí modifica colores, borde, tamaño y sombra. */
.encabezado .contenido button {
 margin-top: 18px;
  padding: 21px 33px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  background: linear-gradient(135deg, #195DAC, #2F73C2);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

/* Efecto hover del botón.
   - Cambia color y sombra al pasar el mouse. */
.encabezado .contenido button:hover {
    transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  background: linear-gradient(135deg, #2F73C2, #195DAC);
}

/* ============================================================
   RESPONSIVE DEL HERO PARA MÓVILES
   ============================================================ */
@media (max-width: 768px) {

  /* Hero más bajo en celular. */
  .encabezado {
    height: 75vh;
  }

  /* Texto más ancho para teléfonos. */
  .encabezado .contenido {
    bottom: 8%;
    left: 5%;
    max-width: 90%;
  }

  /* Título más pequeño para celular. */
  .encabezado .contenido h2 {
    font-size: 32px;
  }

  /* Párrafo adaptado. */
  .encabezado .contenido p {
    font-size: 15px;
    line-height: 1.45;
  }

  /* Botón más compacto. */
  .encabezado .contenido button {
    padding: 14px 22px;
    font-size: 14px;
    border-radius: 25px;
  }
}

/* Teléfonos muy pequeños (480px o menos). */
@media (max-width: 480px) {

  .encabezado {
    height: 70vh;
  }

  .encabezado .contenido h2 {
    font-size: 26px;
  }

  .encabezado .contenido p {
    font-size: 13px;
  }

  .encabezado .contenido button {
    padding: 12px 20px;
    font-size: 13px;
  }
}
























/* SECCIÓN */
.servicios-resumen {
    background: #f9f9f9;
    padding: 70px 20px;
    text-align: center; /* solo centra texto y botón */
}

/* TÍTULO */
.servicios-titulo {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1f2933;
}

/* TEXTO */
.servicios-texto {
    max-width: 900px;      /* limita ancho SOLO del texto */
    margin: 0 auto 35px;   /* lo centra */
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4a5568;
}

/* BOTÓN */
.servicios-boton,
.servicios-boton:link,
.servicios-boton:visited {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #2f74c0;
    border-radius: 30px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.25s ease,
                transform 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* CENTRAR BOTÓN */
.servicios-boton {
    margin: 0 auto;
}

/* FLECHA */
.servicios-boton::after {
    content: "→";
    font-size: 1.2rem;
    transition: transform 0.25s ease;
}

/* HOVER */
.servicios-boton:hover {
    background-color: #255f9e;
    transform: translateY(-2px);
}

.servicios-boton:hover::after {
    transform: translateX(4px);
}






/* ============================================================
   SECCIÓN NOSOTROS (Imagen, misión, visión y quiénes somos)
   ============================================================ */

.nosotros {
    text-align: center;
    padding: 80px 5%;
    background: #f9f9f9;
}

/* Imagen grande superior de la sección.
   - Si quiere otra imagen o tamaño, modificar aquí. */
.nosotros-imagen {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.nosotros-imagen img {
    width: 100%;
    max-width: 1600px;
    height: 500px; 
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.18);
}

/* Contenedor de la misión. */
.mision {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.mision h3 {
    font-size: 34px;
    margin-bottom: 15px;
}

.mision p {
    font-size: 18px;
    line-height: 1.7;
    color: #444;
}

/* Grid de tarjetas de visión y quiénes somos. */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

/* Caja estilo tarjeta dentro de "Nosotros". */
.info-grid div {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transition: transform 0.25s ease;
}

.info-grid div:hover {
    transform: translateY(-6px);
}

.info-grid img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 18px;
}

/* Títulos internos de las tarjetas. */
.info-grid h3 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #195DAC;
}

/* Textos de las tarjetas. */
.info-grid p {
    font-size: 17px;
    line-height: 1.65;
    color: #555;
}

/* Responsive para sección Nosotros. */
@media (max-width: 768px) {

    .nosotros {
        padding: 60px 4%;
    }

    .nosotros-imagen img {
        height: 260px;
        border-radius: 10px;
    }

    .mision h3 {
        font-size: 26px;
    }

    .mision p {
        font-size: 15px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .info-grid div {
        padding: 20px;
    }

    .info-grid img {
        height: 200px;
    }

    .info-grid h3 {
        font-size: 22px;
    }

    .info-grid p {
        font-size: 15px;
    }
}




/* ============================================================
   SECCIÓN DE CLIENTES (Logos de empresas colaboradoras)
   ============================================================ */

/* Contenedor general de la sección de clientes.
   - Centra todo el texto.
   - Añade espacio arriba y abajo.
   - Fondo gris claro para separar de otras secciones. */
.clientes {
    text-align: center;
    padding: 40px 20px;
    background: #f5f5f5;
}

/* Título de la sección "Clientes".
   - Si quiere hacerlo más grande, cambia font-size. */
.clientes h2 {
    font-size: 2.4rem;
    margin-bottom: 25px;
    color: #333;
}

/* Grid flexible donde se organizan los logos.
   - Se adapta solo según el ancho disponible.
   - Cada logo requiere mínimo 160px de ancho para verse bien. */
.logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    align-items: center;
}

/* Estilos de cada imagen (logo).
   - Tamaño máximo 120px para mantener proporción visual.
   - filter: grayscale(0%) permite cambiar a blanco/negro si se desea.
   - Animación suave al pasar el mouse. */
.logos img {
    width: 100%;
    max-width: 120px;
    height: auto;
    margin: 0 auto;
    filter: grayscale(0%);
    transition: transform 0.2s ease;
}

/* Efecto hover de los logos.
   - Aumenta ligeramente el tamaño del logo cuando se pasa el mouse. */
.logos img:hover {
    transform: scale(1.05);
}


/* ===== BOTON EMERGENTE (POPUP) ===== */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;              /* ← evita desbordes en móvil */
  z-index: 9999;
}

.popup-contenido {
  position: relative;
  background: #ffffff;
  padding: 28px 22px;
  border-radius: 16px;
  text-align: center;
  width: 100%;
  max-width: 360px;           /* ← límite real */
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

/* Texto */
.popup-contenido h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 22px;
  color: #195DAC;
}

.popup-contenido p {
  margin: 0 0 22px;
  font-size: 15px;
  color: #444;
}

/* Botón cerrar */
.popup-cerrar {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  line-height: 1;
}

.popup-cerrar:hover {
  color: #000;
}

/* ===== BOTÓN PERSONALIZADO ===== */
.btn-popup {
  --c1: #195DAC;
  --c2: #2F73C2;

  display: inline-block;
  width: 100%;                /* ← clave para adaptación */
  max-width: 260px;

  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.4px;

  color: #195DAC;
  background: transparent;

  border: 2px solid var(--c1);
  border-radius: 14px;

  cursor: pointer;
  transition: 0.35s ease;
  position: relative;
  overflow: hidden;

  box-shadow: 0 0 0 rgba(0,0,0,0);
}

/* Efecto brillo */
.btn-popup::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 140%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.25) 50%,
    transparent 100%
  );
  transition: 0.5s;
}

/* Hover */
.btn-popup:hover {
  border-color: var(--c2);
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: #ffffff;
  box-shadow: 0 8px 28px rgba(25, 93, 172, 0.35);
}

.btn-popup:hover::before {
  left: 100%;
}

/* ===== RESPONSIVE EXTRA ===== */
@media (max-width: 400px) {
  .popup-contenido {
    padding: 22px 18px;
  }

  .popup-contenido h2 {
    font-size: 20px;
  }

  .btn-popup {
    font-size: 15px;
    padding: 11px 16px;
  }
}
