
/* CONFIGURACIÓN GENERAL */
:root {
  --azul: #17365d; /*Color de letreas en general */
  --azul-claro: #eaf0f7;
  --acento: lab(65.92% -9.82 -40.92); /*Color del menu al pasar el cursor */
  --texto: #354052;
  --blanco: #ffffff; /*Color de fondo */
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--texto);
  line-height: 1.7;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  color: var(--azul);
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

a {
  color: var(--azul);
  text-decoration: none;
}

/* ENCABEZADO Y MENÚ */
.encabezado {
  min-height: 82px;
  padding: 18px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: var(--blanco);
  box-shadow: 0 2px 15px #4d371712;
  flex-wrap: wrap;
    position: sticky;
  top: 0;
  z-index: 10000;
}

.logo img {
    display: block;
    width: 150px;
    max-width: 100%;
    height: 55px;
    object-fit: contain;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  flex-wrap: nowrap;
  margin-left: auto;
  font-size: 17px;
}
/* ADAPTACIÓN DEL ENCABEZADO */

@media (max-width: 760px) {

    .encabezado {
        padding: 12px 4%;
        justify-content: center;
        gap: 12px;
    }

    .menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
        margin-left: 0;
        font-size: 14px;
    }

    .encabezado > .boton {
        margin: 0 auto;
    }

}

.menu a:hover,
.tarjeta a:hover {
  color: var(--acento);
}

/* BOTONES */
.boton {
  display: inline-block;
  border: 0;
  border-radius: 5px;
  background: var(--azul);
  color: var(--blanco);
  padding: 12px 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
/* BOTON CONTACTO SUPERIOR DERECHA */
.boton:hover {
  background: #2d7dd8;
}


/* SECCIONES */
.seccion {
  padding: 85px 8%;
  text-align: center;
}

.seccion > p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.nosotros {
  background: var(--blanco);
}
/* TAMAÑO DEL NUESTRO MODELO DE LA OPERACIÓN */
#nosotros h2 {
    font-size: 20px;
    text-align: center;
}

.servicios {
  background: var(--azul-claro);
}

/* Contenedor de las tarjetas */
.tres-columnas {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* Cada cuadro independiente */
.tarjeta {
    background-color: #ffffff;
    border: 1px solid #e5eaf0;
    border-radius: 12px;
    padding: 30px 24px;
    box-shadow: 0 4px 15px rgba(23, 54, 93, 0.08);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    min-width: 0;
}

/* Títulos */
.tarjeta h3 {
    color: #17365d;
    text-align: center;
    margin: 0 0 14px 0;
    width: 100%;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


/* Descripciones */
.tarjeta p {
    color: #354052;
    text-align: center;
    line-height: 1.8;
    margin: 0;
    width: 100%;
   }
    .tres-columnas {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.tres-columnas {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.tres-columnas .tarjeta {
    flex: 1 1 0;
    min-width: 0;
}
/* Adaptación para celulares */
@media (max-width: 768px) {

    .tres-columnas {
        display: flex !important;
        flex-direction: column !important;
        gap: 18px;
    }

    .tres-columnas .tarjeta {
        width: 100%;
        flex: 1 1 auto;
        padding: 24px 20px;
    }

}
    .tarjeta {
        padding: 24px 20px;
    }
/* Efecto al pasar el cursor sobre las tarjetas */
.tarjeta {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}


/* LLAMADO A LA ACCIÓN  conocer mas*/

.llamada {
  padding: 80px 8%;
  background:
    linear-gradient(rgba(7, 212, 35, 0.82),
                    rgba(23, 54, 93, 0.82)),
    url(""); /* Fondo de abajo */

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  text-align: center;
  color: white; /* Color "estamos listos para atedner tus necesidades"*/
  border-radius: 8px;
}

.llamada h2 {
  color: white;/* Color "¿quieres conocer mas?"*/
}


.boton-claro {
  background: var(--blanco);
  color: var(--azul);
}

/* CONTACTO */
.contacto form {
  max-width: 600px;
  margin: 35px auto 0;
  text-align: left;
}

.contacto label {
  display: block;
  margin: 16px 0 6px;
  font-weight: 700;
}

.contacto input,
.contacto textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid #cbd3df;
  border-radius: 5px;
  font: inherit;
}

.contacto textarea {
  min-height: 130px;
  resize: vertical;
}

.contacto button {
  margin-top: 20px;
}


/* PIE DE PÁGINA */
footer.pie {
    background: #112441;
    color: #ffffff;
    width: 100%;
    padding: 25px 4%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    
}

footer.pie .enlaces-pie {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    flex-wrap: nowrap;
    gap: 0;
}

footer.pie a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    
}

footer.pie p {
    margin: 0;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 700px) {
    footer.pie .enlaces-pie {
        flex-direction: column;
        gap: 15px;
    }
}


/* ADAPTACIÓN A CELULARES */
@media (max-width: 760px) {
  .encabezado {
    justify-content: center;
  }

  .menu {
    justify-content: center;
    gap: 14px;
  }

  .portada {
    padding: 65px 7%;
  }

  .seccion {
    padding: 60px 7%;
  }

  .tres-columnas {
    grid-template-columns: 1fr;
  }

  .pie {
    flex-direction: column;
  }
}


/* SECCIÓN DE CONTACTO */

.contacto {
  padding: 60px 5%;
  background-color: #F1F5F9; /* Color del fonde de la parte de atras del cuadro de contactanos"*/
}


.cuadro-contacto {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;

  background-color: #FFFFFF; /* Color del fondo del cuadro*/
  border: 1px solid #C8D5E4; /* Color de la orilla del cuadro de con tactos*/
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(8, 92, 209, 0.06);
  box-sizing: border-box;
}


.cuadro-contacto .etiqueta,
.cuadro-contacto h2,
.cuadro-contacto .texto-contacto {
  display: block;
  text-align: center;
}

.cuadro-contacto .etiqueta {
  color: #046fc7; /* Color "estamos para ayudarte"*/

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.cuadro-contacto h2 {
  color: #17365D; /* Color "contactanos"*/
  font-size: 34px;
  margin: 0 0 16px;
}

.cuadro-contacto .texto-contacto {
  color: #536579; /* Color texto cuadro blanco, contacto*/
  margin: 0 0 32px;
  line-height: 1.7;
}

.datos-contacto {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.contacto-item {
  text-align: center;
  padding: 15px 10px;
  background: transparent;
  border: none;
  border-radius: 0;
}

.contacto-item h3 {
  color: #17365D; /* Color  del titulo denúmero y correo*/
  margin: 0 0 12px;
}

.contacto-item p {
  color: #536579; /* Color número y correo*/
  margin: 0 0 20px;
  overflow-wrap: anywhere;
}

.contacto-item a {
  display: inline-block;
  padding: 12px 22px;
  background: #17365D; /* Color del cuadro de llamar y enviar*/
  color: #FFFFFF; /* Color de la letra de los cuadros*/
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.contacto-item a:hover {
  background: #3276A8; /* Color de los cuadros al pasar el cursor*/
}

@media (max-width: 1200px) {
  .cuadro-contacto {
    padding: 28px 18px;
  }
}

/* SECCIÓN DE SERVICIOS */
/* COLOR DEL CUADRO */
.servicios {
  padding: 65px 5%;
  background-color: #F1F5F9;
}

/* Encabezado centrado */

.encabezado-servicios {
  max-width: 1200px;
  margin: 0 auto 35px;
  text-align: center;
}
/* ENCABEZADO (LO QUE OFRECEMOS)*/
.encabezado-servicios .etiqueta {
  display: block;
  color: #17365D;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
/* NUESTROS SERVICIOS PALABRA */
.encabezado-servicios h2 {
  color: #17365D;
  font-size: 34px;
  margin: 0 0 16px;
}
/* DESCRIPIÓN DE SERVICIOS */
.encabezado-servicios p {
  color: #536579;
  line-height: 1.7;
  margin: 0;
}

/* Distribución de cuadros independientes */

.lista-servicios {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 24px;
}
/* OCULTAR CARACTERÍSTICAS Y REQUISITOS AL ENTRAR */
#informacion-adicional {
  display: none;
}


/* Adaptación a celulares */

@media (max-width: 650px) {
  .servicios {
    padding: 45px 5%;
  }


  .lista-servicios {
    grid-template-columns: 1fr;
    gap: 18px;
  }

}

/* PORTADA PRINCIPAL CON IMAGEN DE FONDO */

.portada-principal {
  min-height: 550px;
  padding: 80px 7%;

  display: flex;
  align-items: center;

  box-sizing: border-box;

  background-image:
    linear-gradient(
      90deg,
      rgba(12, 35, 64, 0.90),
      rgba(12, 35, 64, 0.45)
    ),
    url("imagenes/portada-nueva.jpg"); /*Fondo de portada princilal*/

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* CONTENIDO DE LA PORTADA */

.portada-contenido {
  width: 100%;
  max-width: 700px;
}

.portada-etiqueta {
  display: block;
  color: #13d308; /* Color del nombre AGROMEX */
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.portada-principal h1 {
  color: #FFFFFF; /* Color del nombre de la empresa*/
  font-size: 48px;
  line-height: 1.15;
  margin: 0 0 22px;
}

.portada-descripcion {
  color: #F1F5F9; /* Color de la descripción de la empresa */
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 30px;
}

.boton-portada {
  display: inline-block;
  padding: 14px 26px;

  background-color: #ffffff; /* Color del boton izquiuerdo*/
  color: #17365D; /* Color del nombre contáctanos, boton izquiuerdo*/

  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;

  transition: 0.3s ease;
}

.boton-portada:hover {
  background-color: #0b59ea; /* Color del boton izquiuerdo al pasar el cursor parte arriba*/
  color: #fdfeff; /* Color de la palabra contactanos, al momenot de pasar el cursor */
}

/* ADAPTACIÓN A CELULARES */

@media (max-width: 650px) {
  .portada-principal {
    min-height: 480px;
    padding: 60px 6%;
    background-position: center;
  }

  .portada-principal h1 {
    font-size: 34px;
  }

  .portada-descripcion {
    font-size: 16px;
  }
}

.nosotros p {
  text-align: justify;
}


/* FONDO OSCURO DE LAa VENTANA */
.fondo-alerta {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    padding: 20px;
    box-sizing: border-box;
}

/* CUADRO DEL AVISO  AVISO DE SEGURIDAD*/
.contenido-alerta {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
    border-top: 6px solid #029d2e; /* color linea de arriba*/
    box-sizing: border-box;
}

/* ICONO */
.icono-alerta {
    font-size: 42px;
    margin-bottom: 12px;
}

/* TÍTULO */
.contenido-alerta h2 {
    color: #17365d;
    font-size: 24px;
    margin-bottom: 18px;
    text-align: center;
}

/* MENSAJE */
.contenido-alerta p {
    color: #333333;
    font-size: 16px;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 25px;
}

/* BOTÓN */
.contenido-alerta button {
    background: #17365d;
    color: #ffffff;
    border: none;
    padding: 13px 30px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contenido-alerta button:hover {
    background: #24558a;
}


/* CÍRCULO ANIMADO */
.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: girar 0.8s linear infinite;
}

#pantalla-carga p {
    color: white; /* CARGANDO PAGINA */
    margin-top: 20px;
    font-size: 17px;
    text-align: center;
}

@keyframes girar {
    to {
        transform: rotate(360deg);
    }
}

#pantalla-carga.oculta {
    opacity: 0;
    pointer-events: none;
}

/* PANTALLA DE CARGA AGROMEX */
 /* TRANSPARENTE */
    #pantalla-carga {
      position: fixed;
      inset: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      background: rgba(255, 255, 255, 0.35);
      backdrop-filter: blur(2px);
      -webkit-backdrop-filter: blur(2px);
      z-index: 9999;
      opacity: 1;
      visibility: visible;
      transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    /* CÍRCULO GIRATORIO AZUL */
    .circulo-carga {
      width: 48px;
      height: 48px;
      border: 4px solid rgba(23, 54, 93, 0.18);
      border-top-color: #17365d;
      border-radius: 50%;
      animation: girarCarga 0.8s linear infinite;
    }

    /* OCULTAR LA CARGA */
    #pantalla-carga.oculta {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    @keyframes girarCarga {
      to {
        transform: rotate(360deg);
      }
    }

.logo-carga {
    width: 190px;
    max-width: 75%;
    max-height: 150px;
    object-fit: contain;
    margin-bottom: 28px;
}

.mensaje-carga {
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 20px;
    text-align: center;
    letter-spacing: 0.5px;
    margin: 0 0 25px;
}

.loader {
    width: 42px;
    height: 42px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: girar 0.8s linear infinite;
    box-sizing: content-box;
}

@keyframes girar {
    to {
        transform: rotate(360deg);
    }
}

#pantalla-carga.oculta {
    opacity: 0;
    pointer-events: none;
}

/* Ocultar el aviso hasta que termine la carga */
.fondo-alerta {
    display: none;
}

/* SECCIÓN DE CONTACTO */
.contacto {
    width: 100%;
    padding: 50px 20px;
    box-sizing: border-box;
}

/* CUADRO PRINCIPAL CENTRADO */
.cuadro-contacto {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 35px;
    background: #ffffff;
    border: 1px solid #d9e2ef;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(23, 54, 93, 0.12);
    box-sizing: border-box;
    text-align: center;
}


/* SECCIÓN DE CONTACTO */
.contacto-dos {
  background: #f1f5fa;
  padding: 45px 20px;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
}

.contacto-dos *,
.contacto-dos *::before,
.contacto-dos *::after {
  box-sizing: border-box;
}

/* CUADRO PRINCIPAL */
.contacto-dos .contenedor-contacto {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px;
  background: #ffffff;
  border: 1px solid #d5e1f2;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(23, 54, 93, 0.10);
}

/* ENCABEZADO */
.contacto-dos .encabezado-contacto {
  text-align: center;
  margin-bottom: 30px;
}

.contacto-dos .etiqueta-contacto {
  color: #0878df;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 2px;
}

.contacto-dos .encabezado-contacto h2 {
  color: #17365d;
  font-size: 34px;
  margin: 12px 0;
}

.contacto-dos .encabezado-contacto p {
  color: #52657d;
  font-size: 16px;
  margin-bottom: 0;
}

/* CUADRO DE INFORMACIÓN */
.contacto-dos .tarjeta-contacto {
  background: #edf4fc;
  border: 1px solid #bdd8fb;
  border-radius: 12px;
  padding: 28px;
}

/* TÍTULO INTERIOR */
.contacto-dos .titulo-tarjeta {
  color: #17365d;
  font-size: 23px;
  text-align: center;
  margin: 0 0 25px;
  padding-bottom: 18px;
  border-bottom: 1px solid #bdd8fb;
}

/* TRES COLUMNAS PROPORCIONALES */
.contacto-dos .datos-contacto {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
}

/* TELÉFONO, CORREO Y DIRECCIÓN */
.contacto-dos .dato-contacto {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  min-width: 0;
  padding: 18px 16px;
}

.contacto-dos .dato-contacto:not(:last-child) {
  border-right: 1px solid #bdd8fb;
}

/* ICONOS */
.contacto-dos .icono-contacto {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  background: #17365d;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contacto-dos .icono-contacto svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* TEXTOS */
.contacto-dos .texto-dato {
  width: 100%;
  min-width: 0;
}

.contacto-dos .texto-dato h4 {
  color: #17477e;
  font-size: 17px;
  line-height: 1.4;
  margin: 5px 0 12px;
}

.contacto-dos .texto-dato p {
  color: #354052;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  margin: 6px 0;
}

/* BOTONES */
.contacto-dos .boton-contacto {
  display: inline-block;
  max-width: 100%;
  margin-top: 12px;
  padding: 12px 16px;
  background: #17365d;
  color: #ffffff;
  text-decoration: none;
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.2s ease;
}

.contacto-dos .boton-contacto:hover {
  background: #245184;
}
/* TABLET */
@media (max-width: 850px) {

    .contacto-dos .contenedor-contacto {
        padding: 25px;
    }

    .contacto-dos .datos-contacto {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contacto-dos .dato-contacto {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding: 18px 12px;
    }

    .contacto-dos .dato-contacto:not(:last-child) {
        border-right: none;
        border-bottom: none;
    }

    .contacto-dos .dato-contacto:last-child {
        grid-column: 1 / -1;
    }

    .contacto-dos .boton-contacto {
        width: 100%;
        max-width: 220px;
    }
}

/* CELULARES */
@media (max-width: 500px) {

    .contacto-dos {
        padding: 25px 12px;
    }

    .contacto-dos .contenedor-contacto {
        padding: 18px 12px;
    }

    .contacto-dos .tarjeta-contacto {
        padding: 18px 12px;
    }

    .contacto-dos .encabezado-contacto h2 {
        font-size: 26px;
    }

    .contacto-dos .titulo-tarjeta {
        font-size: 20px;
    }

    .contacto-dos .datos-contacto {
        grid-template-columns: 1fr;
    }

    .contacto-dos .dato-contacto {
        grid-column: auto;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 5px;
        border-bottom: 1px solid #bdd8fb !important;
    }

    .contacto-dos .dato-contacto:last-child {
        border-bottom: none !important;
    }

    .contacto-dos .icono-contacto {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .contacto-dos .boton-contacto {
        width: 100%;
        max-width: 220px;
        white-space: normal;
    }
}
/* CORREGIR CLIC EN LOS BOTONES DE CORREO */
.contacto-dos .boton-contacto {
  position: relative;
  z-index: 10;
  cursor: pointer;
  pointer-events: auto;
}

/* ANIMACIÓN PARA INDICAR QUE DEBEN DAR CLIC EN ENTENDIDO */
@keyframes llamarAtencion {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(23, 54, 93, 0.35);
    }

    50% {
        transform: scale(1.06);
        box-shadow: 0 0 0 8px rgba(23, 54, 93, 0);
    }
}

/* Botón Entendido */
#ventana-alerta button {
    animation: llamarAtencion 1.5s ease-in-out infinite;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Efecto al intentar hacer clic fuera de la alerta */
@keyframes resaltarAlerta {
    0%, 100% {
        transform: translateX(0);
    }

    25%, 75% {
        transform: translateX(-4px);
    }

    50% {
        transform: translateX(4px);
    }
}

#ventana-alerta .contenido-alerta.animar {
    animation: resaltarAlerta 0.35s ease;
}

/* Respeta la preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    #ventana-alerta button {
        animation: none;
    }
}

/* CUADRO DEL MENSAJE DE ALERTA */
#ventana-alerta .contenido-alerta {
    width: 800px;
    max-width: 95%;
    min-height: 400px;
    max-height: 85vh;
    overflow-y: auto;

    padding: 45px 40px;
    box-sizing: border-box;
    margin: auto;
    border-radius: 24px;
    background: #61B134;/* Color del cuadro*/
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    text-align: center;
}

/* TÍTULO DE LA ALERTA */
#ventana-alerta .contenido-alerta h2 {
    color: #17365d;
    font-size: 24px;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 18px;
}

/* TEXTO DEL MENSAJE */
#ventana-alerta .contenido-alerta p {
    color: #354052;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* BOTÓN ENTENDIDO */
#ventana-alerta .contenido-alerta button {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    background: #17365d;
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

/* ADAPTACIÓN A CELULARES */
@media (max-width: 420px) {
    #ventana-alerta .contenido-alerta {
        width: 92%;
        padding: 28px 20px;
        border-radius: 20px;
    }

    #ventana-alerta .contenido-alerta h2 {
        font-size: 21px;
    }

    #ventana-alerta .contenido-alerta p {
        font-size: 15px;
    }
}
/* LOGOTIPO DENTRO DE LA ALERTA */
#ventana-alerta .logo-alerta {
    display: block;
    width: 260px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto 20px;
}
/* FONDO DE LA VENTANA */
.fondo-ventana {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  padding: 20px;
  background: rgba(0, 0, 0, 0.65);
  align-items: center;
  justify-content: center;
}

/* CONTENIDO */
.contenido-ventana {
  position: relative;
  width: 100%;
  max-width: 500px;
  padding: 35px;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
}

.contenido-ventana h2 {
  color: #17365d;
}

.contenido-ventana p {
  color: #354052;
  line-height: 1.7;
}

/* BOTÓN CERRAR */
.cerrar-ventana {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  color: #17365d;
  font-size: 30px;
  cursor: pointer;
}

/* BOTÓN CONTACTO */
.boton-contacto {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 24px;
  background: #17365d;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
}

/* CUADRO PRINCIPAL */
.cuadro-principal {
  max-width: 700px;
  margin: 30px auto;
  padding: 30px;
  background: #ffffff;
  border: 1px solid #d5dfeb;
  border-radius: 15px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
  text-align: center;

}
.cuadro-principal h2 {
  font-size: 24px !important;
  color: #17365d;
  font-weight: bold;
}

/* HORARIOS DENTRO DEL CUADRO PRINCIPAL */
.horarios-contacto {
  margin-top: 25px;
  padding: 22px 10px 5px;
  border-top: 1px solid #b8d4ff;
  text-align: center;
}

/* ICONO DEL RELOJ */
.horarios-contacto .icono-contacto {
  margin: 0 auto 12px;
}

/* TEXTO DEL HORARIO */
.horarios-contacto .texto-dato h4 {
  color: #17365d;
  margin-bottom: 10px;
}

.horarios-contacto .texto-dato p {
  margin: 5px 0;
  line-height: 1.6;
}

/* ESPACIO ENTRE LOS CUADROS */
.tarjeta-contacto {
  margin-bottom: 25px;
}

/* BOTÓN CONOCE MÁS */
.boton-desplegar {
  background: #17365d;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  margin: 15px 0;
}

.boton-desplegar:hover {
  background: #24558a;
}



/* DISTRIBUCIÓN DE LOS DOS CUADROS PRODUCTO */


.contenedor-dos-cuadros {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: none;
  margin: 0;
  align-items: start;
  box-sizing: border-box;
}

.cuadro-caracteristica {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.cuadro-caracteristica img {
  max-width: 100%;
  height: auto;
}



/* DISEÑO DE CADA CUADRO */
.cuadro-caracteristica {
  box-sizing: border-box;
  min-width: 0;
  padding: 32px;
  background-color: #eaf0f7;
  border: 1px solid #b8cde6;
  border-radius: 12px;
  width: 100%;
}

/* TÍTULOS */
.cuadro-caracteristica h3 {
  margin-top: 0;
  margin-bottom: 24px;
  color: #01549d;
  font-size: 20px;
}

/* LISTAS */
.cuadro-caracteristica ul {
  padding-left: 20px;
  margin: 0;
}

.cuadro-caracteristica li {
  margin-bottom: 20px;
  line-height: 1.7;
}

/* ADAPTACIÓN PARA TABLETAS Y CELULARES */
@media (max-width: 900px) {
  .contenedor-dos-cuadros {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .cuadro-caracteristica {
    padding: 22px;
  }

  .cuadro-caracteristica h3 {
    font-size: 19px;
    margin-bottom: 18px;
  }

  .cuadro-caracteristica li {
    margin-bottom: 16px;
  }
}


  #informacion-adicional .contenedor-dos-cuadros {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto;
}
/* ADAPTACIÓN A PANTALLAS PEQUEÑAS */
@media (max-width: 900px) {
  #informacion-adicional .contenedor-dos-cuadros {
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
    gap: 18px;
  }

  #informacion-adicional .cuadro-caracteristica {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  #informacion-adicional .cuadro-caracteristica li {
    overflow-wrap: anywhere;
  }
}

/* CUADRO DE INFORMACIÓN IMPORTANTE */
.cuadro-informacion-importante {
  background: linear-gradient(135deg, #327dd8, #24558a);
  color: #ffffff;
  border-left: 6px solid #5ba4e5;
  border-radius: 10px;
  padding: 20px;
  margin: 0 0 28px 0;
  box-shadow: 0 5px 15px rgba(3, 200, 244, 0.2);
  box-sizing: border-box;
}

/* ETIQUETA */
.etiqueta-importante {
  display: inline-block;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.16);
  padding: 6px 10px;
  border-radius: 5px;
  margin-bottom: 12px;
}

/* TAMAÑO DEL TEXTO DEL CAT */
.cuadro-informacion-importante .texto-cat {
  font-size: 22px !important;
  line-height: 1.5;
  color: #ffffff;
  margin: 10px 0 0;
}



/* BOTÓN OCULTO POR DEFECTO */
.contenedor-inicio {
  position: fixed;
  bottom: 80px;
  left: 25px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}


.contenedor-inicio {
  position: fixed;
  bottom: 80px;
  left: 25px;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.contenedor-inicio.mostrar {
  opacity: 1;
  visibility: visible;
}

.boton-inicio {
  display: inline-block;
  background-color: #17365d;
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
}



.menu-desplegable {
  position: relative;
  display: inline-block;
}

.boton-menu {
  background: transparent;
  color: #17365d;
  border: none;
  padding: 10px 12px;
  font: inherit;
  cursor: pointer;
}

.opciones-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 210px;
  background: #ffffff;
  border: 1px solid #d5dfeb;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  z-index: 9999;
}

.opciones-menu a {
  display: block;
  padding: 12px 16px;
  color: #17365d;
  text-decoration: none;
}

.opciones-menu a:hover {
  background: #eaf0f7;
}
/* ESPACIO ENTRE LAS OPCIONES DEL MENÚ */
nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

/* ESPACIO DEL BOTÓN DESPLEGABLE */
.boton-menu {
  margin-left: 5px;
}

/* ICONO AL PRINCIPIO DEL NÚMERO */
.icono-numero {
  color: #17365d;
  font-size: 18px;
  margin-right: 8px;
  font-weight: bold;
}
.tarjeta-contacto-adicional {
  margin-top: 25px;
}
/* APARTADO BURÓ */
.seccion-buro {
  padding: 40px 20px;
  text-align: center;
  scroll-margin-top: 100px;
}

.imagen-buro {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 25px auto;
  border-radius: 10px;
}

/* BOTÓN DESPLEGABLE DE CONTACTOS OFICIALES */
.encabezado-contacto {
  text-align: center;
  margin-bottom: 25px;
}

.boton-contactos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 25px;
  border: 1px solid #d5dfeb;
  border-radius: 10px;
  background: #ffffff;
  color: #17365d;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(23, 54, 93, 0.08);
  transition: background 0.25s, box-shadow 0.25s;
}

.boton-contactos:hover {
  background: #eaf0f7;
  box-shadow: 0 5px 16px rgba(23, 54, 93, 0.14);
}

.flecha-contactos {
  display: inline-block;
  transition: transform 0.3s ease;
}

.boton-contactos[aria-expanded="true"] .flecha-contactos {
  transform: rotate(180deg);
}

/* CONTENIDO OCULTO INICIALMENTE */

/* ANIMACIÓN SUAVE PARA ABRIR Y CERRAR CONTACTOS */
.contenido-contactos {
  display: flex;
  flex-direction: column;
  gap: 25px;

  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;

  transform: translateY(-10px);
  transition:
    max-height 0.6s ease,
    opacity 0.4s ease,
    transform 0.4s ease,
    visibility 0s linear 0.6s;
}

.contenido-contactos.abierto {
  max-height: 2000px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);

  transition:
    max-height 0.6s ease,
    opacity 0.4s ease,
    transform 0.4s ease,
    visibility 0s;
}

.contenido-contactos .tarjeta-contacto {
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}


@keyframes aparecerContactos {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* CONTENEDOR DE LAS TARJETAS DESPLEGABLES */
.contenido-contactos {
  width: 100%;
  box-sizing: border-box;
  flex-direction: column;
  gap: 25px;
}

.contenido-contactos.abierto {
  display: flex;
}

/* CONSERVAR EL ANCHO DE LAS TARJETAS */
.contenido-contactos .tarjeta-contacto {
  width: 100%;
  box-sizing: border-box;
}

/* CUADRO PRINCIPAL */
.contacto-dos {
  position: relative;
}

/* BOTÓN CENTRADO SOBRE EL BORDE */
.barra-boton-contactos {
  position: sticky;
  top: 85px;
  z-index: 1000;

  display: flex;
  justify-content: center;

  height: 0;
  overflow: visible;
  margin-bottom: 35px;
  pointer-events: none;
}

.barra-boton-contactos .boton-contactos {
  position: relative;
  top: -25px;

  pointer-events: auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  padding: 14px 25px;
  border: 1px solid #d5dfeb;
  border-radius: 10px;

  background: #ffffff;
  color: #17365d;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;

  box-shadow: 0 3px 12px rgba(23, 54, 93, 0.08);
}
  
/* AJUSTE DE ALINEACIÓN DEL BOTÓN ENVIAR CORREO */
.datos-contacto > .dato-contacto:nth-child(2) .boton-contacto {
    position: relative;
    top: 47px;
}

/*FIJAR EL PIE DE PÁGINA HASTA ABAJO */

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex !important;
    flex-direction: column;
}

/* EL CONTENIDO OCUPA EL ESPACIO DISPONIBLE */
body > main {
    flex: 1 0 auto;
}

/* PIE DE PÁGINA AL FINAL */
footer.pie {
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
}

/* EFECTO DE CARGA ENTRE  LOS CAMBIOS DE APARTADOS DE LINEAMIENTOS */
.pantalla-carga-lineamientos {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(234, 240, 247, 0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}

.pantalla-carga-lineamientos.visible {
    display: flex;
}

.circulo-carga-lineamientos {
    width: 45px;
    height: 45px;
    border: 4px solid rgba(213, 223, 235, 0.7);
    border-top-color: #17365d;
    border-radius: 50%;
    animation: girar-lineamientos 0.8s linear infinite;
}

@keyframes girar-lineamientos {
    to {
        transform: rotate(360deg);
    }
}
/* AJUSTES GENERALES PARA TODOS LOS DISPOSITIVOS */

* {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ADAPTACION PARA LOS CELULARES PEQUEÑOS */

@media (max-width: 420px) {

    .portada-principal h1 {
        font-size: 28px;
        overflow-wrap: break-word;
    }

    .seccion {
        padding: 45px 5%;
    }

    .boton-inicio {
        padding: 10px 14px;
        font-size: 12px;
    }

}
/* CORRECCIÓN DEL BOTON CONTACTOS EN CELULARES */
@media (max-width: 500px) {

    .contacto-dos .datos-contacto {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .contacto-dos .dato-contacto {
        width: 100%;
        padding: 18px 12px 25px;
        border: none !important;
    }

    .contacto-dos .dato-contacto:not(:last-child) {
        border-right: none !important;
        border-bottom: none !important;
    }

    .contacto-dos .boton-contacto {
        display: block;
        width: 100%;
        max-width: 220px;
        margin: 18px auto 10px;
        position: relative;
        z-index: 2;
    }

}