/* ==================================================================
   Tercera Notaría de Puente Alto
   Hoja de estilos principal — Mobile First
   ================================================================== */

/* ---------------------------------------------------------------
   1. Tokens de diseño
   --------------------------------------------------------------- */
:root {
    --navy:        #0B2D5B;
    --navy-800:    #081F3B;
    --navy-600:    #123A70;
    --navy-muted:  #3C527A;

    --gold:        #C9A227;
    --gold-light:  #E3C863;

    --gray:        #E7E7EF;
    --ivory:       #F9F7F2;
    --white:       #FFFFFF;

    --text:        #22303F;
    --text-soft:   #46505D;
    --muted:       #5A6474;
    --line:        #E3E4EC;

    --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-sans:    "Montserrat", "Segoe UI", Arial, Helvetica, sans-serif;

    --radius:    10px;
    --radius-lg: 14px;

    --shadow-sm: 0 2px 10px rgba(11, 45, 91, .06);
    --shadow-md: 0 16px 36px rgba(11, 45, 91, .10);
    --shadow-lg: 0 26px 60px rgba(11, 45, 91, .16);

    --header-h: 80px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------------------------------------------------------------
   2. Reset y bases
   --------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.18;
    color: var(--navy);
    margin: 0;
    text-wrap: balance;
}

p { margin: 0; }

/* Párrafos de lectura: alineación justificada (a ambos lados).
   Se excluyen títulos, etiquetas y los textos centrados por diseño.
   El guionado (hyphens) evita huecos grandes en columnas angostas. */
.hero-subtitle,
.hero-text,
.pillar-text,
.service-text,
.visit-text,
.footer-note,
.tab-panel-intro,
.pending-text,
.modal-note,
.acc-text {
    text-align: justify;
    text-wrap: pretty;
    hyphens: auto;
}

a { color: inherit; }

img,
svg { max-width: 100%; }

button { font-family: inherit; }

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: rgba(201, 162, 39, .28);
    color: var(--navy);
}

.container {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: clamp(1.15rem, 4vw, 2rem);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100%;
    z-index: 200;
    padding: .85rem 1.4rem;
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 var(--radius) var(--radius);
    transition: top .25s var(--ease);
}

.skip-link:focus-visible { top: 0; }

/* ---------------------------------------------------------------
   3. Botones
   --------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6em;
    min-height: 54px;
    padding: .95em 1.9em;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .03em;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    border: 1.5px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color .3s var(--ease),
                color .3s var(--ease),
                border-color .3s var(--ease),
                transform .3s var(--ease),
                box-shadow .3s var(--ease);
}

/* Botón primario — fondo azul marino, detalle dorado discreto */
.btn-primary {
    background-color: var(--navy);
    border-color: var(--navy);
    color: var(--white);
    box-shadow: inset 0 -3px 0 rgba(201, 162, 39, .85);
}

.btn-primary:hover {
    background-color: var(--navy-800);
    border-color: var(--navy-800);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: inset 0 -3px 0 var(--gold),
                0 14px 30px rgba(11, 45, 91, .28);
}

/* Botón secundario — fondo claro, borde y texto azul marino */
.btn-secondary {
    background-color: rgba(255, 255, 255, .72);
    border-color: var(--navy);
    color: var(--navy);
}

.btn-secondary:hover {
    background-color: var(--white);
    border-color: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(11, 45, 91, .16);
}

/* Botón dorado — para usar sobre fondos azul marino (tarjeta de validación) */
.btn-validation {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--navy-800);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
}

.btn-validation:hover {
    background-color: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--navy-800);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .3);
}

/* ---------------------------------------------------------------
   4. Header institucional
   --------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(249, 247, 242, .94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: background-color .3s var(--ease),
                border-color .3s var(--ease),
                box-shadow .3s var(--ease);
}

.site-header.is-scrolled {
    background-color: rgba(255, 255, 255, .97);
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px rgba(11, 45, 91, .08);
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-h);
}

/* Logotipo */
.brand {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    text-decoration: none;
    padding-block: .45rem;
}

.brand-logo {
    display: block;
    width: auto;
    height: 57.5px;
    transition: transform .35s var(--ease);
}

.brand:hover .brand-logo { transform: translateY(-2px); }

/* Botón menú móvil */
.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 11px;
    background-color: transparent;
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color .3s var(--ease), background-color .3s var(--ease);
}

.nav-toggle:hover {
    border-color: rgba(201, 162, 39, .6);
    background-color: var(--white);
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--navy);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s var(--ease);
}

.site-header.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Navegación (móvil) */
.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-top: 1px solid var(--line);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 22px 38px rgba(11, 45, 91, .14);
    padding: .75rem 1.25rem 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .28s var(--ease),
                transform .28s var(--ease),
                visibility .28s var(--ease);
}

.site-header.is-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.nav-link {
    position: relative;
    display: block;
    padding: .95rem .25rem;
    font-size: .84rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid var(--gray);
    transition: color .3s var(--ease), padding-left .3s var(--ease);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: .25rem;
    right: .25rem;
    bottom: -1px;
    height: 2px;
    background-color: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
}

.nav-link:hover { color: var(--navy-600); }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }

.nav-item-cta { padding-top: 1.1rem; }

.btn-transparencia {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: .75em 1.5em;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--navy);
    background-color: transparent;
    border: 1.5px solid var(--gold);
    border-radius: 6px;
    text-decoration: none;
    transition: background-color .3s var(--ease),
                color .3s var(--ease),
                box-shadow .3s var(--ease);
}

.btn-transparencia:hover,
.btn-transparencia.is-active {
    background-color: var(--navy);
    color: var(--white);
    box-shadow: 0 12px 26px rgba(11, 45, 91, .28);
}

/* Navegación (escritorio) */
@media (min-width: 992px) {
    :root { --header-h: 96px; }

    .brand-logo { height: 70px; }

    .nav-toggle { display: none; }

    .main-nav {
        position: static;
        background-color: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-list {
        flex-direction: row;
        align-items: center;
        gap: clamp(.6rem, 1.3vw, 1.2rem);
    }

    /* Texto y separación más compactos: el menú ocupa menos ancho. */
    .nav-link {
        padding: .55rem 0;
        border-bottom: 0;
        font-size: .74rem;
        letter-spacing: .08em;
    }

    .nav-link::after { left: 0; right: 0; bottom: -4px; }

    .nav-item-cta { padding-top: 0; margin-left: .3rem; }

    .btn-transparencia {
        width: auto;
        padding: .7em 1.25em;
        font-size: .72rem;
        letter-spacing: .1em;
    }
}

/* ---------------------------------------------------------------
   5. Hero principal
   --------------------------------------------------------------- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 560px;
    padding: 3.5rem 0 4rem;
    overflow: hidden;
    background-color: var(--ivory);
}

/* Fotografía notarial de fondo (timbre en el sector derecho) */
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("../images/hero.png");
    background-position: right center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Degradado marfil → transparente: deja despejado el sector del texto */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        var(--ivory) 0%,
        rgba(249, 247, 242, .95) 32%,
        rgba(249, 247, 242, .58) 58%,
        rgba(249, 247, 242, 0) 82%);
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("../images/hero-arquitectura.svg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(102deg,
        rgba(6, 24, 49, .96) 0%,
        rgba(11, 45, 91, .90) 46%,
        rgba(11, 45, 91, .62) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content { max-width: 640px; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--gold-light);
}

/* Etiqueta sobre fondo claro: azul marino (la línea decorativa sigue dorada) */
.hero .hero-eyebrow { color: var(--navy); }

.hero-eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    background-color: var(--gold);
}

.hero-title {
    margin-top: .8rem;
    font-size: clamp(2.6rem, 6.4vw, 4.5rem);
    color: var(--navy);
    letter-spacing: .005em;
}

.hero-subtitle {
    margin-top: 1.15rem;
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-weight: 600;
    line-height: 1.5;
    color: var(--navy-muted);
}

.hero-text {
    margin-top: 1.25rem;
    max-width: 520px;
    font-size: clamp(.98rem, 1.4vw, 1.05rem);
    line-height: 1.8;
    color: var(--text-soft);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.3rem;
}

/* Animación de entrada */
.hero-content > * {
    animation: heroFade .9s var(--ease) both;
}

.hero-content > *:nth-child(1) { animation-delay: .10s; }
.hero-content > *:nth-child(2) { animation-delay: .22s; }
.hero-content > *:nth-child(3) { animation-delay: .34s; }
.hero-content > *:nth-child(4) { animation-delay: .46s; }
.hero-content > *:nth-child(5) { animation-delay: .58s; }

@keyframes heroFade {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (min-width: 992px) {
    .hero {
        min-height: clamp(600px, calc(100svh - var(--header-h)), 680px);
        padding: 4.5rem 0 5rem;
    }
}

/* Móvil: imagen vertical propia (3:4) y velo claro moderado detrás de los textos */
@media (max-width: 767px) {
    .hero {
        min-height: auto;
        padding: 3.25rem 0 3.5rem;
    }

    .hero-bg {
        background-image: url("../images/hero movil.png");
        background-position: center top;
        background-size: cover;
    }

    .hero-overlay {
        background: linear-gradient(180deg,
            rgba(249, 247, 242, .88) 0%,
            rgba(249, 247, 242, .70) 52%,
            rgba(249, 247, 242, .48) 100%);
    }

    /* Eyebrow: "Puente Alto" baja bajo "Servicios Notariales", más pequeño */
    .hero .hero-eyebrow {
        display: flex;
        flex-wrap: wrap;
        row-gap: .35rem;
    }

    .hero .hero-eyebrow-sep { display: none; }

    .hero .hero-eyebrow-loc {
        flex-basis: 100%;
        padding-left: calc(34px + .75rem);
        font-size: .64rem;
        letter-spacing: .2em;
    }
}

@media (max-width: 540px) {
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
}

/* ---------------------------------------------------------------
   5.1 Franja institucional — Confianza · Agilidad · Cercanía
   --------------------------------------------------------------- */
.pillars {
    padding-block: clamp(1rem, 1.6vw, 1.25rem);
    /* Beige claro (tono cálido) para diferenciarse del header y del hero,
       que son marfil. */
    background-color: #F0E8D5;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.pillar {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    padding-block: 1.05rem;
}

.pillar + .pillar { border-top: 1px solid rgba(11, 45, 91, .10); }

/* Círculo con borde azul marino y anillo interior dorado */
.pillar-icon {
    position: relative;
    flex: none;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border: 1.5px solid var(--navy);
    border-radius: 50%;
}

.pillar-icon::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(201, 162, 39, .8);
    border-radius: 50%;
}

.pillar-icon img { display: block; width: 36px; height: 36px; }

.pillar-body { min-width: 0; }

.pillar-title {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--navy);
}

.pillar-rule {
    display: block;
    width: 30px;
    height: 2px;
    margin: .45rem 0 .5rem;
    background-color: var(--gold);
}

.pillar-text {
    font-size: clamp(.875rem, 1.1vw, .9rem);
    line-height: 1.5;
    text-wrap: pretty;
    color: var(--text-soft);
}

/* Escritorio: tres columnas separadas por líneas verticales sutiles */
@media (min-width: 860px) {
    .pillars-grid { grid-template-columns: repeat(3, 1fr); }

    .pillar {
        min-height: 118px;
        gap: .9rem;
        padding: .7rem .85rem;
        border-top: 0;
    }

    .pillar:first-child { padding-left: 0; }
    .pillar:last-child  { padding-right: 0; }

    .pillar + .pillar {
        border-top: 0;
        border-left: 1px solid rgba(11, 45, 91, .12);
    }
}

/* ---------------------------------------------------------------
   6. Hero interior (subsitio de Transparencia)
   --------------------------------------------------------------- */
.page-hero {
    position: relative;
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
    overflow: hidden;
    background-color: var(--navy);
}

.page-hero-overlay {
    background: linear-gradient(100deg,
        rgba(6, 24, 49, .95) 0%,
        rgba(11, 45, 91, .88) 55%,
        rgba(11, 45, 91, .74) 100%);
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin-inline: auto;
    text-align: center;
}

.page-hero-inner .hero-eyebrow { justify-content: center; }
.page-hero-inner .hero-eyebrow::before { display: none; }

.page-hero-title {
    margin-top: .8rem;
    font-size: clamp(2rem, 4.6vw, 3.25rem);
    color: var(--white);
}

.page-hero-text {
    margin-top: 1.25rem;
    font-size: clamp(.97rem, 1.4vw, 1.06rem);
    line-height: 1.85;
    color: #D7DEEA;
}

/* ---------------------------------------------------------------
   7. Secciones y servicios
   --------------------------------------------------------------- */
.section {
    padding-block: clamp(3.75rem, 8vw, 7rem);
    scroll-margin-top: calc(var(--header-h) + 12px);
}

.services { background-color: var(--ivory); }

.section-head {
    max-width: 720px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--navy);
}

.eyebrow-mark {
    width: 9px;
    height: 9px;
    background-color: var(--gold);
    transform: rotate(45deg);
}

.section-title {
    margin-top: .85rem;
    font-size: clamp(1.9rem, 3.8vw, 2.85rem);
}

.section-lead {
    margin-top: .9rem;
    font-size: 1.03rem;
    line-height: 1.75;
    color: var(--muted);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.4rem;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2.3rem 1.9rem 2.1rem;
    background-color: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .4s var(--ease),
                box-shadow .4s var(--ease),
                border-color .4s var(--ease);
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s var(--ease);
}

.service-card:hover,
.service-card:focus-within {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(201, 162, 39, .45);
}

.service-card:hover::before,
.service-card:focus-within::before { transform: scaleX(1); }

.service-icon {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin-bottom: 1.4rem;
    background-color: #EDF1F8;
    border: 1px solid #E0E6F1;
    border-radius: 50%;
    transition: background-color .4s var(--ease), border-color .4s var(--ease);
}

.service-card:hover .service-icon,
.service-card:focus-within .service-icon {
    background-color: rgba(201, 162, 39, .14);
    border-color: rgba(201, 162, 39, .45);
}

.service-icon img { width: 32px; height: 32px; }

.service-title {
    font-size: 1.3rem;
    margin-bottom: .6rem;
}

.service-text {
    flex: 1;
    font-size: .96rem;
    line-height: 1.75;
    color: var(--muted);
}

/* Enlace/botón "Más información": abre la ventana de detalle */
.service-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: .5rem;
    margin-top: 1.5rem;
    padding: 0 0 .35rem;
    font-family: inherit;
    font-size: .79rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--navy);
    background: none;
    border: 0;
    border-bottom: 1.5px solid var(--gold);
    cursor: pointer;
    text-decoration: none;
    transition: gap .3s var(--ease), color .3s var(--ease);
}

.service-link:hover { gap: .9rem; color: var(--navy-600); }

.link-arrow { color: var(--gold); }

@media (min-width: 640px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem;
    }
}

/* Escritorio amplio: 4 tarjetas por fila (ocho servicios en total) */
@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }

    .service-card { padding: 1.9rem 1.5rem 1.7rem; }

    .service-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 1.15rem;
    }

    .service-icon img { width: 28px; height: 28px; }

    .service-title { font-size: 1.13rem; }

    .service-text {
        font-size: .9rem;
        line-height: 1.7;
    }

    .service-link {
        margin-top: 1.25rem;
        font-size: .73rem;
        letter-spacing: .09em;
    }
}

/* ---------------------------------------------------------------
   8. Subsitio de Transparencia — pestañas y paneles
   --------------------------------------------------------------- */
.transparency { background-color: var(--ivory); }

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    padding: .45rem;
    background-color: #EEEFF5;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 1.8rem;
}

.tab {
    position: relative;
    flex: 1 1 auto;
    min-width: 132px;
    min-height: 50px;
    padding: .9em 1.2em;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--navy);
    background-color: transparent;
    border: 1.5px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color .3s var(--ease),
                color .3s var(--ease),
                border-color .3s var(--ease),
                box-shadow .3s var(--ease);
}

.tab:hover {
    background-color: var(--white);
    border-color: rgba(201, 162, 39, .5);
}

.tab.is-active {
    background-color: var(--navy);
    border-color: var(--navy);
    color: var(--white);
    box-shadow: 0 10px 22px rgba(11, 45, 91, .25);
}

.tab.is-active::after {
    content: "";
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: 7px;
    height: 2px;
    background-color: var(--gold);
    border-radius: 2px;
}

.tab-panel {
    background-color: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.6rem, 4vw, 2.8rem);
    box-shadow: var(--shadow-sm);
}

.tab-panel[hidden] { display: none; }

.tab-panel-title {
    font-size: clamp(1.5rem, 3vw, 1.95rem);
    margin-bottom: .8rem;
}

.tab-panel-intro {
    max-width: 78ch;
    line-height: 1.85;
    color: var(--muted);
}

.detail-list {
    margin: 1.8rem 0 0;
    border-top: 1px solid var(--line);
}

.detail-row {
    display: grid;
    gap: .25rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.detail-row dt {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--navy-muted);
}

.detail-row dd {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--navy);
}

@media (min-width: 640px) {
    .detail-row {
        grid-template-columns: 200px 1fr;
        gap: 1rem;
        align-items: baseline;
    }
}

.pending-notice {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    margin-top: 1.8rem;
    padding: 1.3rem 1.4rem;
    background-color: #FCF8EA;
    border: 1px dashed rgba(201, 162, 39, .65);
    border-radius: 10px;
}

.pending-icon {
    flex: none;
    width: 32px;
    height: 32px;
    margin-top: .15rem;
}

.pending-title {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: .45rem;
}

.pending-text {
    font-size: .94rem;
    line-height: 1.75;
    color: var(--muted);
}

.integration-host:empty { display: none; }

.integration-host iframe {
    display: block;
    width: 100%;
    min-height: 520px;
    margin-top: 1.6rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background-color: var(--white);
}

.transparency-note {
    margin-top: 1.9rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-size: .9rem;
    line-height: 1.75;
    color: var(--muted);
    text-align: center;
}

/* ---------------------------------------------------------------
   9. Pie de página
   --------------------------------------------------------------- */
.site-footer {
    background-color: var(--ivory);
    color: var(--navy);
}

.footer-grid {
    display: grid;
    gap: 2.75rem;
    align-items: start;
    padding-block: clamp(3.25rem, 6vw, 4.75rem) 2.75rem;
}

/* Logotipo original, integrado directamente sobre el fondo marfil (sin marco) */
.brand-footer {
    display: block;
    max-width: 320px;
}

.brand-footer .brand-logo {
    display: block;
    width: 100%;
    height: auto;
    max-width: 300px;
}

.footer-note {
    margin-top: 1.35rem;
    max-width: 44ch;
    font-size: .94rem;
    line-height: 1.8;
    color: var(--text-soft);
}

/* Redes sociales del pie de página (bajo la columna "Institución") */
.footer-social {
    display: flex;
    align-items: center;
    gap: .85rem;
}

/* Título del bloque de red social, separado de la lista institucional */
.footer-heading-social {
    margin-top: 2.25rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(11, 45, 91, .04);
    border: 1px solid var(--line);
    transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}

.social-link:hover {
    background-color: rgba(201, 162, 39, .12);
    border-color: rgba(201, 162, 39, .5);
    transform: translateY(-2px);
}

.social-icon {
    display: block;
    width: 22px;
    height: 22px;
}

.footer-heading {
    font-family: var(--font-sans);
    font-size: .77rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.3rem;
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .85rem;
}

.footer-list a {
    font-size: .95rem;
    color: var(--navy);
    text-decoration: none;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 1.5px;
    text-underline-offset: .32em;
    transition: color .25s var(--ease), text-decoration-color .25s var(--ease);
}

.footer-list a:hover {
    text-decoration: underline;
    text-decoration-color: var(--gold);
}

.footer-list-plain li {
    font-size: .95rem;
    color: var(--text-soft);
    line-height: 1.7;
}

.footer-bottom {
    background-color: var(--navy);
}

/* Sub-footer: dos columnas (copyright a la izquierda, legal y
   crédito del desarrollador a la derecha) */
.sub-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem 2.5rem;
    padding-block: 20px;
    font-size: .82rem;
    color: var(--white);
}

.sub-footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.footer-legal {
    font-size: .75rem;
    color: rgba(255, 255, 255, .82);
}

/* Fila de créditos: "Desarrollado por" + logo del proveedor */
.footer-credit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-size: .82rem;
    color: var(--white);
    text-decoration: none;
    transition: color .25s var(--ease);
}

.footer-credit:hover { color: var(--gold-light); }

.footer-credit-logo {
    display: block;
    width: auto;
    height: 32px;
}

/* Móvil y tablet: el sub-footer se apila al centro */
@media (max-width: 768px) {
    .sub-footer {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        text-align: center;
    }

    .sub-footer-right { align-items: center; }
}

/* En este rango el pie llega al borde inferior de la ventana y el
   crédito quedaría bajo el botón flotante de WhatsApp; se le reserva
   el espacio del botón para que no lo tape. */
@media (min-width: 769px) and (max-width: 1279px) {
    .sub-footer-right { padding-right: 6.25rem; }
}

@media (min-width: 860px) {
    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1.05fr;
        gap: 3.5rem;
    }
}

/* ---------------------------------------------------------------
   10. Ubicación y atención al público
   --------------------------------------------------------------- */
.visit {
    background-color: var(--navy);
    padding-block: clamp(70px, 6vw, 90px);
    scroll-margin-top: calc(var(--header-h) + 12px);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.75rem, 4.5vw, 3rem);
    grid-template-areas:
        "head"
        "map"
        "body"
        "foot";
}

/* Encabezado, datos y cierre sobre el fondo azul marino */
.visit-head { grid-area: head; }

.visit-map { grid-area: map; }

.visit-body { grid-area: body; }

.visit-foot { grid-area: foot; }

.visit-head,
.visit-body {
    width: 100%;
    max-width: 560px;
    color: var(--white);
}

.visit-eyebrow {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--gold);
}

.visit-title {
    margin-top: 1rem;
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
    line-height: 1.2;
    color: var(--white);
}

.visit-list {
    display: grid;
    gap: 1.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.visit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.visit-icon {
    flex: none;
    width: 26px;
    height: 26px;
    margin-top: 2px;
}

/* Fila de Instagram: en lugar del icono se muestra el QR del perfil,
   que es un enlace al perfil (abre en una pestaña nueva). */
.visit-item-qr { align-items: center; }

.visit-qr {
    flex: none;
    display: block;
    width: 124px;
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.visit-qr:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .36);
}

.visit-qr-img {
    display: block;
    width: 100%;
    height: auto;
}

.visit-label {
    display: block;
    margin-bottom: .25rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
}

.visit-value {
    display: block;
    font-size: .97rem;
    line-height: 1.6;
    color: var(--white);
}

/* Datos de contacto enlazables (teléfono y correo) */
.visit-value a {
    color: var(--white);
    text-decoration: underline;
    text-decoration-color: rgba(201, 162, 39, .55);
    text-underline-offset: .2em;
    transition: color .25s var(--ease), text-decoration-color .25s var(--ease);
}

.visit-value a:hover {
    color: var(--gold);
    text-decoration-color: currentColor;
}

/* Horarios por modalidad de atención */
.visit-schedule {
    margin: 0;
    color: var(--white);
}

.visit-schedule dt {
    font-size: .87rem;
    font-weight: 600;
    line-height: 1.5;
}

.visit-schedule dd {
    margin: .15rem 0 0;
    font-size: .92rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .88);
}

.visit-schedule dd + dt { margin-top: .75rem; }

/* Línea divisoria dorada sutil */
.visit-rule {
    border: 0;
    height: 1px;
    margin: 2.25rem 0;
    background-color: rgba(201, 162, 39, .35);
}

.visit-text {
    font-size: .97rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, .9);
}

/* Mapa integrado sobre el fondo azul marino */
.visit-map {
    position: relative;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--navy-800);
}

.visit-map-frame {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.visit-route {
    position: absolute;
    z-index: 2;
    left: clamp(1rem, 4vw, 2rem);
    bottom: clamp(1rem, 4vw, 2rem);
    min-height: 48px;
    padding: .8em 1.5em;
    font-size: .88rem;
}

/* Escritorio: título arriba y centrado, mapa a la par de los datos y
   párrafo de cierre abajo y centrado. Así el mapa solo acompaña el alto
   de la lista de datos, sin estirarse con el encabezado ni el párrafo. */
@media (min-width: 992px) {
    .visit-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "head head"
            "map  body"
            "foot foot";
        column-gap: clamp(2.5rem, 5vw, 4.5rem);
        row-gap: 2.25rem;
        align-items: start;
    }

    .visit-head {
        max-width: 860px;
        margin-inline: auto;
        text-align: center;
    }

    .visit-map {
        align-self: stretch;
        height: auto;
        min-height: 400px;
    }

    .visit-foot .visit-rule {
        max-width: 520px;
        margin-inline: auto;
    }

    .visit-text {
        max-width: 760px;
        margin-inline: auto;
        text-align: center;
        hyphens: manual;
    }
}

/* ---------------------------------------------------------------
   11. Animaciones de aparición (scroll)
   --------------------------------------------------------------- */
.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------------------------------------
   12. Preferencias de movimiento y utilidades
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ---------------------------------------------------------------
   13. Ventanas de detalle de los servicios (modal)
   --------------------------------------------------------------- */
html.is-modal-open { overflow: hidden; }

.service-modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(.75rem, 3vw, 2rem);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility 0s linear .3s;
}

.service-modal.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity .3s var(--ease), visibility 0s linear 0s;
}

/* Mientras está cerrada no intercepta clics ni el desplazamiento */
.service-modal:not(.is-open) { pointer-events: none; }

.service-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(8, 31, 59, .64);
}

.service-modal-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(880px, 100%);
    max-height: min(88vh, 880px);
    background-color: var(--white);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: translateY(14px) scale(.99);
    transition: transform .35s var(--ease);
}

.service-modal-panel:focus { outline: none; }

.service-modal.is-open .service-modal-panel { transform: none; }

.service-modal-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem clamp(1.15rem, 4vw, 2.1rem);
    background-color: var(--ivory);
    border-bottom: 1px solid var(--line);
}

.service-modal-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    background-color: #EDF1F8;
    border: 1px solid #E0E6F1;
    border-radius: 50%;
}

.service-modal-icon img { width: 26px; height: 26px; }

.service-modal-title {
    flex: 1;
    font-size: clamp(1.1rem, 2.4vw, 1.42rem);
    line-height: 1.25;
}

.service-modal-close {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    font-family: inherit;
    font-size: 1.55rem;
    line-height: 1;
    color: var(--navy);
    background-color: transparent;
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    transition: color .3s var(--ease),
                background-color .3s var(--ease),
                border-color .3s var(--ease);
}

.service-modal-close:hover {
    color: var(--white);
    background-color: var(--navy);
    border-color: var(--navy);
}

.service-modal-body {
    padding: clamp(1.25rem, 4vw, 2.1rem);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modal-block + .modal-block { margin-top: 1.7rem; }

.modal-heading {
    font-size: 1.03rem;
    color: var(--navy);
}

.modal-note {
    margin-top: .55rem;
    font-size: .94rem;
    line-height: 1.7;
    color: var(--text-soft);
}

ul.modal-list {
    display: grid;
    gap: .55rem;
    margin-top: .8rem;
    padding-left: 1.05rem;
    list-style: none;
}

ul.modal-list li {
    position: relative;
    font-size: .94rem;
    line-height: 1.7;
    color: var(--text-soft);
}

ul.modal-list li::before {
    content: "";
    position: absolute;
    left: -1rem;
    top: .62em;
    width: 6px;
    height: 6px;
    background-color: var(--gold);
    transform: rotate(45deg);
}

ol.modal-list {
    margin-top: .8rem;
    padding-left: 1.4rem;
    list-style: decimal;
}

ol.modal-list li {
    padding-left: .15rem;
    font-size: .94rem;
    line-height: 1.7;
    color: var(--text-soft);
}

ol.modal-list li + li { margin-top: .55rem; }

ol.modal-list li::marker {
    color: var(--gold);
    font-weight: 700;
}

.modal-acc {
    display: grid;
    gap: .6rem;
    margin-top: 1rem;
}

.acc {
    background-color: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    transition: background-color .3s var(--ease), border-color .3s var(--ease);
}

.acc[open] {
    background-color: var(--white);
    border-color: rgba(201, 162, 39, .5);
}

.acc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .95rem 1.15rem;
    font-size: .93rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
}

.acc-head::-webkit-details-marker { display: none; }

.acc-head::after {
    content: "";
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg) translateY(-2px);
    transition: transform .3s var(--ease);
}

.acc[open] .acc-head::after { transform: rotate(-135deg) translateY(-2px); }

.acc-body {
    padding: 0 1.15rem 1.15rem;
    animation: modal-fade .35s var(--ease);
}

.acc-label {
    margin-top: .7rem;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--navy-600);
}

.acc-label:first-child { margin-top: 0; }

.acc-text {
    margin-top: .4rem;
    font-size: .93rem;
    line-height: 1.7;
    color: var(--text-soft);
}

.acc-label + .acc-text { margin-top: .2rem; }

.acc-list {
    display: grid;
    gap: .4rem;
    margin-top: .55rem;
    padding-left: 1.05rem;
    list-style: none;
}

.acc-list li {
    position: relative;
    font-size: .93rem;
    line-height: 1.65;
    color: var(--text-soft);
}

.acc-list li::before {
    content: "";
    position: absolute;
    left: -1rem;
    top: .6em;
    width: 6px;
    height: 6px;
    background-color: var(--gold);
    transform: rotate(45deg);
}

@keyframes modal-fade {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
}

/* Móvil: la ventana se presenta como panel inferior */
@media (max-width: 560px) {
    .service-modal { padding: 0; }

    .service-modal-panel {
        width: 100%;
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
    }

    .service-modal-head { padding: 1.05rem 1.15rem; }
}

/* ---------------------------------------------------------------
   14. Enlaces de interés (sitios útiles)
   --------------------------------------------------------------- */
.links { background-color: var(--white); }

.links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}

.links-card {
    padding: 1.7rem 1.5rem 1.5rem;
    background-color: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: transform .4s var(--ease),
                box-shadow .4s var(--ease),
                border-color .4s var(--ease);
}

.links-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(201, 162, 39, .45);
}

.links-title {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: 1.05rem;
    color: var(--navy);
}

.links-title::before {
    content: "";
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    background-color: var(--gold);
    transform: rotate(45deg);
}

.links-list { margin-top: .9rem; }

.links-list li + li { border-top: 1px solid rgba(227, 228, 236, .9); }

.links-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .9rem;
    padding: .6rem 0;
    font-size: .9rem;
    line-height: 1.55;
    color: var(--text-soft);
    text-decoration: none;
    transition: color .3s var(--ease);
}

.links-item:hover { color: var(--navy-600); }

.links-item .link-arrow {
    flex: 0 0 auto;
    transition: transform .3s var(--ease);
}

.links-item:hover .link-arrow { transform: translateX(4px); }

/* Contenido solo para lectores de pantalla */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

@media (min-width: 640px) {
    .links-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
    .links-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.4rem;
    }
}

/* ---------------------------------------------------------------
   15. Validación de documentos
   ---------------------------------------------------------------
   Franja azul marino profundo con una tarjeta que enlaza al servicio
   oficial de validación de documentos de Notarios y Conservadores.
   ----------------------------------------------------------------- */
.validation {
    padding-block: clamp(3rem, 6vw, 5rem);
    background-color: var(--navy-800);
}

.validation-panel {
    max-width: 980px;
    margin-inline: auto;
    display: grid;
    gap: 2rem;
    align-items: center;
    padding: clamp(2rem, 4.5vw, 3.25rem);
    background-image: linear-gradient(135deg, var(--navy) 0%, var(--navy-600) 100%);
    border: 1px solid rgba(201, 162, 39, .28);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.validation-emblem {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    margin-inline: auto;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .05);
    border: 1px solid rgba(201, 162, 39, .42);
}

.validation-emblem img {
    width: 42px;
    height: 42px;
}

.validation-body { text-align: center; }

.validation-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.validation-eyebrow .eyebrow-mark { background-color: var(--gold-light); }

.validation-title {
    margin-top: .85rem;
    font-size: clamp(1.6rem, 3.6vw, 2.5rem);
    color: var(--white);
}

.validation-text {
    margin-top: 1rem;
    max-width: 60ch;
    margin-inline: auto;
    font-size: 1.02rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, .84);
}

.validation-btn { margin-top: 1.9rem; }

@media (min-width: 860px) {
    .validation-panel {
        grid-template-columns: auto 1fr;
        gap: clamp(2rem, 4vw, 3.25rem);
    }

    .validation-emblem { margin-inline: 0; }
    .validation-body { text-align: left; }
    .validation-text { text-align: justify; margin-inline: 0; }
}

@media (max-width: 767px) {
    .validation-panel { padding: 1.6rem 1.35rem; }
    .validation-emblem { width: 68px; height: 68px; }
    .validation-emblem img { width: 34px; height: 34px; }
    .validation-title { font-size: 1.5rem; }
    .validation-text { font-size: .93rem; line-height: 1.7; }
    .validation-btn { margin-top: 1.5rem; }
}

/* ---------------------------------------------------------------
   16. Ajustes de móvil: tipografía, tarjetas y mapa más compactos
   --------------------------------------------------------------- */
@media (max-width: 767px) {
    /* Hero más contenido y con textos de menor tamaño */
    .hero { padding: 2.75rem 0 3rem; }
    .hero-title { font-size: 2.05rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-text { font-size: .93rem; line-height: 1.7; }
    .hero-actions { margin-top: 1.8rem; gap: .8rem; }

    /* Secciones y encabezados */
    .section { padding-block: 2.75rem; }
    .section-head { margin-bottom: 1.9rem; }
    .section-eyebrow { font-size: .7rem; letter-spacing: .22em; }
    .section-title { font-size: 1.6rem; }
    .section-lead { margin-top: .7rem; font-size: .95rem; line-height: 1.65; }

    /* Franja institucional (pilares) */
    .pillar { gap: .9rem; padding-block: .85rem; }
    .pillar-icon { width: 50px; height: 50px; }
    .pillar-icon img { width: 30px; height: 30px; }
    .pillar-title { font-size: 1rem; letter-spacing: .08em; }
    .pillar-text { font-size: .85rem; }

    /* Tarjetas de servicios */
    .services-grid { gap: .95rem; }
    .service-card { padding: 1.5rem 1.25rem 1.45rem; }
    .service-icon { width: 52px; height: 52px; margin-bottom: 1rem; }
    .service-icon img { width: 26px; height: 26px; }
    .service-title { font-size: 1.1rem; margin-bottom: .45rem; }
    .service-text { font-size: .9rem; line-height: 1.65; }
    .service-link { margin-top: 1.1rem; font-size: .72rem; }

    /* Tarjetas de enlaces de interés */
    .links-grid { gap: .85rem; }
    .links-card { padding: 1.35rem 1.15rem 1.15rem; }
    .links-title { font-size: .98rem; }
    .links-list { margin-top: .7rem; }
    .links-item { padding: .5rem 0; font-size: .85rem; }

    /* Visítanos: mapa más bajo y textos compactos */
    .visit { padding-block: 48px; }
    .visit-title { font-size: 1.45rem; }
    .visit-list { gap: 1.1rem; }
    .visit-label { font-size: .68rem; }
    .visit-value { font-size: .92rem; }
    .visit-schedule dt { font-size: .83rem; }
    .visit-schedule dd { font-size: .88rem; }
    .visit-rule { margin: 1.6rem 0; }
    .visit-text { font-size: .92rem; line-height: 1.7; }
    .visit-map { height: 240px; }
    .visit-qr { width: 106px; }

    /* Subsitio de Transparencia */
    .page-hero { padding: 2.75rem 0; }
    .page-hero-title { font-size: 1.75rem; }
    .page-hero-text { font-size: .93rem; line-height: 1.7; }
    .tabs { gap: .35rem; padding: .35rem; }
    .tab { flex: 1 1 calc(50% - .35rem); min-width: 0; min-height: 44px; font-size: .72rem; }
    .tab-panel { padding: 1.35rem 1.15rem; }
    .tab-panel-title { font-size: 1.35rem; }
    .tab-panel-intro { font-size: .95rem; line-height: 1.7; }
    .pending-notice { padding: 1.05rem 1.1rem; }
    .pending-text { font-size: .9rem; }
    .integration-host iframe { min-height: 380px; }

    /* Pie de página */
    .footer-note { font-size: .9rem; line-height: 1.65; }
    .footer-list a,
    .footer-list-plain li { font-size: .9rem; }
}

/* ==================================================================
   17. Botón flotante de WhatsApp
   ================================================================== */

.whatsapp-fab {
    position: fixed;
    right: clamp(1rem, 3vw, 1.75rem);
    bottom: clamp(1rem, 3vw, 1.75rem);
    z-index: 300;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background-color: #25D366;
    box-shadow: 0 10px 26px rgba(11, 45, 91, .28);
    transition: transform .3s var(--ease),
                background-color .3s var(--ease),
                box-shadow .3s var(--ease);
}

.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
    background-color: #1EBE57;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(11, 45, 91, .34);
}

.whatsapp-fab-icon {
    width: 30px;
    height: 30px;
}

@media (max-width: 767px) {
    .whatsapp-fab {
        width: 52px;
        height: 52px;
        right: 1rem;
        bottom: 1rem;
    }

    .whatsapp-fab-icon { width: 27px; height: 27px; }
}

@media print {
    .site-header,
    .hero-actions,
    .nav-toggle,
    .whatsapp-fab,
    .tabs { display: none !important; }
}
