/* --- tokens.css --- */
/* ==============================================================================
   COLEGIO DE ABOGADOS DE PUERTO MONTT A.G. — SISTEMA DE DISEÑO CANÓNICO
   Registro: Corporativo institucional. Monocromo peltre sobre papel hueso.
   Tipografía: Plus Jakarta Sans oficial.
   ============================================================================== */

@font-face {
    font-family: 'Jakarta';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/jakarta-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Jakarta';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/jakarta-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Jakarta';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/jakarta-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Jakarta';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/jakarta-700.woff2') format('woff2');
}

:root {
    /* ── IDENTIDAD PELTRE (Gris del sello oficial) ── */
    --pew:        #6c6c78;   /* Peltre oficial */
    --pew-700:    #54545e;   /* Hover oscuro */
    --pew-400:    #9a9aa4;   /* Peltre claro para fondos oscuros */
    --pew-300:    #d5d5dd;   /* Bordes de chips y etiquetas */
    --pew-200:    #c7c7d0;   /* Reglas y bordes de acento */
    --pew-100:    #efeff3;   /* Separadores muy suaves */

    /* ── ACENTOS DORADOS INSTITUCIONALES ── */
    --gold:       #b08d2f;   /* Dorado institucional para bordes de resumen */
    --gold-dark:  #8a6508;   /* Dorado oscuro de alto contraste para titulares */

    /* ── TINTA ── */
    --ink:        #101219;   /* Negro frío: titulares y botones */
    --ink-2:      #3d414b;   /* Cuerpo de texto principal */
    --ink-3:      #6c6c78;   /* Texto secundario */
    --ink-4:      #6f7280;   /* Metadatos y fechas (contraste AA 4.78:1) */

    /* ── SUPERFICIES (HUESO / GREIGE CÁLIDO) ── */
    --page:       #f3f1ec;   /* Fondo general hueso */
    --band:       #ffffff;   /* Franjas blancas alternas */
    --card:       #ffffff;   /* Superficies de tarjetas */
    --bg-alt:     #eceae3;   /* Superficie greige alternativa para tarjetas */
    --line:       #e6e3db;   /* Bordes principales */
    --line-2:     #efece5;   /* Bordes sutiles interiores */

    /* ── ESTADOS ── */
    --success:    #1f6b3b;
    --success-bg: #eef4ef;

    /* ── ESPACIADO Y LAYOUT ── */
    --wrap:       1240px;
    --wrap-nar:   780px;
    --gutter:     48px;
}

@media (max-width: 980px) {
    :root {
        --gutter: 24px;
    }
}


/* --- base.css --- */
/* ==============================================================================
   BASE Y RESET TIPOGRÁFICO
   ============================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Jakarta', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--page);
    color: var(--ink-2);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ── TITULARES ── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Jakarta', system-ui, sans-serif;
    color: var(--ink);
    line-height: 1.15;
    font-weight: 500;
}
h1 {
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 400;
    letter-spacing: -0.027em;
    line-height: 1.08;
}
h1 b, h1 strong {
    font-weight: 600;
}
h2 {
    font-size: clamp(24px, 2.5vw, 30px);
    font-weight: 500;
    letter-spacing: -0.025em;
}
h3 {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.015em;
}
h4 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

p {
    margin-bottom: 1rem;
}
p:last-child {
    margin-bottom: 0;
}

strong, b {
    font-weight: 600;
    color: var(--ink);
}

/* ── OVERLINE Y ETIQUETAS INSTITUCIONALES ── */
.lbl {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pew);
    display: inline-block;
}
.lbl--rule {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.lbl--rule::before {
    content: '';
    width: 32px;
    height: 2px;
    background: var(--pew);
}

.skip-link {
    position: absolute;
    top: -9999px;
    left: 0;
    background: var(--ink);
    color: #fff;
    padding: 8px 16px;
    z-index: 999;
    font-size: 13px;
    font-weight: 600;
}
.skip-link:focus {
    top: 0;
}


/* --- layout.css --- */
/* ==============================================================================
   LAYOUT Y ESTRUCTURA CANÓNICA
   ============================================================================== */

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.wrap-nar {
    max-width: var(--wrap-nar);
}

/* ── BARRA DE UTILIDAD ── */
.util {
    background: var(--band);
    border-bottom: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--ink-3);
}
.util .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 42px;
}
.util a {
    color: var(--ink-2);
    font-weight: 600;
}
.util a:hover {
    color: var(--pew);
}

/* ── CABECERA PRINCIPAL ── */
.hd {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--band);
    border-bottom: 1px solid var(--line);
}
.hd .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
    gap: 36px;
}

/* Sello institucional + tipografía */
.mark {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.mark img {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Navegación */
#main-nav ul {
    display: flex;
    list-style: none;
    gap: clamp(16px, 2.2vw, 30px);
    align-items: center;
}
#main-nav a {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink-2);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.18s ease, border-color 0.18s ease;
    white-space: nowrap;
}
#main-nav a:hover {
    color: var(--ink);
    border-bottom-color: var(--pew);
}
#main-nav a.on, #main-nav a[aria-current="page"] {
    color: var(--ink);
    font-weight: 600;
    border-bottom-color: var(--pew);
}

/* Botón de acción principal en cabecera */
.act {
    background: var(--ink);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    padding: 12px 21px;
    border: 1px solid var(--ink);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.18s ease;
}
.act:hover {
    background: var(--pew-700);
    border-color: var(--pew-700);
}

/* Toggle móvil */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    padding: 6px 10px;
    cursor: pointer;
    color: var(--ink);
}
.menu-toggle svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* ── MIGAS DE PAN (BREADCRUMBS) ── */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-4);
    padding-block: 16px;
}
.breadcrumbs a {
    color: var(--ink-3);
}
.breadcrumbs a:hover {
    color: var(--ink);
}
.breadcrumbs .sep {
    color: var(--pew-200);
}
.breadcrumbs [aria-current="page"] {
    color: var(--ink);
    font-weight: 600;
}

/* ── SECCIONES ── */
.sec {
    padding-block: 80px;
}
.sec.on-band {
    background: var(--band);
    border-block: 1px solid var(--line);
}
.sec-hd {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.sec-hd .lbl {
    margin-bottom: 10px;
    display: block;
}
.sec-hd h1, .sec-hd h2 {
    font-size: clamp(26px, 2.8vw, 32px);
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.025em;
}
.sec-lead {
    margin-top: 8px;
    font-size: 16px;
    color: var(--ink-3);
    max-width: 54ch;
    line-height: 1.6;
}

.more {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--pew);
    padding-bottom: 3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.18s ease;
}
.more:hover {
    color: var(--pew);
}

/* ── PIE INSTITUCIONAL ── */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.62);
    padding-block: 76px 36px;
    font-size: 13.5px;
    margin-top: auto;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-mark {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.footer-mark img {
    height: 58px;
    width: auto;
    display: block;
    object-fit: contain;
}
.footer-col p {
    font-size: 13.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
}
.footer-col h4 {
    color: var(--pew-400);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 16px;
}
.footer-col ul {
    list-style: none;
}
.footer-col li {
    margin-bottom: 10px;
}
.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.18s ease;
}
.footer-col a:hover {
    color: #fff;
}
.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
}

/* ── RESPONSIVE ── */
@media (max-width: 1040px) {
    .util {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    #main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--band);
        border-bottom: 2px solid var(--pew);
        box-shadow: 0 12px 30px rgba(16, 18, 25, 0.15);
        padding: 12px var(--gutter) 20px;
        z-index: 100;
    }
    #main-nav.open {
        display: block;
    }
    #main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    #main-nav a {
        display: block;
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid var(--line-2);
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 640px) {
    .hd .wrap {
        height: 68px;
    }
    .mark span i {
        display: none;
    }
    .act {
        display: none;
    }
    .sec {
        padding-block: 54px;
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
    }
}


/* --- components.css --- */
/* ==============================================================================
   COMPONENTES DE INTERFAZ CANÓNICOS
   ============================================================================== */

/* ── BOTONES ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    text-decoration: none;
}
.btn--action {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.btn--action:hover {
    background: var(--pew-700);
    border-color: var(--pew-700);
    color: #fff;
}
.btn--outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--pew-200);
}
.btn--outline:hover {
    border-color: var(--ink);
}
.btn--outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}
.btn--outline-light:hover {
    background: #fff;
    color: var(--pew);
    border-color: #fff;
}
.btn--block {
    width: 100%;
}

/* ── HERO DE PORTADA ── */
.hero .wrap {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 70px;
    padding-block: 86px 74px;
    align-items: start;
}
.hero .lbl {
    margin-bottom: 26px;
}
.hero h1 {
    font-size: clamp(38px, 4.3vw, 56px);
    line-height: 1.07;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.027em;
    max-width: 15ch;
}
.hero h1 b {
    font-weight: 600;
}
.hero p.sub {
    margin-top: 26px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink-3);
    max-width: 46ch;
}

/* Cifras institucionales */
.figs {
    margin-top: 42px;
    display: flex;
    gap: 42px;
    border-top: 1px solid var(--pew-200);
    padding-top: 26px;
    flex-wrap: wrap;
}
.figs div span {
    display: block;
    font-size: 31px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.022em;
    line-height: 1;
}
.figs div em {
    font-style: normal;
    font-size: 12px;
    color: var(--pew);
    display: block;
    margin-top: 7px;
}

/* ── BUSCADOR DEL PADRÓN ── */
.finder {
    background: var(--card);
    border: 1px solid var(--line);
    padding: 32px;
}
.finder h2 {
    font-size: 19px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.015em;
    margin-bottom: 6px;
}
.finder p {
    font-size: 13.5px;
    color: var(--ink-3);
    margin-bottom: 20px;
}
.finder .f {
    display: flex;
    border: 1px solid var(--pew-200);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.finder .f:focus-within {
    border-color: var(--ink);
    box-shadow: 0 0 0 2px rgba(16, 18, 25, 0.15);
}
.finder input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 15px 16px;
    font: inherit;
    font-size: 14px;
    color: var(--ink);
    background: transparent;
}
.finder input:focus-visible {
    outline: 2px solid var(--pew-700);
    outline-offset: -2px;
}
.finder input::placeholder {
    color: var(--ink-4);
}
.finder button {
    background: var(--ink);
    color: #fff;
    border: 0;
    padding: 0 26px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease;
}
.finder button:hover {
    background: var(--pew-700);
}
.finder .chips {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.finder .chips a {
    font-size: 12px;
    border: 1px solid var(--line);
    padding: 6px 12px;
    color: var(--ink-2);
    transition: all 0.18s ease;
}
.finder .chips a:hover {
    border-color: var(--pew);
    color: var(--pew);
}
.finder .note {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line-2);
    font-size: 12px;
    color: var(--ink-4);
    display: flex;
    align-items: center;
    gap: 8px;
}
.finder .note i {
    width: 6px;
    height: 6px;
    background: var(--pew);
    border-radius: 50%;
    flex: none;
}

/* ── BANDA PELTRE INSTITUCIONAL ── */
.pewband {
    background: var(--pew);
    color: #fff;
}
.pewband .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    padding-block: 26px;
    flex-wrap: wrap;
}
.pewband p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.92);
    max-width: 62ch;
    margin: 0;
}
.pewband p b {
    font-weight: 600;
    color: #fff;
}
.pewband a {
    flex: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    padding: 11px 20px;
    transition: background 0.18s ease, color 0.18s ease;
}
.pewband a:hover {
    background: #fff;
    color: var(--pew);
}

/* ── BANDA FOTOGRÁFICA Y DE VIDEO CON CITA ── */
.strip {
    position: relative;
    height: 380px;
    overflow: hidden;
    background: #181a22;
}
.strip img,
.strip video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0.42;
    filter: grayscale(0.85) brightness(0.92) contrast(1.12);
    pointer-events: none;
}
.strip .over {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(0deg, rgba(20, 22, 28, 0.95) 0%, rgba(20, 22, 28, 0.42) 65%, rgba(20, 22, 28, 0.25) 100%);
    z-index: 2;
}
.strip .over .wrap {
    padding-bottom: 40px;
    width: 100%;
}
.strip q {
    display: block;
    max-width: 58ch;
    font-size: clamp(19px, 2.1vw, 26px);
    line-height: 1.42;
    font-weight: 400;
    color: #fff;
    letter-spacing: -0.016em;
    quotes: none;
}
.strip cite {
    display: block;
    margin-top: 15px;
    font-size: 11px;
    font-style: normal;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: var(--pew-400);
}

@media (prefers-reduced-motion: reduce) {
    .strip video {
        display: none;
    }
}

/* ── FILAS DE TRÁMITES Y DOCUMENTOS ── */
.rows {
    border-top: 1px solid var(--pew-200);
}
.row {
    display: grid;
    grid-template-columns: 52px 1fr 1.15fr 116px;
    gap: 28px;
    align-items: center;
    padding: 27px 8px;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid transparent;
    transition: background 0.18s ease, padding 0.18s ease, border-color 0.18s ease;
}
.row:hover {
    background: var(--band);
    padding-inline: 18px 8px;
    border-left-color: var(--pew);
}
.row .num {
    font-size: 12px;
    font-weight: 600;
    color: var(--pew);
    letter-spacing: 0.06em;
}
.row h3 {
    font-size: 19px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.015em;
    margin: 0;
}
.row p {
    font-size: 13.5px;
    color: var(--ink-3);
    line-height: 1.6;
    margin: 0;
}
.row .go {
    justify-self: end;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-2);
    display: flex;
    align-items: center;
    gap: 8px;
}
.row:hover .go {
    color: var(--ink);
}
.row .go svg {
    transition: transform 0.18s ease;
}
.row:hover .go svg {
    transform: translateX(4px);
}

/* ── ARTÍCULOS Y CONVENIOS (GRILLA CONTINUA 1PX) ── */
.arts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.art {
    padding: 32px 30px 30px;
    background: var(--card);
    transition: background 0.18s ease;
    display: flex;
    flex-direction: column;
}
.art:hover {
    background: var(--page);
}
.art .k {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--pew);
    margin-bottom: 14px;
}
.art h3 {
    font-size: 19.5px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.28;
    letter-spacing: -0.015em;
    margin-bottom: 12px;
}
.art p {
    font-size: 13.5px;
    color: var(--ink-3);
    line-height: 1.65;
    margin-bottom: 22px;
    flex-grow: 1;
}
.art .m {
    font-size: 12px;
    color: var(--ink-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line-2);
    padding-top: 14px;
    margin-top: auto;
}
.art .m b {
    color: var(--ink);
    font-weight: 600;
}

/* ── FICHAS DE COLEGIADOS (/socios/) ── */
.members {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.member,
.member-card {
    background: var(--card);
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: background 0.18s ease;
}
.member:hover,
.member-card:hover {
    background: #ffffff;
}

/* Jerarquía tipográfica de nombres de asociados */
.member-card h3,
.member h3 {
    font-size: 16.5px;
    line-height: 1.35;
    margin-bottom: 6px;
}
.m-surnames {
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.01em;
}
.m-sep {
    color: var(--pew);
    font-weight: 500;
    margin-right: 4px;
}
.m-names {
    color: var(--ink-3);
    font-weight: 400;
}

.member .m-comuna,
.member-card .m-comuna {
    font-size: 11.5px;
    color: var(--pew);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 14px;
}
.member .m-tags,
.member-card .m-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 18px;
}
.member .m-tags span,
.member-card .m-tags span {
    font-size: 11px;
    border: 1px solid var(--line);
    padding: 3px 8px;
    color: var(--ink-2);
    background: var(--page);
}
.member-details {
    display: none;
    padding-top: 12px;
    margin-bottom: 14px;
    border-top: 1px dashed var(--line-2);
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink-2);
}
.member-details.open {
    display: block;
}
.member-details p {
    margin: 4px 0;
}
.member-details a {
    color: var(--ink);
}
.member .m-foot,
.member-card .m-foot {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line-2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--ink-4);
}
.btn-toggle-more,
.member .m-reveal {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    border-bottom: 1px solid var(--pew);
    padding-bottom: 1px;
    transition: color 0.18s ease;
}
.btn-toggle-more:hover,
.member .m-reveal:hover {
    color: var(--pew-700);
}
.btn-member-web {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    margin-bottom: 12px;
    padding: 5px 11px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ink);
    background: var(--band, #ebe8df);
    border: 1px solid var(--line, #d8d4c7);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.15s ease;
}
.btn-member-web:hover {
    background: var(--ink);
    color: #ffffff;
    border-color: var(--ink);
}

/* ── DISTINTIVOS (BADGES) ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 9px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.badge--pew {
    background: var(--page);
    color: var(--pew);
    border: 1px solid var(--pew-200);
}
.badge--vigente {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid color-mix(in srgb, var(--success) 22%, transparent);
}

/* ── TABLAS ── */
.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--line);
    background: var(--card);
}
.table-clean {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
}
.table-clean th {
    background: var(--page);
    color: var(--ink);
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid var(--pew-200);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.table-clean td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line-2);
    color: var(--ink-2);
}
.table-clean tbody tr:last-child td {
    border-bottom: 0;
}
.table-clean tbody tr:hover {
    background: var(--page);
}

/* ── ÍNDICE LATERAL Y PROSA ── */
.sidebar-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: flex-start;
}
.sticky-toc {
    position: sticky;
    top: 98px;
    background: var(--card);
    border: 1px solid var(--line);
    padding: 24px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
}
.sticky-toc h3 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--pew);
    font-weight: 600;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.sticky-toc ul {
    list-style: none;
}
.sticky-toc a {
    display: block;
    font-size: 13.5px;
    color: var(--ink-3);
    padding: 6px 8px;
    line-height: 1.4;
    transition: all 0.18s ease;
}
.sticky-toc a:hover {
    background: var(--page);
    color: var(--ink);
}

.prose {
    max-width: 68ch;
}
.prose > * + * {
    margin-top: 1.25rem;
}
.prose h2 {
    font-size: 24px;
    margin-top: 2.2rem;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.prose h3 {
    font-size: 19px;
    margin-top: 1.8rem;
}
.prose p {
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--ink-2);
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}
.prose ul, .prose ol {
    padding-left: 22px;
}
.prose li {
    line-height: 1.75;
    color: var(--ink-2);
    margin-bottom: 6px;
}
.prose a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--pew);
    text-underline-offset: 3px;
}
.prose a:hover {
    color: var(--pew);
}

/* ── FAQ ── */
.faq {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.faq-item {
    background: var(--card);
}
.faq-summary {
    padding: 18px 22px;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.012em;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.faq-summary::-webkit-details-marker {
    display: none;
}
.faq-summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: var(--pew);
    flex: none;
    line-height: 1;
}
.faq-item[open] .faq-summary::after {
    content: '−';
}
.faq-content {
    padding: 0 22px 20px;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--ink-2);
}

/* ── CIERRE INSTITUCIONAL ── */
.close {
    background: var(--ink);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.close .mk {
    position: absolute;
    right: -90px;
    top: 50%;
    transform: translateY(-50%);
    height: 420px;
    opacity: 0.05;
    filter: grayscale(1) brightness(3);
    pointer-events: none;
}
.close .wrap {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    padding-block: 76px;
    align-items: center;
    position: relative;
}
.close h2 {
    font-size: 31px;
    font-weight: 400;
    color: #fff;
    letter-spacing: -0.026em;
    line-height: 1.2;
}
.close h2 b {
    font-weight: 600;
}
.close p {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 15px;
    max-width: 48ch;
}
.close .box {
    border: 1px solid rgba(255, 255, 255, 0.17);
    padding: 28px;
    background: rgba(255, 255, 255, 0.02);
}
.close .box .lbl {
    color: var(--pew-400);
    margin-bottom: 16px;
    display: block;
}
.close .box dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 18px;
    font-size: 13.5px;
}
.close .box dt {
    color: var(--pew-400);
}
.close .box dd {
    color: #fff;
}
.close .box a.cta {
    margin-top: 22px;
    display: block;
    text-align: center;
    background: #fff;
    color: var(--ink);
    padding: 13px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.18s ease;
}
.close .box a.cta:hover {
    background: var(--pew-200);
}

/* ── RESPONSIVE COMPONENTES ── */
@media (max-width: 980px) {
    .hero .wrap {
        grid-template-columns: 1fr;
        gap: 44px;
        padding-block: 54px 46px;
    }
    .arts {
        grid-template-columns: 1fr;
    }
    .close .wrap {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-block: 56px;
    }
    .close .mk {
        display: none;
    }
    .sidebar-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .sticky-toc {
        position: static;
        max-height: none;
    }
    .pewband .wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
    .strip {
        height: 230px;
    }
    .row {
        grid-template-columns: 28px 1fr 24px;
        gap: 12px;
        align-items: center;
        padding-block: 20px;
    }
    .row h3 {
        font-size: 16.5px;
        line-height: 1.35;
    }
    .row p {
        display: none;
    }
    .row .go {
        font-size: 0;
        gap: 0;
    }
    .row .go span {
        display: none;
    }
    .row .go svg {
        width: 16px;
        height: 16px;
        display: block;
    }
    .figs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 32px;
        padding-top: 20px;
    }
}

@media (max-width: 640px) {
    .sec {
        padding-block: 42px;
    }
    .sec-hd {
        margin-bottom: 24px;
        gap: 12px;
    }
    .sec-hd h1, .sec-hd h2 {
        font-size: 24px;
        line-height: 1.2;
    }
    .sec-lead {
        font-size: 14.5px;
        line-height: 1.55;
    }
    .hero h1 {
        font-size: 32px;
        line-height: 1.15;
    }
    .hero p.sub {
        font-size: 15px;
        margin-top: 18px;
    }
    .art {
        padding: 24px 18px;
    }
    .art h3 {
        font-size: 17.5px;
    }
    .art .m {
        flex-wrap: wrap;
        gap: 8px;
    }
    .finder {
        padding: 20px 16px;
    }
    .finder .f button {
        padding: 0 16px;
        font-size: 13px;
    }
    .members {
        grid-template-columns: 1fr;
    }
    .member, .member-card {
        padding: 20px 16px;
    }
    .m-foot {
        flex-wrap: wrap;
        gap: 8px;
    }
    .footer-top {
        gap: 28px;
        padding-bottom: 32px;
    }
    .footer-col h4 {
        margin-bottom: 10px;
    }
    .table-wrapper {
        margin-inline: -12px;
        border-inline: 0;
        -webkit-overflow-scrolling: touch;
    }
    h1, h2, h3, h4, p, span, a {
        overflow-wrap: break-word;
        word-break: break-word;
    }
}
