/* ==========================================================================
   Sindicato de Profesionales Enel · estilos del sitio
   Bootstrap 5.3 + tokens de marca
   ========================================================================== */

:root {
    --brand: #FF1668;
    --brand-dark: #D90A52;
    --brand-soft: #FFE8F0;
    --accent: #0657F9;
    --ink: #1B1D2A;
    --muted: #5E6275;
    --surface: #FFFFFF;
    --surface-alt: #F6F6FA;
    --line: #E7E7EF;
    --radius: 1rem;
    --shadow: 0 10px 30px rgba(27, 29, 42, .08);

    --bs-body-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bs-body-color: var(--ink);
    --bs-link-color-rgb: 217, 10, 82;
    --bs-link-hover-color-rgb: 180, 0, 64;
}

body {
    background: var(--surface);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: -.01em;
}

img {
    max-width: 100%;
}

.text-brand {
    color: var(--brand-dark) !important;
}

.link-brand {
    color: var(--brand-dark);
    text-decoration: none;
    font-weight: 600;
}

.link-brand:hover {
    color: var(--brand);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: 1rem;
    z-index: 2000;
    background: var(--ink);
    color: #fff;
    padding: .5rem 1rem;
    border-radius: .5rem;
}

/* Botones ---------------------------------------------------------------- */
.btn {
    font-weight: 600;
    border-radius: 999px;
    padding-inline: 1.25rem;
}

.btn-sm {
    padding-inline: .9rem;
}

.btn-brand {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-active-bg: var(--brand-dark);
    --bs-btn-active-border-color: var(--brand-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-focus-shadow-rgb: 255, 22, 104;
}

.btn-outline-brand {
    --bs-btn-color: var(--brand-dark);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-border-color: var(--brand);
    --bs-btn-active-bg: var(--brand-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-focus-shadow-rgb: 255, 22, 104;
}

.btn-chip {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-weight: 500;
    padding: .4rem 1rem;
}

.btn-chip:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
}

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

/* Header ----------------------------------------------------------------- */
.site-header {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}

.site-header.scrolled {
    border-color: var(--line);
    box-shadow: 0 4px 20px rgba(27, 29, 42, .05);
}

.site-header .navbar {
    padding-block: .75rem;
}

.navbar-brand img {
    width: 200px;
    height: auto;
}

.site-header .nav-link {
    color: var(--ink);
    font-weight: 500;
    padding: .5rem .85rem !important;
    border-radius: 999px;
}

.site-header .nav-link:hover {
    color: var(--brand-dark);
}

.site-header .nav-link.active {
    color: var(--brand-dark);
    background: var(--brand-soft);
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .navbar-brand img {
        width: 160px;
    }

    .offcanvas .nav-link {
        font-size: 1.15rem;
        padding: .75rem 1rem !important;
    }
}

/* Hero inicio ------------------------------------------------------------ */
.hero {
    position: relative;
    color: #fff;
    padding: clamp(5rem, 12vw, 9rem) 0 clamp(6rem, 14vw, 10rem);
    background:
        linear-gradient(100deg, rgba(27, 29, 42, .88) 0%, rgba(27, 29, 42, .55) 55%, rgba(255, 22, 104, .35) 100%),
        var(--hero-img) center / cover no-repeat,
        var(--ink);
}

.hero-eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .14);
    padding: .35rem .8rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.hero-lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: .9;
    max-width: 38rem;
    margin-bottom: 2rem;
}

/* Cifras ----------------------------------------------------------------- */
.stats {
    margin-top: -4rem;
    position: relative;
    z-index: 2;
}

.stats-inline {
    margin-top: 0;
}

.stat {
    height: 100%;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.stat-value {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--brand);
    line-height: 1;
    min-width: 4.5rem;
}

.stat-label {
    color: var(--muted);
    font-weight: 500;
    line-height: 1.35;
}

/* Secciones -------------------------------------------------------------- */
.section {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-alt {
    background: var(--surface-alt);
}

.section-head {
    text-align: center;
    max-width: 44rem;
    margin: 0 auto 2.5rem;
}

.section-head.text-start {
    max-width: none;
}

.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--brand-dark);
    margin-bottom: .5rem;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    font-weight: 800;
    margin-bottom: .75rem;
}

.section-lead {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Encabezado de páginas interiores --------------------------------------- */
.page-hero {
    background: var(--surface-alt);
    padding: 2.5rem 0 3rem;
}

.page-hero.has-image {
    color: #fff;
    padding: 3rem 0 4.5rem;
    background:
        linear-gradient(90deg, rgba(27, 29, 42, .85), rgba(27, 29, 42, .45)),
        var(--hero-img) center / cover no-repeat,
        var(--ink);
}

.page-hero-compact {
    padding: 2rem 0 1.5rem;
    background: var(--surface);
}

.page-hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    margin-bottom: .5rem;
}

.page-hero-lead {
    font-size: 1.15rem;
    max-width: 40rem;
    opacity: .9;
    margin-bottom: 0;
}

.page-hero-compact .page-hero-lead {
    color: var(--muted);
    opacity: 1;
}

.breadcrumb {
    font-size: .875rem;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: inherit;
    opacity: .75;
    text-decoration: none;
}

.breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.page-hero.has-image .breadcrumb-item.active,
.page-hero.has-image .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, .7);
}

.badge-soft {
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-weight: 600;
    padding: .55em 1em;
}

/* Beneficios ------------------------------------------------------------- */
.benefit-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform .2s, box-shadow .2s;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: .9rem;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 1.4rem;
}

.benefit-amount {
    font-weight: 800;
    color: var(--accent);
}

.benefit-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) * 1.25);
    overflow: hidden;
}

.benefit-row-media img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    max-height: 360px;
    object-fit: cover;
    display: block;
}

.benefit-row-body {
    padding: 2rem;
    align-self: center;
}

@media (min-width: 992px) {
    .benefit-row {
        grid-template-columns: 5fr 7fr;
    }

    .benefit-row.reverse {
        grid-template-columns: 7fr 5fr;
    }

    .benefit-row.reverse .benefit-row-media {
        order: 2;
    }

    .benefit-row-body {
        padding: 2.5rem 3rem;
    }
}

/* Cabañas ---------------------------------------------------------------- */
.scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 1fr);
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: .75rem;
    scrollbar-width: thin;
}

@media (min-width: 992px) {
    .scroller {
        grid-auto-columns: calc((100% - 3 * 1.25rem) / 4);
    }
}

.place-card {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    overflow: hidden;
    scroll-snap-align: start;
    color: #fff;
    text-decoration: none;
    background: var(--ink);
}

.place-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.place-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(27, 29, 42, .85));
}

.place-card:hover img {
    transform: scale(1.05);
}

.place-card-body {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1;
    display: grid;
    gap: .15rem;
}

.place-card-zone {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .8;
}

.place-card-title {
    font-size: 1.4rem;
    font-weight: 800;
}

.place-card-meta {
    font-size: .875rem;
    opacity: .9;
}

.place-tile {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: var(--ink);
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}

.place-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    color: var(--ink);
}

.place-tile-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.place-tile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.place-tile-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    font-size: .75rem;
    font-weight: 700;
    padding: .3rem .7rem;
    border-radius: 999px;
}

.place-tile-body {
    padding: 1.25rem 1.25rem 1.5rem;
}

.steps {
    counter-reset: paso;
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .9rem;
}

.steps li {
    counter-increment: paso;
    position: relative;
    padding-left: 2.75rem;
}

.steps li::before {
    content: counter(paso);
    position: absolute;
    left: 0;
    top: -.1rem;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-weight: 700;
    font-size: .9rem;
}

.apply-box,
.contact-box {
    background: var(--surface-alt);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.contact-box {
    background: var(--surface);
    border: 1px solid var(--line);
}

/* Galería ---------------------------------------------------------------- */
.gallery {
    display: grid;
    gap: .5rem;
    grid-template-columns: repeat(2, 1fr);
    border-radius: var(--radius);
    overflow: hidden;
}

.gallery-item {
    border: 0;
    padding: 0;
    background: var(--surface-alt);
    aspect-ratio: 4 / 3;
    overflow: hidden;
    cursor: zoom-in;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s, opacity .2s;
}

.gallery-item:hover img {
    transform: scale(1.04);
    opacity: .92;
}

.gallery-main {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
}

@media (min-width: 768px) {
    .gallery {
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: repeat(2, 200px);
    }

    .gallery-item {
        aspect-ratio: auto;
    }

    .gallery-main {
        grid-column: 1;
        grid-row: 1 / span 2;
        aspect-ratio: auto;
    }
}

@media (min-width: 1200px) {
    .gallery {
        grid-template-rows: repeat(2, 240px);
    }
}

/* Carrusel en la foto grande (fotos sobre la 5ª) */
.gallery-main.carousel .carousel-inner,
.gallery-main.carousel .carousel-item,
.gallery-main.carousel .gallery-item {
    width: 100%;
    height: 100%;
}

.gallery-main.carousel .gallery-item {
    display: block;
    aspect-ratio: auto;
}

.lightbox-img {
    width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: .75rem;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .9);
    color: var(--ink);
    font-size: 1.25rem;
}

.lightbox-prev {
    left: .75rem;
}

.lightbox-next {
    right: .75rem;
}

.modal-backdrop.show {
    opacity: .85;
}

.check-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: .6rem;
}

.check-list li {
    position: relative;
    padding-left: 1.9rem;
}

.check-list li::before {
    content: '\F26E';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--brand);
    font-size: 1.2rem;
    line-height: 1.3;
}

.lead-sm {
    font-size: 1.08rem;
    color: #3b3e4f;
}

.alert-brand {
    background: var(--brand-soft);
    border: 0;
    color: var(--ink);
    border-radius: var(--radius);
}

.map-embed {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--surface-alt);
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Directiva -------------------------------------------------------------- */
.person-card {
    text-align: center;
}

.person-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
}

/* Noticias --------------------------------------------------------------- */
.news-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.news-card .stretched-link-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.news-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.news-card-body {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-date {
    font-size: .8rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.news-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: .4rem 0 .5rem;
}

.news-card-text {
    color: var(--muted);
    font-size: .95rem;
}

.news-card-more {
    margin-top: auto;
    color: var(--brand-dark);
    font-weight: 600;
    font-size: .9rem;
}

.article-title {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    margin: .5rem 0 1rem;
}

.article-lead {
    font-size: 1.2rem;
    color: var(--muted);
}

.article-img {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.article-body {
    font-size: 1.08rem;
    line-height: 1.75;
}

.article-body img {
    height: auto;
    border-radius: .5rem;
}

/* Documentos ------------------------------------------------------------- */
.doc-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
}

.doc-icon {
    flex: none;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: .9rem;
    display: grid;
    place-items: center;
    background: #E8EFFF;
    color: var(--accent);
    font-size: 1.5rem;
}

.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 4rem 1rem;
}

.empty-state i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

/* CTA -------------------------------------------------------------------- */
.cta-band {
    background: linear-gradient(120deg, var(--brand) 0%, #FF4F8B 50%, var(--accent) 140%);
    color: #fff;
    border-radius: calc(var(--radius) * 1.5);
    padding: clamp(2rem, 5vw, 3.5rem);
}

/* Footer ----------------------------------------------------------------- */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, .78);
    padding: 4rem 0 2rem;
}

.footer-logo {
    max-width: 240px;
}

.footer-title {
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-links li+li {
    margin-top: .6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

.footer-hr {
    border-color: rgba(255, 255, 255, .15);
    margin: 2.5rem 0 1.5rem;
    opacity: 1;
}

.footer-copy {
    font-size: .85rem;
    color: rgba(255, 255, 255, .55);
}

/* Mensajes ---------------------------------------------------------------- */
.flash-stack {
    padding-top: 1rem;
}

.flash-stack .alert {
    border: 0;
    border-radius: .75rem;
    margin-bottom: .5rem;
}

.portal .flash-stack,
.auth-wrap .flash-stack {
    padding-top: 0;
}

/* Acceso (login / registro) ---------------------------------------------- */
.auth-wrap {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(2rem, 6vw, 4rem) 1rem;
    background: var(--surface-alt);
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--surface);
    border-radius: calc(var(--radius) * 1.25);
    box-shadow: var(--shadow);
    padding: clamp(1.5rem, 5vw, 2.5rem);
}

.stepper {
    display: flex;
    gap: .5rem;
    list-style: none;
    padding: 0;
    counter-reset: paso;
    font-size: .85rem;
}

.stepper li {
    counter-increment: paso;
    flex: 1;
    color: var(--muted);
    font-weight: 600;
    padding-top: .6rem;
    border-top: 3px solid var(--line);
}

.stepper li::before {
    content: counter(paso) '. ';
}

.stepper li.active {
    color: var(--brand-dark);
    border-color: var(--brand);
}

.stepper li.done {
    color: var(--ink);
    border-color: var(--ink);
}

.form-section {
    border: 0;
    padding: 0;
    margin: 0 0 2rem;
}

.form-section legend {
    font-size: 1rem;
    font-weight: 700;
    padding-bottom: .5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--line);
    width: 100%;
}

.form-label {
    font-weight: 600;
    font-size: .9rem;
}

.form-control,
.form-select {
    border-radius: .6rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 .2rem rgba(255, 22, 104, .15);
}

/* Portal ----------------------------------------------------------------- */
.portal {
    background: var(--surface-alt);
    padding: 2rem 0 4rem;
    min-height: calc(100vh - 80px);
}

.portal-nav {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1rem;
    position: sticky;
    top: 96px;
}

.portal-user {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem .5rem 1rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: .75rem;
}

.portal-avatar {
    flex: none;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
}

.min-w-0 {
    min-width: 0;
}

.portal-nav .nav-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--ink);
    font-weight: 500;
    padding: .6rem .75rem;
    border-radius: .6rem;
    background: none;
    border: 0;
}

.portal-nav .nav-link i {
    font-size: 1.1rem;
    color: var(--muted);
}

.portal-nav .nav-link:hover {
    background: var(--surface-alt);
}

.portal-nav .nav-link.active {
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-weight: 700;
}

.portal-nav .nav-link.active i {
    color: var(--brand-dark);
}

@media (max-width: 991.98px) {
    .portal-nav {
        position: static;
    }

    .portal-nav .nav {
        flex-direction: row !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: .25rem;
    }

    .portal-nav .nav-link {
        white-space: nowrap;
    }

    .portal-nav form {
        display: none;
    }
}

.portal-head {
    margin-bottom: 1.5rem;
}

.portal-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid transparent;
}

.portal-card.border-brand {
    border-color: var(--brand);
}

.portal .breadcrumb a {
    color: var(--muted);
}

.table-portal {
    --bs-table-bg: transparent;
}

.table-portal> :not(caption)>*>* {
    padding: .85rem 1rem;
    border-color: var(--line);
}

.table-portal thead th {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    font-weight: 700;
}

.table-portal tbody:last-child tr:last-child td {
    border-bottom: 0;
}

.table-portal .group-rows+.group-rows {
    border-top: 2px solid var(--line);
}

tr[data-href] {
    cursor: pointer;
}

.kpi {
    display: block;
    height: 100%;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-decoration: none;
    color: var(--ink);
    transition: transform .2s, box-shadow .2s;
}

.kpi:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: var(--ink);
}

.kpi-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand);
    line-height: 1.1;
}

.kpi-label {
    display: block;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 500;
}

.option-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.25rem 1.25rem 1.25rem;
    height: 100%;
}

.option-letter {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-weight: 800;
    font-size: .9rem;
}

.option-card .option-letter {
    position: absolute;
    top: -1rem;
    left: 1.25rem;
}

.option-letter.sm {
    width: 1.6rem;
    height: 1.6rem;
    font-size: .75rem;
}

/* Historial de cabañas por año */
.hist-cabanas .badge {
    font-weight: 600;
}

.hist-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem;
}

.hist-chip {
    display: inline-grid;
    place-items: center;
    min-width: 1.7rem;
    height: 1.35rem;
    padding: 0 .25rem;
    border-radius: .4rem;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1;
    cursor: default;
    border: 1px solid transparent;
}

.hist-chip.is-asignado {
    background: var(--brand-dark);
    color: #fff;
}

.hist-chip.is-sin {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--muted);
}

.hist-chip.is-desiste {
    background: var(--surface-alt);
    color: var(--muted);
    border-color: var(--line);
    text-decoration: line-through;
}

.hist-chip.is-no {
    background: transparent;
    color: #A3A6B4;
    border: 1px dashed var(--line);
}

.quick-links li+li {
    border-top: 1px solid var(--line);
}

.quick-links a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem 0;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
}

.quick-links a i {
    color: var(--brand-dark);
    font-size: 1.1rem;
}

.quick-links a:hover {
    color: var(--brand-dark);
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Semáforo de demanda (postulación cabañas) */
.demanda-box {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}

.demanda-matriz {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}

.demanda-matriz th,
.demanda-matriz td {
    border: 1px solid var(--line);
    padding: .45rem .5rem;
    text-align: center;
    white-space: nowrap;
}

.demanda-matriz thead th {
    font-weight: 600;
    font-size: .8125rem;
    line-height: 1.2;
}

.demanda-matriz .demanda-destino {
    text-align: left;
    font-weight: 600;
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--surface);
}

.demanda-matriz td .semaforo {
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    min-height: 1rem;
    margin: 0;
}

.semaforo {
    display: inline-block;
    flex: 0 0 auto;
    width: .75rem;
    height: .75rem;
    min-width: .75rem;
    min-height: .75rem;
    border-radius: 50%;
    margin-right: .3rem;
    vertical-align: middle;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, .06);
}

.semaforo-baja {
    background: #28a745;
}

.semaforo-media {
    background: #ffc107;
}

.semaforo-alta {
    background: #dc3545;
}