/* ==========================================================================
           ESTILOS PERSONALIZADOS UI/UX - EPS AGUAS DE LIMA NORTE S.A.
           ========================================================================== */
        
        :root {
            --bg-dark-deep: #030b18;
            --bg-dark-card: rgba(10, 25, 47, 0.65);
            --border-glass: rgba(0, 210, 255, 0.15);
            --border-glass-hover: rgba(0, 210, 255, 0.4);
            --cyan-accent: #00d2ff;
            --blue-accent: #0066ff;
            --emerald-glow: #10b981;
            --gold-accent: #fbbf24;
            --text-muted: #94a3b8;
            --text-heading: #f8fafc;
        }

        body {
            font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
            background-color: #020617;
            color: #e2e8f0;
            overflow-x: hidden;
        }

        /* --- SECCIÓN DEMO PREVIA --- */
        .demo-hero-section {
            background: linear-gradient(135deg, #0f172a 0%, #0369a1 50%, #0284c7 100%);
            min-height: 380px;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 4rem 1.5rem;
        }

        .demo-hero-pattern {
            position: absolute;
            inset: 0;
            background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
            background-size: 24px 24px;
            opacity: 0.6;
        }

        /* Contenedor usado también por las páginas internas (se conserva) */
        .aln-container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 1.5rem;
            position: relative;
            z-index: 2;
        }

/* ==========================================================================
   FOOTER INSTITUCIONAL (includes/footer.php)
   Fondo gris azulado claro, ondas SVG suaves arriba y abajo
   ========================================================================== */

.eps-footer {
    --eps-ink: #002855;      /* Azul marino institucional (títulos) */
    --eps-body: #4f6b8f;     /* Gris azulado para textos */
    --eps-accent: #0f8ae0;   /* Celeste de la marca */
    --eps-line: #cbdcec;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(180deg, #f3f7fb 0%, #e8f0f8 72%, #e3edf7 100%);
    color: var(--eps-ink);
}

.eps-footer *,
.eps-footer *::before,
.eps-footer *::after {
    box-sizing: border-box;
}

.eps-footer__topwaves {
    height: clamp(95px, 12vw, 190px);
    background: url('../img/FOOTER/ondas-superiores.svg') center top / 100% 100% no-repeat;
}

/* --- Rejilla principal --- */
.eps-footer__inner {
    max-width: 1660px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.38fr 1fr 1fr 1.3fr 1.06fr;
    gap: clamp(20px, 2.3vw, 48px);
    padding: 14px 32px 45px;
    align-items: start;
}

.eps-footer__brand,
.eps-footer__group,
.eps-footer__contact {
    min-width: 0;
}

/* --- Columna de identidad --- */
.eps-footer__brand {
    padding-right: clamp(5px, 2vw, 35px);
}

.eps-footer__logo-link {
    display: inline-block;
}

.eps-footer__logo {
    display: block;
    width: min(260px, 100%);
    height: auto;
}

.eps-footer__brand p {
    margin: 20px 0 0;
    font-size: 15px;
    line-height: 1.85;
    color: var(--eps-body);
}

/* --- Columnas de enlaces y contacto --- */
.eps-footer__group,
.eps-footer__contact {
    border-left: 1px solid var(--eps-line);
    padding-left: clamp(20px, 2.4vw, 44px);
}

.eps-footer h2 {
    margin: 0 0 22px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--eps-ink);
}

.eps-footer h2::after {
    content: '';
    display: block;
    width: 34px;
    height: 3px;
    margin-top: 10px;
    border-radius: 3px;
    background: var(--eps-accent);
}

.eps-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.eps-footer a {
    color: inherit;
    text-decoration: none;
}

.eps-footer__group li + li {
    margin-top: 6px;
}

.eps-footer__group a,
.eps-footer__group .eps-footer__pending {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 32px; /* Área táctil cómoda */
    font-size: 15px;
    line-height: 1.4;
    color: var(--eps-body);
    transition: color 0.2s ease;
}

.eps-footer__chevron {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    color: var(--eps-accent);
    transition: transform 0.2s ease;
}

.eps-footer a:hover,
.eps-footer a:focus-visible {
    color: #0072ce;
}

.eps-footer__group a:hover .eps-footer__chevron,
.eps-footer__group a:focus-visible .eps-footer__chevron {
    transform: translateX(3px);
}

.eps-footer a:focus-visible {
    outline: 3px solid var(--eps-accent);
    outline-offset: 4px;
    border-radius: 3px;
}

/* Enlace sin URL validada: se muestra como texto, sin interacción */
.eps-footer__pending {
    cursor: default;
}

/* --- Atención al usuario --- */
.eps-footer__contact ul {
    display: grid;
    gap: 15px;
}

.eps-footer__contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--eps-ink);
    overflow-wrap: anywhere;
}

.eps-footer__contact-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #d4e8f8;
    color: var(--eps-accent);
}

.eps-footer__contact-icon svg {
    width: 18px;
    height: 18px;
}

.eps-footer__contact strong {
    font-size: 16px;
}

.eps-footer__contact small {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    color: var(--eps-body);
}

/* --- Acceso destacado: Libro de Reclamaciones --- */
.eps-footer__claims {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin-top: 70px;
    padding: 16px 14px;
    border-radius: 14px;
    border: 1px solid rgba(15, 138, 224, 0.15);
    background: rgba(214, 233, 248, 0.9);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--eps-ink);
    box-shadow: 0 3px 14px rgba(0, 40, 85, 0.05);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

a.eps-footer__claims:hover,
a.eps-footer__claims:focus-visible {
    background: #ffffff;
    color: var(--eps-ink);
    box-shadow: 0 8px 22px rgba(0, 40, 85, 0.1);
}

.eps-footer__claims img {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
}

.eps-footer__claims-arrow {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--eps-accent);
    color: #ffffff;
    font-size: 22px;
}

.eps-footer__claims--pending .eps-footer__claims-arrow {
    opacity: 0.5;
}

/* --- Ondas y barra inferior --- */
.eps-footer__bottomwaves {
    height: 78px;
    margin-top: 14px;
    background: url('../img/FOOTER/ondas-inferiores.svg') center bottom / 100% 100% no-repeat;
}

/* Barra legal integrada al cuerpo del footer (mismo fondo, alineada con las
   columnas) en vez de una franja aparte bajo las ondas */
.eps-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    width: min(1596px, calc(100% - 64px));
    margin: 0 auto;
    padding: 20px 0 6px;
    border-top: 1px solid var(--eps-line);
    font-size: 13px;
    color: var(--eps-body);
}

.eps-footer__bottom p {
    margin: 0;
}

.eps-footer__bottom strong {
    color: var(--eps-ink);
}

/* Crédito del área de desarrollo */
.eps-footer__credit {
    font-size: 12px;
    letter-spacing: 0.06em;
}

.eps-footer__credit strong {
    font-weight: 800;
    color: var(--eps-ink);
}

.eps-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.eps-footer__legal > * {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
}

.eps-footer__legal > * + *::before {
    content: '|';
    margin: 0 14px;
    color: #819db8;
}

.eps-footer__socials {
    display: flex;
    gap: 9px;
}

.eps-footer__socials a {
    display: grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #d4e8f8;
    font-weight: 800;
    color: var(--eps-accent);
}

/* --- Responsividad --- */
@media (max-width: 1300px) {
    .eps-footer__inner {
        grid-template-columns: 1.35fr 1fr 1fr 1.25fr;
        row-gap: 18px;
    }
    .eps-footer__contact {
        grid-column: 4;
        grid-row: 1;
    }
    .eps-footer__claims {
        grid-column: 4;
        grid-row: 2;
        margin-top: 0;
    }
}

@media (max-width: 900px) {
    .eps-footer__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px;
    }
    .eps-footer__contact,
    .eps-footer__claims {
        grid-column: auto;
        grid-row: auto;
    }
    /* "Servicios" pasa a la primera columna: sin separador lateral */
    .eps-footer__group + .eps-footer__group {
        border-left: 0;
        padding-left: 0;
    }
    .eps-footer__claims {
        align-self: start;
        margin: 0;
    }
    .eps-footer__bottom {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 580px) {
    .eps-footer__topwaves {
        height: 75px;
    }
    .eps-footer__inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 10px 24px 35px;
    }
    .eps-footer__group,
    .eps-footer__contact {
        border-left: 0;
        border-top: 1px solid var(--eps-line);
        padding: 22px 0 0;
    }
    .eps-footer__group a,
    .eps-footer__group .eps-footer__pending {
        min-height: 44px;
    }
    .eps-footer__claims {
        grid-column: 1;
        width: 100%;
    }
    .eps-footer__bottomwaves {
        height: 42px;
    }
    .eps-footer__bottom {
        width: calc(100% - 48px);
        padding: 20px 0 6px;
        font-size: 12px;
    }
    .eps-footer__legal {
        justify-content: center;
        row-gap: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eps-footer__group a,
    .eps-footer__chevron,
    .eps-footer__claims {
        transition: none;
    }
}
