:root {
    --ink: #1b2430;
    --ink-soft: #3a4452;
    --muted: #5c6570;
    --paper: #ffffff;
    --tint: #f2f4f7;
    --tint-warm: #eef2f6;
    --line: #d7dde5;
    --line-soft: #e6ebf1;
    --brand: #4172c7;
    --brand-dark: #2f5aaa;
    --status-bg: #e4f0fa;
    --status-line: #c5d9ec;
    --focus: #1b2430;
    --radius: 4px;
    --wrap: 1120px;
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 40px;
    --space-5: 64px;
    --space-6: 88px;
    --font-sans: "Montserrat", "Segoe UI", Arial, Helvetica, sans-serif;
    --font-serif: "Montserrat", "Segoe UI", Arial, Helvetica, sans-serif;
    --shadow-soft: 0 1px 0 rgba(27, 36, 48, 0.04);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    min-height: 100vh;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1.55;
}

b,
strong {
    color: inherit;
    font-weight: 700;
}

a[href^="mailto:"] {
    color: #4172c7;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

a[href^="mailto:"]:hover,
a[href^="mailto:"]:focus-visible {
    color: #2f5aaa;
}

:focus-visible {
    outline: 2px solid #1b2430;
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -40px;
    z-index: 100;
    background: #1b2430;
    color: #fff;
    padding: 8px 12px;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

.site-header {
    position: relative;
    z-index: 80;
    background: #fff;
    font-family: "Montserrat", "Segoe UI", Arial, Helvetica, sans-serif;
}

.utility-bar {
    background: #f3f3f3;
    color: #6a6a6a;
    font-size: 13px;
}

.utility-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 28px 0 22px;
    min-height: 36px;
}

.social,
.utility-nav > ul {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.social {
    gap: 14px;
}

.social a,
.utility-nav a,
.utility-nav button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: #6a6a6a;
    font: inherit;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.social a {
    color: #4c9adf;
}

.social svg,
.utility-home svg {
    display: block;
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.utility-home {
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 12px;
}

.utility-nav .has-sub {
    position: relative;
}

.utility-nav .submenu {
    top: 100%;
    right: 0;
    left: auto;
    min-width: 160px;
}

.utility-nav a:hover,
.utility-nav button:hover,
.utility-nav a:focus-visible,
.utility-nav button:focus-visible {
    color: #222;
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    height: 1px;
    background: #e8e8e8;
    pointer-events: none;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 36px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 8px 28px 8px 18px;
}

.logo {
    display: flex;
    flex: 0 0 auto;
    line-height: 0;
}

.logo img {
    display: block;
    width: 148px;
    height: auto;
}

.main-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.menu,
.submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.menu-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 0;
    border: 0;
    background: transparent;
    color: #222;
    font: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

button.menu-link {
    text-align: left;
}

.menu-link.is-static {
    cursor: default;
}

.chevron {
    flex: 0 0 auto;
    width: 10px;
    height: 7px;
    color: #2a2a2a;
}

.chevron-right {
    width: 7px;
    height: 10px;
    margin-left: auto;
}

.has-sub {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 90;
    min-width: 280px;
    max-width: 360px;
    padding: 6px 0;
    background: #fff;
    border: 1px solid #e6e6e6;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.submenu .submenu {
    top: -7px;
    left: calc(100% - 8px);
}

.menu > li:nth-child(n+5) .submenu .submenu {
    left: auto;
    right: calc(100% - 8px);
}

.has-sub:hover > .submenu,
.has-sub:focus-within > .submenu,
.has-sub.is-open > .submenu {
    display: block;
}

.submenu .menu-link {
    display: flex;
    width: 100%;
    padding: 9px 16px;
    font-size: 14px;
    white-space: normal;
}

.submenu .menu-link:hover,
.submenu .menu-link:focus-visible {
    background: #f4f6f8;
    color: #4c9adf;
    outline: none;
}

.menu > li > .menu-link:hover,
.menu > li > .menu-link:focus-visible {
    color: #4c9adf;
    outline: none;
}

.utility-nav .menu-link {
    padding: 8px 0;
    color: #6a6a6a;
    font-size: 13px;
    font-weight: 400;
}

.utility-nav .menu-link:hover,
.utility-nav .menu-link:focus-visible {
    color: #222;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #222;
}

main {
    min-height: 50vh;
}

@media (max-width: 1180px) {
    .header-inner {
        gap: 18px;
        padding-right: 16px;
    }

    .logo img {
        width: 120px;
    }

    .menu-link {
        font-size: 13.5px;
        gap: 5px;
    }
}

@media (max-width: 768px) {
    .utility-inner {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 6px 16px 2px;
    }

    .utility-nav > ul {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0 16px;
    }

    .utility-nav .submenu {
        position: static;
        min-width: 0;
        border: 0;
        box-shadow: none;
        padding: 0 0 6px 12px;
    }
}

@media (max-width: 1040px) {
    .menu-toggle {
        display: inline-block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 40;
        max-height: calc(100vh - 88px);
        overflow: auto;
        background: #fff;
        border-top: 1px solid #e8e8e8;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    }

    .site-header {
        position: relative;
    }

    .main-nav.is-open {
        display: block;
    }

    .menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0 16px;
    }

    .menu > li > .menu-link {
        width: 100%;
        padding: 12px 18px;
        font-size: 16px;
    }

    .has-sub:hover > .submenu,
    .has-sub:focus-within > .submenu {
        display: none;
    }

    .has-sub.is-open > .submenu {
        display: block;
    }

    .submenu,
    .submenu .submenu,
    .menu > li:nth-child(n+5) .submenu .submenu {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        min-width: 0;
        max-width: none;
        border: 0;
        box-shadow: none;
        padding: 0 0 4px 16px;
    }
}

.dialogos-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--ink);
    color: #f5f7fa;
    font-family: var(--font-sans);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dialogos-bar :focus-visible {
    outline-color: #f5f7fa;
}

.dialogos-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 16px 40px;
}

.dialogos-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.dialogos-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: inherit;
    text-decoration: none;
    flex: 0 0 auto;
}

.dialogos-name {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #fff;
}

.dialogos-unit {
    font-size: 14px;
    color: rgba(245, 247, 250, 0.72);
}

.dialogos-nav ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dialogos-nav a {
    display: inline-block;
    padding: 7px 9px;
    color: rgba(245, 247, 250, 0.88);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border-radius: var(--radius);
}

.dialogos-nav a:hover,
.dialogos-nav a:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.dialogos-nav a.is-current,
.dialogos-nav a[aria-current="page"] {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.dialogos-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 0;
    border: 1px solid rgba(245, 247, 250, 0.35);
    border-radius: var(--radius);
    background: transparent;
    cursor: pointer;
    flex: 0 0 auto;
}

.dialogos-toggle span:not(.sr-only) {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #f5f7fa;
}

.page {
    background: var(--paper);
    color: var(--ink);
}

.status-wrap {
    position: sticky;
    top: 68px;
    z-index: 55;
    background: var(--status-bg);
    border-bottom: 1px solid var(--status-line);
}

@media (max-width: 768px) {
    .status-wrap {
        top: 60px;
    }
}

.status-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 32px;
    margin: 0;
    padding: 12px 0;
    background: transparent;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.4;
}

.status-bar .status-estado {
    flex: 1 1 280px;
    color: var(--ink);
    font-weight: 600;
}

.status-bar .status-actualizacion {
    color: var(--muted);
    font-weight: 400;
    font-size: 14px;
}

.status-bar strong {
    color: var(--ink);
    font-weight: 700;
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 40px;
}

.band {
    scroll-margin-top: 88px;
    padding: var(--space-6) 0;
}

.seccion-acciones {
    margin-top: var(--space-4);
}

.band-white {
    background: var(--paper);
}

.band-tint {
    background: var(--tint);
}

.hero {
    padding: 0;
}

.band.band-white:has(.hero) {
    padding-top: 48px;
    padding-bottom: 56px;
}

.page h1,
.band h1,
.hero h1,
.compromisos-page h1,
.documentos-page h1,
.respuesta-page h1,
.family-page h1,
.cronologia-page h1 {
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--ink);
}

.page h2,
.band h2,
.block h2,
.family-banner h2,
.section-subtitle,
.respuesta-page h2 {
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.page h3,
.page h4,
.band h3,
.band h4,
.respuesta-page h3,
.family-card h2,
.card h3,
.documento-fila h3,
.channel-card h3,
.channel-card h4,
.plazo-resumen h3,
.plazo-bloque h3,
.faq summary {
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--brand);
}

.documento-titulo-liga {
    color: var(--brand);
    text-decoration: none;
}

.documento-titulo-liga:hover,
.documento-titulo-liga:focus-visible {
    color: var(--brand-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero h1 {
    max-width: 16ch;
    margin: 0;
    font-size: clamp(36px, 5vw, 52px);
    line-height: 1.08;
}

.hero-lead {
    max-width: 40rem;
    margin: 14px 0 0;
    color: var(--ink-soft);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
}

.hero p {
    max-width: none;
    margin: 22px 0 0;
    color: var(--ink-soft);
    font-size: 18px;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.acceso-rapido {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 36px;
}

.acceso-rapido a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.acceso-rapido a::after {
    content: "→";
    color: var(--brand);
    font-weight: 700;
}

.acceso-rapido a:hover,
.acceso-rapido a:focus-visible {
    border-color: var(--brand);
    background: #f7fafc;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.btn-primary {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: #0e1218;
    border-color: #0e1218;
}

.btn-secondary {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--ink);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: var(--tint);
}

.block {
    padding-top: 0;
}

.block h2 {
    margin: 0 0 28px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    font-size: clamp(28px, 3.4vw, 36px);
    line-height: 1.15;
}

.lead {
    max-width: none;
    margin: 0;
    color: var(--ink-soft);
    font-size: 18px;
    line-height: 1.55;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 100%;
    padding: 22px 22px 20px;
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    box-shadow: none;
}

.card-single {
    max-width: none;
}

.kicker {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.card h3 {
    margin: 10px 0 0;
    font-size: 20px;
    line-height: 1.3;
    color: var(--ink);
}

.card p:not(.kicker) {
    margin: 12px 0 0;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.55;
}

.card a {
    margin-top: auto;
    padding-top: 18px;
    color: var(--brand);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.card a:hover,
.card a:focus-visible {
    color: var(--brand-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.card a[href^="mailto:"],
.channel-card a[href^="mailto:"] {
    color: var(--brand);
}

.card a[href^="mailto:"]:hover,
.card a[href^="mailto:"]:focus-visible,
.channel-card a[href^="mailto:"]:hover,
.channel-card a[href^="mailto:"]:focus-visible {
    color: var(--brand-dark);
}

.channel-list {
    display: grid;
    gap: 0;
    margin-top: 8px;
    border-top: 1px solid var(--line);
}

.channel-item {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 12px 28px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line-soft);
}

.channel-item h3,
.channel-item h4 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
    color: var(--ink);
}

.channel-item .channel-meta {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.channel-item .channel-contact {
    display: grid;
    gap: 4px;
    align-content: start;
}

.channel-item a {
    margin: 0;
    padding: 0;
    color: var(--brand);
    font-size: 16px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-word;
}

.channel-note {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.channel-card h4 {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
}

.channel-grid {
    margin-top: 22px;
}

.section-subtitle {
    margin: 48px 0 8px;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
}

.channel-card h3 {
    margin-top: 0;
    font-size: 22px;
}

.channel-card p {
    margin-top: 8px;
    font-size: 16px;
}

.channel-card a {
    margin-top: 10px;
    padding-top: 0;
    font-size: 16px;
    font-weight: 600;
    word-break: break-word;
}

.faq {
    background: transparent;
    border: 0;
    border-top: 1px solid var(--line);
}

.faq details + details {
    border-top: 1px solid var(--line-soft);
}

.faq summary {
    min-height: 44px;
    padding: 18px 0 10px;
    font-size: 18px;
    line-height: 1.4;
    color: var(--ink);
    cursor: pointer;
}

.faq details p {
    margin: 0;
    padding: 0 0 18px;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.6;
}

.faq details p a {
    color: var(--ink);
    font-weight: 600;
    text-underline-offset: 3px;
}

.faq details p a[href^="mailto:"] {
    color: var(--brand);
}

.leyenda-estados {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.estado {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.estado-pendiente,
.estado-proceso {
    background: #d4f5f0;
    color: #0b7a72;
}

.estado-cumplido {
    background: #d9ebf7;
    color: #1b2430;
}

.plazo-resumen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.plazo-resumen article {
    padding: 18px 18px 20px;
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-top: 3px solid var(--ink);
    border-radius: var(--radius);
}

.plazo-resumen h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.3;
    color: var(--ink);
}

.plazo-resumen .plazo-alcance {
    margin: 6px 0 0;
    color: #5c6570;
    font-size: 14px;
    line-height: 1.4;
}

.plazo-resumen p {
    margin: 6px 0 0;
    color: #3a4452;
    font-size: 15px;
    line-height: 1.45;
}

.plazo-resumen .plazo-conteo {
    margin-top: 14px;
    color: #1b2430;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.plazo-resumen .plazo-detalle {
    margin-top: 6px;
    color: #5c6570;
    font-size: 14px;
}

.plazo-resumen .plazo-fecha {
    margin-top: 10px;
    color: #5c6570;
    font-size: 13px;
}

.plazo-bloque {
    margin-top: 36px;
}

.plazo-bloque h3 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.3;
}

.plazo-bloque h3 span {
    margin-left: 8px;
    color: #5c6570;
    font-size: 15px;
    font-weight: 400;
}

.compromiso-tabla {
    overflow-x: auto;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.compromiso-tabla table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.compromiso-tabla th,
.compromiso-tabla td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
    vertical-align: middle;
    color: var(--ink-soft);
    font-size: 15px;
}

.compromiso-tabla th {
    background: var(--tint);
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.compromiso-tabla tr:last-child td {
    border-bottom: 0;
}

.compromiso-tabla a {
    color: #1b2430;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.table-wrap {
    overflow-x: auto;
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
    padding: 10px 12px;
    border-bottom: 1px solid #dcdad3;
    text-align: left;
    vertical-align: top;
}

.table-wrap th {
    background: #f3f2ee;
    color: #4172c7;
    font-weight: 700;
}

.site-footer {
    background: #1b2430;
    color: #f4f2ee;
}

.site-footer :focus-visible {
    outline-color: #f4f2ee;
}

.site-footer .wrap {
    padding-top: 40px;
    padding-bottom: 40px;
}

.site-footer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
}

.footer-name {
    font-family: "Montserrat", "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 600;
}

.footer-liga {
    margin-top: 12px !important;
}

.footer-liga a {
    color: #d7e3f5;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-liga a:hover,
.footer-liga a:focus-visible {
    color: #fff;
}

.codigo-qr-page h1 {
    margin: 0;
    font-size: 50px;
    line-height: 1.12;
}

.qr-app {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 32px;
    margin-top: 32px;
    align-items: start;
}

.qr-controles {
    display: grid;
    gap: 16px;
}

.qr-campo {
    display: grid;
    gap: 8px;
    color: #4172c7;
    font-size: 15px;
    font-weight: 700;
}

.qr-campo input[type="url"],
.qr-campo input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cfd5dd;
    border-radius: 6px;
    color: #1b2430;
    font: inherit;
    font-weight: 400;
    background: #fff;
}

.qr-campo input[type="color"] {
    width: 72px;
    height: 44px;
    padding: 4px;
    border: 1px solid #cfd5dd;
    border-radius: 6px;
    background: #fff;
}

.qr-campo input[type="range"] {
    width: 100%;
}

.qr-fila {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.qr-ayuda {
    margin: -6px 0 0;
    color: #5c6570;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

.qr-rango {
    color: #3a4452;
    font-size: 14px;
    font-weight: 600;
}

.qr-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.qr-panel {
    padding: 24px;
    background: #f3f2ee;
    border: 1px solid #e4e1da;
    border-radius: 10px;
}

.qr-panel h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

.qr-vista {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 16px;
    background: #fff;
    border: 1px solid #d7dde5;
    border-radius: 8px;
}

.qr-vista canvas,
.qr-vista svg {
    max-width: 100%;
    height: auto !important;
}

.qr-destino-label {
    margin: 16px 0 4px;
    color: #4172c7;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.qr-destino {
    margin: 0;
    color: #3a4452;
    font-size: 14px;
    line-height: 1.45;
    word-break: break-all;
}

@media (max-width: 900px) {
    .qr-app {
        grid-template-columns: 1fr;
    }

    .codigo-qr-page h1 {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .wrap,
    .dialogos-inner {
        padding-left: 24px;
        padding-right: 24px;
    }

    .dialogos-inner {
        flex-wrap: wrap;
        align-items: center;
        gap: 12px 16px;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .dialogos-brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .dialogos-name {
        font-size: 24px;
    }

    .dialogos-unit {
        font-size: 13px;
    }

    .dialogos-toggle {
        display: inline-block;
    }

    .dialogos-nav {
        display: none;
        width: 100%;
        flex: 1 0 100%;
        padding-top: 4px;
        border-top: 1px solid rgba(244, 242, 238, 0.18);
    }

    .dialogos-nav.is-open {
        display: block;
    }

    .dialogos-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .dialogos-nav a {
        display: block;
        padding: 12px 0;
        white-space: normal;
        border-radius: 0;
        border-bottom: 1px solid rgba(245, 247, 250, 0.12);
    }

    .dialogos-nav a:hover,
    .dialogos-nav a:focus-visible,
    .dialogos-nav a.is-current,
    .dialogos-nav a[aria-current="page"] {
        background: transparent;
    }

    .dialogos-nav li:last-child a {
        border-bottom: 0;
        padding-bottom: 4px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .acceso-rapido {
        grid-template-columns: 1fr 1fr;
    }

    .channel-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .status-bar {
        flex-direction: column;
        gap: 4px;
    }

    .band {
        padding: 56px 0;
    }

    .hero h1,
    .family-page h1,
    .compromisos-page h1,
    .documentos-page h1,
    .respuesta-page h1,
    .cronologia-page h1 {
        font-size: 34px;
    }

    .block h2,
    .family-banner h2,
    .section-subtitle {
        font-size: 26px;
    }

    .section-subtitle {
        white-space: normal;
    }
}

@media (max-width: 520px) {
    .acceso-rapido {
        grid-template-columns: 1fr;
    }
}

.family-banner {
    background: var(--status-bg);
    border-top: 1px solid var(--status-line);
    border-bottom: 1px solid var(--status-line);
}

.family-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.family-banner h2 {
    margin: 0;
    border: 0;
    padding: 0;
    font-size: clamp(26px, 3vw, 34px);
}

.family-banner p {
    max-width: none;
    margin: 10px 0 0;
    color: #3a4452;
    font-size: 16px;
    line-height: 1.55;
}

.family-page {
    background: var(--paper);
    padding: 0 0 56px;
}

.family-intro {
    padding-top: 48px;
    padding-bottom: 28px;
}

.crumb {
    margin: 0 0 18px;
    color: #3a4452;
    font-size: 15px;
}

.crumb a {
    color: #1b2430;
    font-weight: 600;
}

.family-page h1 {
    max-width: none;
    margin: 0;
    font-size: 50px;
    font-weight: 700;
    line-height: 1.12;
}

.family-intro > p:not(.crumb) {
    max-width: none;
    margin: 16px 0 0;
    color: #3a4452;
    font-size: 17px;
    line-height: 1.55;
}

.family-updated {
    font-size: 15px;
}

.family-contact {
    margin-top: 0;
    padding: 28px 0;
    background: #eef1f6;
    border-top: 1px solid #c9d0db;
}

.family-contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.family-contact p {
    max-width: none;
    margin: 0;
    color: #3a4452;
    font-size: 16px;
    line-height: 1.55;
}

.family-contact .btn {
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .family-banner-inner,
    .family-contact-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .family-grid,
    .plazo-resumen {
        grid-template-columns: 1fr;
    }

    .family-page h1 {
        font-size: 40px;
    }
}

.admin-page h1 {
    margin: 0;
    font-size: 40px;
    line-height: 1.12;
}

.admin-page h2 {
    margin-top: 48px;
}

.admin-page .lead {
    margin-top: 16px;
}

.aviso {
    max-width: none;
    margin: 22px 0 0;
    padding: 12px 14px;
    background: #d9ebf7;
    color: #1b2430;
}

.aviso p {
    margin: 0;
}

.aviso p + p {
    margin-top: 6px;
}

.aviso-error {
    background: #f3f2ee;
    border: 1px solid #dcdad3;
}

.formulario {
    display: grid;
    gap: 14px;
    max-width: 720px;
    margin-top: 8px;
}

.formulario label {
    display: grid;
    gap: 6px;
    color: #4172c7;
    font-size: 15px;
    font-weight: 700;
}

.formulario input,
.formulario select,
.formulario textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #dcdad3;
    border-radius: 4px;
    background: #fff;
    color: #1b2430;
    font: inherit;
    font-weight: 400;
}

.formulario textarea {
    min-height: 140px;
    resize: vertical;
}

button.btn {
    width: fit-content;
    font-family: inherit;
    cursor: pointer;
}

.lista-admin {
    max-width: 720px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.lista-admin li {
    padding: 12px 0;
    border-bottom: 1px solid #e4e1da;
    color: #3a4452;
}

.lista-admin a {
    color: #1b2430;
    font-weight: 600;
}

.compromisos-page h1,
.documentos-page h1,
.respuesta-page h1 {
    margin: 0;
    font-size: 50px;
    line-height: 1.12;
}

.avance-general-conteo {
    grid-template-columns: 1fr;
}

.avance-general-conteo .avance-detalle {
    margin: 0;
}

.barra-avance {
    height: 8px;
    margin-top: 10px;
    overflow: hidden;
    background: #e4e1da;
    border-radius: 999px;
}

.barra-avance span {
    display: block;
    height: 100%;
    background: #4c9adf;
}

.plazo-nota,
.resultado-filtro {
    margin: 14px 0 0;
    color: #3a4452;
    font-size: 15px;
}

.plazo-mas {
    margin: 16px 0 0;
}

.seccion-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 0;
}

.family-banner-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.avance-general {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 28px;
    align-items: center;
    margin-top: 28px;
    padding: 20px 22px;
    background: var(--tint);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
}

.avance-numero {
    margin: 0;
    color: #4172c7;
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.95;
}

.avance-numero span {
    display: block;
    margin-top: 6px;
    color: #3a4452;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
}

.avance-detalle {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 14px 0 0;
    color: #3a4452;
    font-size: 15px;
}

.barra-avance-alta {
    height: 12px;
    margin-top: 0;
}

.filtros {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 8px;
    padding: 16px;
    background: var(--tint);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
}

.filtros label {
    display: grid;
    gap: 6px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.filtros input,
.filtros select {
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #dcdad3;
    border-radius: 4px;
    background: #fff;
    color: #1b2430;
    font: inherit;
    font-weight: 400;
}

.filtros-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
}

@media (max-width: 768px) {
    .avance-general,
    .filtros {
        grid-template-columns: 1fr;
    }

    .compromisos-page h1,
    .documentos-page h1,
    .avance-numero {
        font-size: 40px;
    }
}

.documentos-encabezado {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 28px;
}

.documentos-encabezado h2,
.documentos-encabezado p {
    margin: 0;
}

.documentos-encabezado p {
    margin-top: 6px;
    color: #5c6570;
    font-size: 16px;
}

.documentos-filtros {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.documentos-filtros a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.documentos-filtros a[aria-current="true"] {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.documento-lista {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}

.documento-fila {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr) auto;
    gap: 12px 28px;
    align-items: center;
    padding: 18px 4px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
    border-radius: 6px;
}

.documento-fecha,
.documento-categoria,
.documento-acciones {
    margin: 0;
}

.documento-fecha {
    color: var(--muted);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.documento-categoria {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.documento-fila h3 {
    margin: 2px 0 0;
    font-size: 19px;
    line-height: 1.35;
    color: var(--ink);
}

.documento-acciones {
    display: flex;
    gap: 18px;
    white-space: nowrap;
}

.documento-acciones a {
    color: #4172c7;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.documento-acciones span {
    color: #a3a9b3;
    font-weight: 600;
}

@media (max-width: 768px) {
    .documentos-encabezado {
        display: grid;
        align-items: start;
    }

    .documentos-filtros {
        justify-content: flex-start;
    }

    .documento-fila {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.respuesta-titulo {
    color: var(--ink);
}

.respuesta-meta {
    margin: 8px 0 0;
    color: #666;
    font-size: 16px;
}

.respuesta-pdf {
    margin: 18px 0 0;
}

.respuesta-pdf a {
    color: #4172c7;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.respuesta-intro {
    max-width: none;
    color: #4a5563;
    font-size: 17px;
    line-height: 1.6;
}

.respuesta-lista {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 28px;
}

.respuesta-card {
    background: #fff;
    border: 1px solid #d7dde5;
    border-radius: 12px;
    padding: 28px 28px 24px;
    scroll-margin-top: 96px;
}

.band-tint .respuesta-card {
    box-shadow: 0 10px 28px rgba(27, 36, 48, 0.05);
}

.respuesta-card-cabecera {
    margin-bottom: 18px;
}

.respuesta-card-numero {
    margin: 0 0 8px;
}

.respuesta-card-numero span {
    display: inline-block;
    color: #4172c7;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.respuesta-card-cabecera h2 {
    margin: 0;
    color: #4172c7;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    line-height: 1.25;
}

.respuesta-card-bloque {
    margin: 0 0 18px;
}

.respuesta-card-bloque h3 {
    margin: 0 0 8px;
    color: #4172c7;
    font-size: 1rem;
    line-height: 1.35;
}

.respuesta-card-bloque p {
    margin: 0;
    color: #4a5563;
    font-size: 16px;
    line-height: 1.55;
}

.respuesta-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
    margin: 0 0 18px;
}

.respuesta-meta-grid dt {
    margin: 0 0 4px;
    color: #4172c7;
    font-size: 0.95rem;
    font-weight: 700;
}

.respuesta-meta-grid dd {
    margin: 0;
    color: #4a5563;
    font-size: 16px;
    line-height: 1.5;
    white-space: pre-line;
}

.respuesta-anexos {
    margin: 0;
    padding-left: 1.2em;
    color: #4a5563;
}

.respuesta-anexos li + li {
    margin-top: 6px;
}

.respuesta-anexos a {
    color: #4172c7;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.respuesta-desplegable {
    margin-top: 8px;
    border-top: 1px solid #e4e8ee;
    padding-top: 14px;
}

.respuesta-desplegable summary {
    cursor: pointer;
    list-style: none;
    color: #4172c7;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.4;
}

.respuesta-desplegable summary::-webkit-details-marker {
    display: none;
}

.respuesta-desplegable summary::before {
    content: "+";
    display: inline-block;
    width: 1.1em;
    margin-right: 0.25em;
    font-weight: 700;
}

.respuesta-desplegable[open] summary::before {
    content: "–";
}

.respuesta-desplegable .respuesta-texto {
    margin-top: 14px;
    color: #4a5563;
    font-size: 16px;
    line-height: 1.6;
}

.respuesta-texto p {
    margin: 0 0 14px;
}

.respuesta-texto p:last-child {
    margin-bottom: 0;
}

.respuesta-texto ul,
.respuesta-texto ol {
    margin: 0 0 14px;
    padding-left: 1.2em;
}

.respuesta-texto b,
.respuesta-texto strong,
.respuesta-intro b,
.respuesta-intro strong {
    color: #4172c7;
    font-weight: 700;
}

.respuesta-texto a,
.respuesta-intro a {
    color: #4172c7;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 768px) {
    .respuesta-card {
        padding: 22px 18px 18px;
    }

    .respuesta-meta-grid {
        grid-template-columns: 1fr;
    }
}

.cronologia-page h1 {
    margin: 0 0 28px;
}

.cronologia-lista {
    display: grid;
    gap: 10px;
    margin: 0 0 28px;
}

.cronologia-semana {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.cronologia-semana summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
}

.cronologia-semana summary::-webkit-details-marker {
    display: none;
}

.cronologia-semana summary::after {
    content: "";
    grid-row: 1 / span 2;
    grid-column: 2;
    width: 0.55em;
    height: 0.55em;
    border-right: 2px solid #4172c7;
    border-bottom: 2px solid #4172c7;
    transform: rotate(45deg);
    transition: transform 0.18s ease;
    align-self: center;
}

.cronologia-semana[open] summary::after {
    transform: rotate(225deg);
    margin-top: 4px;
}

.cronologia-semana-num {
    grid-column: 1;
    font-weight: 700;
    color: #4172c7;
    font-size: 18px;
}

.cronologia-semana-rango {
    grid-column: 1;
    color: #575d6c;
    font-size: 14px;
}

.cronologia-semana-titulo {
    grid-column: 1;
    color: #1b2430;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.cronologia-cuerpo {
    display: grid;
    gap: 18px;
    padding: 4px 20px 22px;
    border-top: 1px solid var(--line-soft);
}

.cronologia-bloque {
    padding: 8px 0 2px;
}

.cronologia-bloque h2 {
    margin: 0 0 12px;
    font-family: var(--font-serif);
    font-size: 22px;
    line-height: 1.35;
    color: var(--ink);
}

.cronologia-texto p {
    margin: 0 0 12px;
    color: #3a4452;
    font-size: 16px;
    line-height: 1.65;
}

.cronologia-texto p:last-child {
    margin-bottom: 0;
}

.cronologia-vacio {
    margin: 0;
    color: #575d6c;
}

.cronologia-enlaces {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid #eceae4;
}

.cronologia-enlaces h3 {
    margin: 0 0 12px;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5c6570;
    font-weight: 700;
}

.cronologia-enlaces ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.cronologia-enlaces a {
    color: #4172c7;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    line-height: 1.4;
}

.cronologia-enlaces a:hover,
.cronologia-enlaces a:focus-visible {
    color: #2f5aaa;
}
