:root {
    --ink: #16110f;
    --coal: #241c19;
    --muted: #746b65;
    --paper: #fbf7f0;
    --panel: #fffaf3;
    --line: #e6dbcc;
    --red: #bd2430;
    --red-dark: #8e1b26;
    --gold: #d8aa49;
    --green: #13786f;
    --blue: #254f83;
    --shadow: 0 24px 70px rgba(36, 28, 25, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--paper);
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    background:
        linear-gradient(180deg, rgba(255, 250, 243, 0.86), rgba(251, 247, 240, 0.98)),
        linear-gradient(90deg, rgba(189, 36, 48, 0.026) 1px, transparent 1px),
        linear-gradient(180deg, rgba(19, 120, 111, 0.022) 1px, transparent 1px),
        var(--paper);
    background-size: auto, 64px 64px, 64px 64px, auto;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.site-header,
.site-footer,
main {
    width: min(1220px, calc(100% - 34px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 10px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid rgba(230, 219, 204, 0.94);
    border-radius: 14px;
    background: rgba(255, 250, 243, 0.9);
    box-shadow: 0 16px 45px rgba(36, 28, 25, 0.12);
    backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand-mark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: 10px;
    background: linear-gradient(145deg, var(--red), #e14b3e);
    color: #fff;
    box-shadow: 0 12px 30px rgba(189, 36, 48, 0.32);
    font-size: 1.2rem;
    font-weight: 950;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 1.04rem;
    letter-spacing: 0;
}

.brand small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px;
    border: 1px solid rgba(230, 219, 204, 0.9);
    border-radius: 10px;
    background: rgba(255, 250, 243, 0.88);
    box-shadow: 0 14px 36px rgba(36, 28, 25, 0.08);
}

.top-nav a {
    min-height: 39px;
    padding: 9px 14px;
    border-radius: 7px;
    color: #544b45;
    font-weight: 900;
    font-size: 0.93rem;
}

.top-nav a:hover {
    background: var(--coal);
    color: #fff;
}

.hero {
    position: relative;
    display: grid;
    min-height: min(720px, calc(100vh - 92px));
    overflow: hidden;
    align-items: end;
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    background: var(--coal);
    color: #fff;
    box-shadow: 0 34px 90px rgba(36, 28, 25, 0.26);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 10, 9, 0.94) 0%, rgba(36, 20, 18, 0.74) 38%, rgba(36, 20, 18, 0.18) 74%),
        linear-gradient(180deg, rgba(18, 12, 10, 0.06) 0%, rgba(18, 12, 10, 0.82) 100%),
        url("/img/carnaval-hero-pito-cana-2026.png") center right / cover no-repeat;
    transform: scale(1.015);
}

.hero::after {
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    content: "";
    background: linear-gradient(180deg, rgba(18, 12, 10, 0), rgba(18, 12, 10, 0.76));
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    padding: clamp(36px, 6vw, 82px);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
    letter-spacing: 0;
    line-height: 1.02;
}

h1 {
    font-size: clamp(3rem, 6.1vw, 5.95rem);
    font-weight: 950;
}

.hero h1 {
    max-width: 1040px;
    text-wrap: balance;
}

h2 {
    font-size: clamp(1.9rem, 3vw, 3rem);
    font-weight: 950;
}

.lead {
    max-width: 620px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.07rem, 1.6vw, 1.32rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 9px;
    font-weight: 950;
}

.button.primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 16px 34px rgba(189, 36, 48, 0.38);
}

.button.ghost {
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    backdrop-filter: blur(12px);
}

.button.dark {
    align-self: flex-start;
    margin-top: 24px;
    background: var(--gold);
    color: var(--coal);
}

.hero-dock {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(22, 17, 15, 0.68);
    backdrop-filter: blur(16px);
}

.hero-dock div {
    padding: 18px 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-dock div:last-child {
    border-right: 0;
}

.hero-dock strong,
.hero-dock span {
    display: block;
}

.hero-dock strong {
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
}

.hero-dock span {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
}

.spotlight {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 0;
    overflow: hidden;
    margin-top: 28px;
    border-radius: 14px;
    background: var(--coal);
    color: #fff;
    box-shadow: var(--shadow);
}

.spotlight-media {
    position: relative;
    min-height: 380px;
    overflow: hidden;
    background: #000;
}

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

.play-mark {
    position: absolute;
    left: 22px;
    bottom: 22px;
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
}

.spotlight-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 5vw, 62px);
}

.spotlight-copy p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.76);
}

.band,
.split-band,
.page-head,
.filters,
.group-list,
.article-list,
.detail-layout,
.article-detail {
    margin-top: 38px;
}

.band,
.split-band {
    padding: 22px 0;
}

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.section-title a {
    color: var(--red);
    font-weight: 950;
}

.compact {
    margin-bottom: 14px;
}

.video-grid,
.article-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.content-grid {
    margin-top: 28px;
    margin-bottom: 52px;
}

.video-card,
.article-card,
.group-row {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 250, 243, 0.92);
}

.video-card {
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(36, 28, 25, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(36, 28, 25, 0.16);
}

.thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111;
}

.thumb::after {
    position: absolute;
    inset: auto 0 0;
    height: 52%;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.thumb span {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 1;
    padding: 5px 9px;
    border-radius: 6px;
    background: var(--gold);
    color: #211813;
    font-weight: 950;
    font-size: 0.78rem;
}

.video-card:hover .thumb img {
    transform: scale(1.06);
}

.card-body {
    padding: 15px;
}

.card-title {
    display: block;
    min-height: 50px;
    font-weight: 950;
    line-height: 1.18;
}

.card-body p,
.article-card p,
.page-head p,
.detail-meta p,
.site-footer {
    color: var(--muted);
}

.card-body p {
    margin: 10px 0 0;
    font-size: 0.88rem;
}

.split-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.split-band > div {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 250, 243, 0.92);
    box-shadow: 0 14px 40px rgba(36, 28, 25, 0.07);
}

.pill-list,
.year-list,
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.pill-list a,
.year-list a,
.filters a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 250, 243, 0.92);
    color: #4b413b;
    font-weight: 900;
}

.year-filter {
    gap: 7px;
}

.year-filter a {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.9rem;
}

.filters.subtle {
    margin-bottom: 28px;
}

.filters a.active,
.pill-list a:hover,
.year-list a:hover,
.filters a:hover {
    border-color: var(--red);
    background: var(--red);
    color: #fff;
}

.filters.subtle a.active,
.filters.subtle a:hover {
    border-color: var(--green);
    background: var(--green);
}

.page-head {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 5vw, 62px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    background:
        linear-gradient(90deg, rgba(28, 16, 15, 0.92), rgba(58, 28, 26, 0.68) 50%, rgba(58, 28, 26, 0.28)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
        url("/img/carnaval-hero-pito-cana-2026.png") center right / cover no-repeat;
    color: #fff;
    box-shadow: 0 26px 70px rgba(36, 28, 25, 0.22);
}

.page-head::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(216, 170, 73, 0.14) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 58px 58px;
    opacity: 0.34;
    pointer-events: none;
}

.page-head > * {
    position: relative;
    z-index: 1;
}

.page-head p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.82);
}

.group-list,
.article-list {
    display: grid;
    gap: 12px;
    margin-bottom: 52px;
}

.group-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    transition: transform 160ms ease, border-color 160ms ease;
}

.group-row:hover {
    transform: translateX(5px);
    border-color: var(--gold);
}

.group-row small,
.article-card time {
    display: block;
    color: var(--muted);
}

.group-row em {
    color: var(--blue);
    font-style: normal;
    font-weight: 950;
}

.article-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
    box-shadow: 0 14px 40px rgba(36, 28, 25, 0.07);
}

.article-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 9px;
    background: #ece2d4;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-title {
    display: block;
    margin: 6px 0;
    font-size: 1.05rem;
    font-weight: 950;
    line-height: 1.18;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(320px, 0.62fr);
    gap: 24px;
    align-items: start;
}

.video-player {
    overflow: hidden;
    border-radius: 14px;
    background: #000;
    box-shadow: var(--shadow);
}

.video-player iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.detail-meta,
.article-detail {
    padding: clamp(24px, 4vw, 34px);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 250, 243, 0.94);
    box-shadow: 0 14px 40px rgba(36, 28, 25, 0.08);
}

.detail-meta h1,
.article-detail h1 {
    font-size: clamp(2rem, 4vw, 3.7rem);
}

.rich-text {
    margin-top: 22px;
    color: #302721;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: rgba(189, 36, 48, 0.55) rgba(230, 219, 204, 0.72);
    scrollbar-width: thin;
}

.rich-text a {
    color: var(--red);
    font-weight: 900;
}

.rich-text table {
    width: 100%;
    min-width: 680px;
    margin: 28px 0;
    overflow: hidden;
    border: 1px solid rgba(230, 219, 204, 0.95);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    background: rgba(255, 250, 243, 0.98);
    box-shadow: 0 18px 48px rgba(36, 28, 25, 0.09);
}

.rich-text th,
.rich-text td {
    padding: 14px 16px;
    border-right: 1px solid rgba(230, 219, 204, 0.82);
    border-bottom: 1px solid rgba(230, 219, 204, 0.82);
    text-align: left;
    vertical-align: top;
}

.rich-text th:last-child,
.rich-text td:last-child {
    border-right: 0;
}

.rich-text tr:last-child td {
    border-bottom: 0;
}

.rich-text th {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

.rich-text th strong {
    font-weight: inherit;
}

.rich-text tbody tr:nth-child(even) td {
    background: rgba(216, 170, 73, 0.08);
}

.rich-text tbody tr:hover td {
    background: rgba(19, 120, 111, 0.08);
}

.rich-text td[colspan] {
    padding: 13px 16px;
    background: linear-gradient(90deg, rgba(216, 170, 73, 0.88), rgba(216, 170, 73, 0.62)) !important;
    color: var(--coal) !important;
    text-align: center;
    font-weight: 950;
    text-transform: uppercase;
}

.rich-text td:first-child {
    width: 150px;
    color: var(--blue);
    font-weight: 950;
}

.rich-text td a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin: 2px 4px 2px 0;
    padding: 3px 8px;
    border: 1px solid rgba(189, 36, 48, 0.16);
    border-radius: 7px;
    background: rgba(189, 36, 48, 0.07);
    color: var(--red-dark);
    line-height: 1.2;
}

.rich-text td a:hover {
    border-color: rgba(189, 36, 48, 0.38);
    background: var(--red);
    color: #fff;
}

.article-detail {
    max-width: 900px;
}

.article-hero {
    width: 100%;
    max-height: 440px;
    margin: 24px 0;
    border-radius: 12px;
    object-fit: cover;
}

.empty {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 38px 0 48px;
    border-top: 1px solid var(--line);
}

@media (max-width: 940px) {
    .site-header,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .top-nav {
        width: 100%;
        overflow-x: auto;
    }

    .hero {
        min-height: 650px;
    }

    .hero-bg {
        background:
            linear-gradient(180deg, rgba(20, 14, 12, 0.28), rgba(20, 14, 12, 0.92)),
            url("/img/carnaval-hero-pito-cana-2026.png") center / cover no-repeat;
    }

    .hero-dock,
    .spotlight,
    .split-band,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-dock div {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .video-grid,
    .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 941px) {
    .hero h1 {
        white-space: nowrap;
    }
}

@media (max-width: 580px) {
    .site-header,
    .site-footer,
    main {
        width: min(100% - 20px, 1220px);
    }

    .brand-mark {
        width: 42px;
        height: 42px;
    }

    h1 {
        font-size: 3rem;
    }

    .hero h1 {
        white-space: normal;
    }

    .hero {
        min-height: 720px;
        border-radius: 12px;
    }

    .hero-copy {
        padding: 28px;
    }

    .lead {
        font-size: 1.05rem;
    }

    .hero-dock strong {
        font-size: 1.45rem;
    }

    .spotlight-media {
        min-height: 270px;
    }

    .video-grid,
    .article-grid,
    .article-card {
        grid-template-columns: 1fr;
    }

    .group-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
