* {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Previene desbordamientos por padding */
}
html {
    scroll-behavior: smooth;

}
@view-transition{
    navigation: auto;
}


::view-transition-old(root),
::view-transition-new(root) {

  animation-duration: 0.6s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}


::view-transition-old(root) {
  animation-name: salir-suave;
}

::view-transition-new(root) {
  animation-name: entrar-suave;
}

@keyframes salir-suave {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
  }
}


@keyframes entrar-suave {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}







body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* HEADER */
.header-container {
    top: 0;          
    left: 0;         
    width: 100%;     
    z-index: 1000;
    position: fixed;
    background-color: #123A73;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0,9rem 50%;
}

.logoa {
    margin-left: 5%;
    height: 60px; 
    width: auto;
}

ul {
    gap: 4.5rem;
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-link {
    font-size: 1.1rem;
    color: white;   
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.2s;
}
.main-nav{
    margin-right: 20px;
}

.nav-link:hover {
    color: #8BC34A;
}

/* SECCIÓN PRINCIPAL HERO */
.imagen-principal {
    position: relative;
    width: 100%;
    height: 120vh;
}

.prim {
    width: 100%;
    height: 100%; 
    object-fit: cover;
    display: block;
}

.degra {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(18, 58, 115, 0.2) 0%, #123A73 100%);
    pointer-events: none; 
}

/* TEXTO Y BOTÓN HERO */
.titulo {
    position: absolute;
    top: 35%; 
    left: 5%;                
    color: #ffffff;          
    font-size: 3.5rem;
    line-height: 1.2;
    margin: 0;
    max-width: 650px;
    font-weight: bold;
}

.boton {
    display: inline-block;
    position: absolute;
    top: 55%; 
    left: 5%;
    background-color: #8BC34A;                
    color: #123A73;          
    font-size: 1.2rem;        
    padding: 18px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.boton:hover {
    background-color: #b1e2a9;
    scale: 1.1;
}
/* sobre nosotros*/
.seccion-sobre{
    position: relative;
    width: 100%;
    height: 150vh;
    overflow: hidden;
}
.pag2 {
    width: 100%;
    height: 150vh; 
    object-fit: cover;
    display: block;
}

.degra2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150vh;
    background: linear-gradient(360deg, rgba(18, 58, 115, 0.2) 0%, #123A73 100%);
    pointer-events: none; 
}
.degra3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150vh;
    background: linear-gradient(180deg, rgba(18, 58, 115, 0.2) 0%, #123A73 100%);
    pointer-events: none; 
}

.abt{
    position: absolute;
    top: 30%; 
    left: 5%;                
    color: #ffffff;          
    font-size: 3.5rem;
    line-height: 1.2;
    margin: 0;
    max-width: 650px;
    font-weight: bold;
}
.texto{ 
    color: white;
    position: absolute;
    top: 50%;
    left: 5%;
    font-size: 2rem;
    line-height: 1.5;
    margin: 0;
    max-width: 75%;
    
}
#imgp{
    height: 40%;
}

/*mision y vision*/

/* Contenedor principal que agrupa las tarjetas */
.mision-vision-container {
  display: flex;
  justify-content: center;
  align-items: stretch; /* Hace que todas las tarjetas tengan la misma altura visual */
  flex-wrap: wrap; /* Permite que bajen de línea en pantallas pequeñas */
  gap: 30px; /* Espacio equilibrado entre las 3 tarjetas */
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  margin-top: 150px;
}

/* Estilo general de cada tarjeta */
.card {
  background-color: #ffffff; 
  border-radius: 16px; 
  padding: 40px 30px;
  flex: 1;
  min-width: 280px; /* Ancho mínimo para que no se compriman demasiado */
  max-width: 360px; /* Evita que crezcan de más en pantallas grandes */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  text-align: center; 
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  will-change: transform;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Efecto hover elegante */
.card:hover {
  transform: translateY(-8px); /* Eleva la tarjeta suavemente en lugar de solo hacer zoom */
  box-shadow: 0 10px 25px rgba(11, 57, 84, 0.12);
  cursor: pointer;
}

/* Título de la tarjeta */
.card-title {
  color: #0b3954; 
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Texto interno de la tarjeta */
.card-text {
  color: #4a4a4a; 
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6; 
  margin: 0;
}


/* =========================================================
   SECCIÓN DE TARIFA (PDFs)
   ========================================================= */

/* Contenedor principal de tarifas */
.tarifas-section {
    padding: 90px 20px;
    background-color: #123A73;
}

.tarifas-container {
    max-width: 1000px;
    margin: 0 auto;
}

.tarifas-header {
    text-align: center;
    margin-bottom: 40px;
}

.tarifas-section .titulo-seccion {
    color: white;
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 12px;
}

.tarifas-section .subtitulo-seccion {
    color: white;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Tarjeta única central */
.tarifa-principal-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.tarifa-card-unica {
    width: 100%;
    max-width: 700px;
    padding: 50px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Botón principal de tarifas */
.boton-tarifa {
    display: inline-block;
    background-color: #8BC34A;
    color: #123A73;
    padding: 14px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 1rem;
    margin-top: 25px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.boton-tarifa:hover {
    background-color: #7cb342;
    transform: translateY(-2px);
}

/* Sección de Resoluciones (Abajo) */
.resoluciones-box {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #eaeaea;
}

.titulo-resoluciones {
    color: #123A73;
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 8px;
    text-align: center;
}

.subtitulo-resoluciones {
    color: #666;
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 30px;
}

.resoluciones-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.resolucion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fdfdfd;
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: border-color 0.2s ease;
}

.resolucion-item:hover {
    border-color: #123A73;
}

.resolucion-item span {
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Botón individual para cada resolución */
.boton-resolucion {
    background-color: #123A73;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.boton-resolucion:hover {
    background-color: #1c529c;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .resolucion-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .boton-resolucion {
        width: 100%;
        text-align: center;
    }
    
    .resoluciones-box {
        padding: 25px 20px;
    }
}

/* SECCIÓN HISTORIA Y IMAGEN ADAPTATIVA */
.historia {
    position: relative;
    width: 100%;
}

.historia-container {
    position: relative;
    width: 100%;
    padding: 80px 8% 60px 8%;
    display: flex;
    flex-direction: column;
}

/* La imagen de fondo cubre exactamente el 100% de la altura total que ocupe el contenedor */
.historia-container .prim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* El degradado azul cubre el 100% por encima de la imagen */
.degra4 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(360deg, rgba(18, 58, 115, 0.4) 0%, #123A73 100%);
    z-index: 2;
    pointer-events: none; 
}

/* Todo el contenido de texto pasa al frente del degradado (z-index: 3) */
#titulo-historia,
#texto-historia,
.socios-fundadores {
    position: relative;
    z-index: 3;
}

#titulo-historia {
    position: relative;
    top: auto;
    left: auto;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

#texto-historia {
    position: relative;
    top: auto;
    left: auto;
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 100%;
    white-space: pre-line;
    margin-bottom: 2.5rem;
}

/* ESTILOS DE LA LISTA DE SOCIOS */
.socios-fundadores {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.titulo-socios {
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.lista-socios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.8rem 1.5rem;
    list-style: none;
    padding: 0;
}

.lista-socios li {
    color: #e0e0e0;
    font-size: 1.05rem;
    position: relative;
    padding-left: 1.2rem;
}

.lista-socios li::before {
    content: "•";
    color: #8BC34A;
    font-size: 1.4rem;
    position: absolute;
    left: 0;
    top: -2px;
}



/*calidad del agua*/
#titulo-calidad{
    top: 20%;
    font-size: 4.5rem;
    max-width: max-content;
}
#texto-calidad{
    top: 30%;
    font-size: 2rem;
}
.cards-calidad{
    position: absolute;
    top: 50%;
    left: 15%;
    right: 15%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 40px 20px;
  max-width: 1100px;
  margin: 0 auto;

}
.card-calidad{
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#imagen-calidad{
    height: 150vh;
}


/* SECCIÓN QUEJAS Y SUGERENCIAS */
.seccion-contacto {
    background-color: #123A73;
    padding: 80px 8%;
    color: #ffffff;
}

.contacto-container {
    max-width: 750px;
    margin: 0 auto;
}

.contacto-container h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.contacto-container p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

.formulario-contacto {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background-color: #ffffff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.campo-doble {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.campo {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.campo label {
    color: #123A73;
    font-weight: bold;
    font-size: 0.95rem;
}

.campo input,
.campo select,
.campo textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.campo input[type="file"] {
    padding: 8px;
    border: 1px dashed #123A73;
    background-color: #f8f9fa;
    cursor: pointer;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
    border-color: #8BC34A;
}

.boton-enviar {
    background-color: #8BC34A;
    color: #123A73;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 15px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.boton-enviar:hover {
    background-color: #7cb342;
    transform: translateY(-2px);
}

/* Adaptación para pantallas pequeñas */
@media (max-width: 600px) {
    .campo-doble {
        grid-template-columns: 1fr;
    }
    
    .formulario-contacto {
        padding: 20px;
    }
}


/* =========================================================
   PÁGINA DE TRÁMITES
   ========================================================= */

.seccion-tramites {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 75px);
    padding: 120px 6% 70px;
    overflow: hidden;
}


/* IMAGEN DE FONDO */

.fondo-tramites {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    z-index: 1;
}


/* DEGRADADO */

.degra-tramites {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            180deg,
            rgba(18, 58, 115, 0.25) 0%,
            rgba(18, 58, 115, 0.95) 100%
        );

    z-index: 2;
}


/* CONTENIDO */

.tramites-contenido {
    position: relative;

    z-index: 3;

    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* TÍTULO */

.titulo-tramites {
    width: 100%;

    color: white;

    font-size: 3.2rem;
    line-height: 1.2;

    margin-bottom: 45px;

    font-weight: bold;
}


/* =========================================================
   TARJETAS
   ========================================================= */

.tarjetas-tramites {

    width: 100%;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;

}


/* TARJETA INDIVIDUAL */

.tarjeta-tramite {

    background-color: white;

    min-height: 210px;

    border-radius: 8px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    padding: 25px;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.15);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* EFECTO AL PASAR EL MOUSE */

.tarjeta-tramite:hover {

    transform: translateY(-5px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.25);

}


/* NOMBRE DEL FORMULARIO */

.tarjeta-tramite h2 {

    color: #123A73;

    font-size: 1.5rem;

    margin-bottom: 20px;

}


/* BOTÓN DESCARGAR */

.boton-formulario {

    display: inline-block;

    background-color: #8BC34A;

    color: #123A73;

    text-decoration: none;

    font-weight: bold;

    padding: 10px 25px;

    border-radius: 25px;

    transition:
        background-color 0.3s ease,
        transform 0.2s ease;

}


.boton-formulario:hover {

    background-color: #7cb342;

    transform: scale(1.05);

}


/* =========================================================
   BOTÓN ENVIAR FORMULARIO
   ========================================================= */

.boton-enviar-formulario {

    display: inline-block;

    margin-top: 25px;

    background-color: #8BC34A;

    color: #123A73;

    text-decoration: none;

    font-weight: bold;

    padding: 13px 45px;

    border-radius: 5px;

    transition:
        background-color 0.3s ease,
        transform 0.2s ease;

}


.boton-enviar-formulario:hover {

    background-color: #7cb342;

    transform: scale(1.05);

}
.botones-enviar{
    display: flex;
    gap: 25px;
}


/* =========================================================
   TABLETS
   ========================================================= */

@media (max-width: 768px) {

    .seccion-tramites {

        padding:
            110px
            5%
            50px;

    }


    .titulo-tramites {

        font-size: 2.5rem;

        margin-bottom: 30px;

    }


    .tarjetas-tramites {

        grid-template-columns: repeat(2, 1fr);

        gap: 18px;

    }


    .tarjeta-tramite {

        min-height: 180px;

        padding: 20px;

    }


    .tarjeta-tramite h2 {

        font-size: 1.3rem;

    }
    .botones-enviar{
        flex-direction: column;
        gap: 5px;
    }

}


/* =========================================================
   CELULARES
   ========================================================= */

@media (max-width: 600px) {

    .seccion-tramites {

        padding:
            100px
            7%
            40px;

    }


    .titulo-tramites {

        font-size: 2.2rem;

        text-align: left;

        margin-bottom: 30px;

    }


    .tarjetas-tramites {

        grid-template-columns: 1fr;

        gap: 18px;

    }


    .tarjeta-tramite {

        width: 100%;

        min-height: 170px;

    }


    .tarjeta-tramite h2 {

        font-size: 1.25rem;

    }


    .boton-formulario {

        padding: 9px 22px;

        font-size: 0.9rem;

    }


    .boton-enviar-formulario {

        width: 100%;

        text-align: center;

        padding: 12px 15px;

        margin-top: 25px;

    }
    .botones-enviar{
        flex-direction: column;

        gap: 5px;
    }

}


/* =========================================================
   CELULARES PEQUEÑOS
   ========================================================= */

@media (max-width: 480px) {

    .seccion-tramites {

        padding-top: 90px;

    }


    .titulo-tramites {

        font-size: 2rem;

    }


    .tarjeta-tramite {

        min-height: 160px;

    }


    .boton-enviar-formulario {

        width: 100%;

    }
    .botones-enviar{
        display: inline;
        align-items: center;
        gap: 5px;
    }

}

/* =========================================================
   PÁGINA DE LEGISLACIÓN
   ========================================================= */

.seccion-legislacion {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 75px);
    padding: 120px 6% 70px;
    overflow: hidden;
}

.fondo-legislacion {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.degra-legislacion {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(18, 58, 115, 0.35) 0%,
        rgba(18, 58, 115, 0.95) 100%
    );
    z-index: 2;
}

.legislacion-contenido {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.titulo-legislacion {
    width: 100%;
    color: white;
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 10px;
    font-weight: bold;
}

.subtitulo-legislacion {
    width: 100%;
    color: #e0e0e0;
    font-size: 1.15rem;
    margin-bottom: 40px;
    line-height: 1.5;
}

/* Grilla de tarjetas de leyes */
.tarjetas-legislacion {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.tarjeta-ley {
    background-color: white;
    border-radius: 12px;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-ley:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.ley-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.ley-info h2 {
    color: #123A73;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.ley-info p {
    color: #555555;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

/* Estilos de respuesta para Tablets y Celulares */
@media (max-width: 900px) {
    .tarjetas-legislacion {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .seccion-legislacion {
        padding: 110px 5% 50px;
    }

    .titulo-legislacion {
        font-size: 2.4rem;
    }

    .subtitulo-legislacion {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .tarjeta-ley {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }

    .tarjeta-ley .boton-formulario {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .seccion-legislacion {
        padding-top: 90px;
    }

    .titulo-legislacion {
        font-size: 2rem;
    }
}



/* =========================================================
   PÁGINA DE GALERÍA
   ========================================================= */

.seccion-galeria {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 75px);
    padding: 120px 6% 70px;
    overflow: hidden;
}

.fondo-galeria {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.degra-galeria {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(18, 58, 115, 0.35) 0%,
        rgba(18, 58, 115, 0.95) 100%
    );
    z-index: 2;
}

.galeria-contenido {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.titulo-galeria {
    width: 100%;
    color: white;
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 10px;
    font-weight: bold;
}

.subtitulo-galeria {
    width: 100%;
    color: #e0e0e0;
    font-size: 1.15rem;
    margin-bottom: 40px;
    line-height: 1.5;
}

/* Grilla de la galería */
.grid-galeria {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.item-galeria {
    position: relative;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    height: 280px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item-galeria img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.item-galeria:hover img {
    transform: scale(1.08);
}

.item-galeria:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Efecto superpuesto (Overlay) con el título de la foto */
.galeria-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18, 58, 115, 0.85) 0%, rgba(18, 58, 115, 0) 70%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.galeria-overlay h3 {
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0;
}
/* CAPA OSCURA QUE DESENFOCA EL FONDO */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* TARJETA RESALTADA FLOTANDO POR ENCIMA DE TODO */
.item-galeria.resaltada {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 85% !important;
    max-width: 650px !important;
    height: auto !important;
    max-height: 85vh !important;
    z-index: 9999 !important;
    background-color: #ffffff !important;
    border-radius: 16px !important;
    padding: 30px !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    cursor: default !important;
}

.item-galeria.resaltada img {
    width: 100% !important;
    height: auto !important;
    max-height: 65vh !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    filter: none !important;
}

.item-galeria.resaltada .galeria-overlay {
    position: relative !important;
    inset: auto !important;
    background: none !important;
    opacity: 1 !important;
    padding: 15px 0 0 0 !important;
    display: block !important;
    text-align: center !important;
}

.item-galeria.resaltada .galeria-overlay h3 {
    color: #123A73 !important;
    font-size: 1.8rem !important;
    font-weight: bold !important;
}
/* Responsividad para la Galería */
@media (max-width: 900px) {
    .grid-galeria {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .seccion-galeria {
        padding: 110px 5% 50px;
    }

    .titulo-galeria {
        font-size: 2.4rem;
    }

    .subtitulo-galeria {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .item-galeria {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .seccion-galeria {
        padding-top: 90px;
    }

    .titulo-galeria {
        font-size: 2rem;
    }

    .item-galeria {
        height: 200px;
    }
}







/* FOOTER */
.footer {
    z-index: 1000;
    width: 100%;
    background-color: #ffffff;
    padding: 20px 20px;
    box-sizing: border-box;
}

.footer-container {
    z-index: 1000;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.footer-label {
    color: #8c8c8c;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-text {
    color: #595959;
    font-size: 1rem;
    margin: 4px 0;
}

.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icons a img {
    width: 36px;
    height: 36px;
    transition: transform 0.2s ease;
}

.social-icons a img:hover {
    transform: scale(1.1);
}




/* =========================================================
   VERSION RESPONSIVA PARA TELEFONOS Y TABLETS
   ========================================================= */


/* ---------------------------------------------------------
   BOTÓN DEL MENÚ MÓVIL
   --------------------------------------------------------- */

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}


/* =========================================================
   TABLETS
   ========================================================= */

@media (max-width: 1100px) {

    /* HEADER */

    .header-container {
        padding: 1.2rem 4%;
    }

    ul {
        gap: 2rem;
    }

    .nav-link {
        font-size: 1rem;
    }


    /* HERO */

    .titulo {
        font-size: 3rem;
        max-width: 600px;
    }


    /* SOBRE NOSOTROS */

    .texto {
        font-size: 1.6rem;
        max-width: 85%;
    }


    /* MISION Y VISION */

    .mision-vision-container {
        left: 8%;
        right: 8%;
        gap: 20px;
    }

    .card {
        padding: 40px 50px;
    }


    /* HISTORIA */

    .historia-container {
        padding: 70px 6% 50px 6%;
    }

    #titulo-historia {
        font-size: 2.7rem;
    }

    #texto-historia {
        font-size: 1.1rem;
    }
}


/* =========================================================
   TELEFONOS
   ========================================================= */

@media (max-width: 768px) {

    /* -----------------------------------------------------
       CONFIGURACIÓN GENERAL
       ----------------------------------------------------- */

    html {
        scroll-behavior: smooth;
    }

    body {
        width: 100%;
        overflow-x: hidden;
    }


    /* -----------------------------------------------------
       HEADER
       ----------------------------------------------------- */

    .header-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 75px;

        padding: 0 20px;

        display: flex;
        justify-content: space-between;
        align-items: center;

        z-index: 1000;
    }


    .logoa {
        height: 38px;
        width: auto;
        max-width: 180px;
        object-fit: contain;
    }


    /* BOTÓN HAMBURGUESA */

    .menu-toggle {
        color: #0b3954;
        display: block;
        position: relative;
        z-index: 1002;
        background-color: #8BC34A;
        padding: 10px;
        border-radius: 15px;
    }


    /* -----------------------------------------------------
       MENÚ DE NAVEGACIÓN
       ----------------------------------------------------- */

    .main-nav {
        position: absolute;

        top: 75px;
        left: 0;

        width: 100%;

        background-color: #123A73;

        max-height: 0;
        overflow: hidden;

        opacity: 0;

        transition:
            max-height 0.35s ease,
            opacity 0.25s ease;
    }


    .main-nav.active {
        max-height: 500px;
        opacity: 1;
    }


    .main-nav ul {
        width: 100%;

        display: flex;
        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding: 10px 0 15px;
    }


    .main-nav ul li {
        width: 100%;
        text-align: center;
    }


    .nav-link {
        display: block;

        width: 100%;

        padding: 15px 20px;

        font-size: 1rem;

        color: white;
    }


    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        opacity: 1;
    }


    /* -----------------------------------------------------
       HERO PRINCIPAL
       ----------------------------------------------------- */

    .imagen-principal {
        width: 100%;
        height: 100vh;
        min-height: 650px;
        position: relative;
    }


    .prim {
        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center;
    }


    .degra {
        width: 100%;
        height: 100%;
    }


    .titulo {
        top: 35%;
        left: 7%;

        width: 86%;
        max-width: none;

        font-size: 2.4rem;
        line-height: 1.2;
    }


    .boton {
        top: 58%;
        left: 7%;

        font-size: 1rem;

        padding: 15px 25px;

        border-radius: 50px;
    }


    /* -----------------------------------------------------
       SOBRE NOSOTROS
       ----------------------------------------------------- */

    .seccion-sobre {
        width: 100%;
        height: auto;
        min-height: 1200px;

        overflow: hidden;
    }


    #imgp {
        width: 100%;
        height: 1200px;
    }


    .pag2 {
        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center;
    }


    .degra2,
    .degra3 {
        height: 100%;
    }


    .abt {
        top: 10%;
        left: 7%;

        width: 86%;

        font-size: 2.5rem;
    }


    .texto {
        top: 22%;
        left: 7%;

        width: 86%;
        max-width: none;

        font-size: 1.15rem;
        line-height: 1.6;
    }


    /* -----------------------------------------------------
       MISIÓN Y VISIÓN
       ----------------------------------------------------- */

    .mision-vision-container {
        position: absolute;

        top: 40%;
        left: 7%;
        right: 7%;

        width: 86%;

        padding: 0;

        display: flex;
        flex-direction: column;

        gap: 20px;

        margin: 0;
    }


    .card {
        width: 100%;
        max-width: none;

        min-height: auto;

        padding: 30px 25px;

        border-radius: 16px;
    }


    .card-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }


    .card-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }


    /* -----------------------------------------------------
       HISTORIA
       ----------------------------------------------------- */

    .historia {
        width: 100%;
        overflow: hidden;
    }


    .historia-container {
        width: 100%;

        min-height: auto;

        padding: 70px 7% 50px;

        display: flex;
        flex-direction: column;
    }


    .historia-container .prim {
        position: absolute;

        top: 0;
        left: 0;

        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center;
    }


    .degra4 {
        width: 100%;
        height: 100%;
    }


    #titulo-historia {
        position: relative;

        top: auto;
        left: auto;

        width: 100%;

        font-size: 2.4rem;

        margin-bottom: 25px;
    }


    #texto-historia {
        position: relative;

        top: auto;
        left: auto;

        width: 100%;
        max-width: none;

        font-size: 1rem;
        line-height: 1.7;

        margin-bottom: 30px;

        white-space: normal;
    }


    /* -----------------------------------------------------
       SOCIOS FUNDADORES
       ----------------------------------------------------- */

    .socios-fundadores {
        position: relative;

        width: 100%;

        padding-top: 25px;
        margin-top: 10px;
    }


    .titulo-socios {
        font-size: 1.7rem;

        line-height: 1.3;

        margin-bottom: 20px;
    }


    .lista-socios {
        display: grid;

        grid-template-columns: 1fr;

        gap: 12px;
    }


    .lista-socios li {
        font-size: 0.95rem;

        line-height: 1.4;

        padding-left: 1.2rem;
    }


    /* -----------------------------------------------------
       CALIDAD DEL AGUA
       ----------------------------------------------------- */

    #titulo-calidad {
        top: 15%;

        left: 7%;

        width: 86%;
        max-width: none;

        font-size: 2.6rem;
    }


    #texto-calidad {
        top: 24%;

        left: 7%;

        width: 86%;

        font-size: 1rem;

        line-height: 1.6;
    }


    .cards-calidad {
        position: absolute;

        top: 45%;

        left: 7%;
        right: 7%;

        width: 86%;

        padding: 0;

        display: flex;
        flex-direction: column;

        gap: 25px;
    }


    .card-calidad {
        width: 100%;
        max-width: none;
    }


    #imagen-calidad {
        height: 1100px;
    }


    /* -----------------------------------------------------
       FOOTER
       ----------------------------------------------------- */

    .footer {
        width: 100%;

        padding: 35px 20px;
    }


    .footer-container {
        width: 100%;

        display: flex;
        flex-direction: column;

        align-items: flex-start;

        gap: 30px;
    }


    .footer-info {
        width: 100%;
    }


    .footer-text {
        font-size: 0.9rem;

        line-height: 1.5;

        margin: 7px 0;

        word-wrap: break-word;
    }


    .footer-social {
        width: 100%;
    }


    .social-icons {
        display: flex;

        gap: 15px;

        align-items: center;
    }


    .social-icons a img {
        width: 38px;
        height: 38px;
    }
}


/* =========================================================
   TELEFONOS PEQUEÑOS
   ========================================================= */

@media (max-width: 480px) {

    /* HEADER */
    .menu-toggle{
        background-color: #8BC34A ;
    }
    .header-container {
        height: 68px;

        padding: 0 15px;
    }


    .main-nav {
        top: 68px;
    }


    .logoa {
        height: 34px;
        max-width: 160px;
    }


    /* HERO */

    .imagen-principal {
        min-height: 600px;
        height: 100vh;
    }


    .titulo {
        top: 32%;

        left: 7%;

        width: 86%;

        font-size: 2rem;
    }


    .boton {
        top: 57%;

        left: 7%;

        font-size: 0.95rem;

        padding: 13px 20px;
    }


    /* SOBRE NOSOTROS */

    .seccion-sobre {
        min-height: 1250px;
    }


    #imgp {
        height: 1250px;
    }


    .abt {
        top: 9%;

        font-size: 2rem;
    }


    .texto {
        top: 15%;

        font-size: 1rem;

        line-height: 1.6;
    }


    /* TARJETAS */

    .mision-vision-container {
        top: 40%;
    }


    .card {
        padding: 25px 20px;
    }


    .card-title {
        font-size: 1.6rem;
    }


    .card-text {
        font-size: 0.9rem;
    }


    /* HISTORIA */

    .historia-container {
        padding: 60px 7% 40px;
    }


    #titulo-historia {
        font-size: 2.0rem;
    }


    #texto-historia {
        font-size: 0.92rem;

        line-height: 1.65;
    }


    .titulo-socios {
        font-size: 1.5rem;
    }


    .lista-socios li {
        font-size: 0.9rem;
    }


    /* FOOTER */

    .footer {
        padding: 30px 15px;
    }


    .footer-text {
        font-size: 0.85rem;
    }
}






/* CAPA OSCURA QUE DESENFOCA EL FONDO */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Estado activo de la capa oscura */
.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* RESALTE AUTOMÁTICO PARA CUALQUIER TARJETA SELECCIONADA */
.card.resaltada, 
.card-calidad.resaltada {
    position: relative;
    z-index: 2000 !important;
    transform: scale(1.08) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5) !important;
    cursor: pointer;
}