: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%;
}

.ad-slot {
    display: grid;
    width: min(970px, calc(100% - 34px));
    min-height: 250px;
    place-items: center;
    margin: 28px auto;
    overflow: hidden;
    border: 1px solid rgba(230, 219, 204, 0.86);
    border-radius: 8px;
    background: rgba(255, 250, 243, 0.76);
}

.ad-slot > span {
    margin-bottom: 6px;
    color: rgba(116, 107, 101, 0.72);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ad-slot ins {
    width: 100%;
    min-height: 250px;
}

.ad-slot-wide {
    min-height: 120px;
}

.ad-slot-wide ins {
    min-height: 120px;
}

.grid-ad {
    grid-column: 1 / -1;
}

.grid-ad .ad-slot {
    width: 100%;
    margin: 8px 0;
}

.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;
}

.site-search {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: min(300px, 28vw);
    padding: 6px;
    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.06);
}

.site-search label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.site-search input {
    width: 100%;
    min-width: 0;
    min-height: 39px;
    border: 0;
    border-radius: 7px;
    background: #fff;
    color: var(--coal);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 8px 10px;
}

.site-search button {
    min-height: 39px;
    border: 0;
    border-radius: 7px;
    background: var(--blue);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 950;
    padding: 8px 11px;
}

.search-hero-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 26px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 250, 243, 0.94);
    box-shadow: 0 14px 40px rgba(36, 28, 25, 0.07);
}

.search-hero-form label {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 950;
    text-transform: uppercase;
}

.search-hero-form input {
    min-height: 46px;
    border: 1px solid rgba(230, 219, 204, 0.98);
    border-radius: 8px;
    background: #fff;
    color: var(--coal);
    font: inherit;
    font-weight: 850;
    padding: 10px 12px;
}

.search-group-grid {
    margin-bottom: 0;
}

.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,
.blog-feature,
.blog-list-head,
.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;
}

.video-views {
    display: inline-flex;
    margin-top: 12px;
    padding: 5px 8px;
    border-radius: 6px;
    background: rgba(19, 120, 111, 0.1);
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 950;
}

.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;
}

.phase-filter {
    align-items: center;
    margin: -12px 0 30px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 250, 243, 0.72);
}

.phase-filter > span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 950;
    text-transform: uppercase;
}

.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);
}

.phase-filter a.active,
.phase-filter a:hover {
    border-color: var(--blue);
    background: var(--blue);
}

.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-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.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;
}

.group-card {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 250, 243, 0.94);
    box-shadow: 0 14px 40px rgba(36, 28, 25, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.group-card:hover {
    transform: translateY(-4px);
    border-color: rgba(19, 120, 111, 0.28);
    box-shadow: 0 24px 62px rgba(36, 28, 25, 0.14);
}

.group-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(189, 36, 48, 0.82), rgba(19, 120, 111, 0.82)),
        url("/img/carnaval-hero-pito-cana-2026.png") center / cover no-repeat;
}

.group-card-media::after {
    position: absolute;
    inset: auto 0 0;
    height: 56%;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(20, 14, 12, 0.72));
}

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

.group-card:hover .group-card-media img {
    transform: scale(1.055);
}

.group-card-media em {
    position: absolute;
    right: 11px;
    bottom: 11px;
    z-index: 1;
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 4px 10px;
    border-radius: 7px;
    background: var(--gold);
    color: #211813;
    font-size: 0.84rem;
    font-style: normal;
    font-weight: 950;
}

.group-card-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: rgba(255, 255, 255, 0.92);
}

.group-card-fallback strong {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: rgba(20, 14, 12, 0.18);
    font-size: 2.3rem;
    font-weight: 950;
}

.group-card-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.group-card-body > strong {
    color: var(--coal);
    font-size: 1.18rem;
    font-weight: 950;
    line-height: 1.14;
}

.group-card-kicker {
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
}

.group-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.group-card-meta span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 4px 8px;
    border-radius: 7px;
    background: rgba(216, 170, 73, 0.14);
    color: #6c5126;
    font-size: 0.82rem;
    font-weight: 950;
}

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

.blog-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 250, 243, 0.96);
    box-shadow: 0 22px 70px rgba(36, 28, 25, 0.11);
}

.blog-feature-image {
    min-height: 420px;
    overflow: hidden;
    background: #211813;
}

.blog-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 240ms ease;
}

.blog-feature:hover .blog-feature-image img {
    transform: scale(1.035);
}

.blog-feature-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(26px, 4vw, 48px);
}

.blog-feature-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 3.4vw, 3.3rem);
    line-height: 1.02;
}

.blog-feature-copy p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.03rem;
}

.text-link {
    display: inline-flex;
    width: fit-content;
    margin-top: 10px;
    color: var(--red);
    font-weight: 950;
}

.blog-list-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.blog-list-head h2 {
    margin: 0;
}

.blog-list-head span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 900;
}

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

.article-card {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 14px 40px rgba(36, 28, 25, 0.07);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: rgba(189, 36, 48, 0.26);
    box-shadow: 0 24px 62px rgba(36, 28, 25, 0.13);
}

.article-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #ece2d4;
}

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

.article-card:hover .article-image img {
    transform: scale(1.055);
}

.article-card > div {
    display: flex;
    flex-direction: column;
    padding: 16px;
}

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

.article-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
}

.article-meta-line span {
    display: inline-flex;
    max-width: 100%;
    min-height: 25px;
    align-items: center;
    padding: 3px 8px;
    border-radius: 7px;
    background: rgba(19, 120, 111, 0.09);
    color: var(--blue);
}

.article-source {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.article-source span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 950;
    text-transform: uppercase;
}

.article-source a,
.article-source strong {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid rgba(19, 120, 111, 0.16);
    border-radius: 8px;
    background: rgba(19, 120, 111, 0.09);
    color: var(--blue);
    font-size: 0.9rem;
    font-weight: 950;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 58px;
}

.pagination a,
.pagination span,
.pagination em {
    display: inline-flex;
    min-width: 42px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 250, 243, 0.94);
    color: var(--coal);
    font-weight: 950;
    font-style: normal;
}

.pagination span {
    border-color: var(--red);
    background: var(--red);
    color: #fff;
}

.pagination em {
    min-width: 28px;
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

.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);
}

.video-stat-line {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin: 8px 0 4px;
    padding: 8px 11px;
    border-radius: 8px;
    background: rgba(19, 120, 111, 0.1);
    color: var(--blue);
}

.video-stat-line strong {
    font-size: 1.25rem;
    line-height: 1;
}

.video-stat-line span {
    color: inherit;
    font-size: 0.88rem;
    font-weight: 900;
}

.article-stat-line {
    margin: 12px 0 2px;
}

.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;
}

.comments-band {
    margin: 28px 0;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 250, 243, 0.86);
}

.comments-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
    gap: 22px;
    align-items: start;
}

.comment-form {
    display: grid;
    gap: 13px;
}

.comment-form label {
    display: grid;
    gap: 7px;
    color: #4e453f;
    font-weight: 950;
}

.comment-form input,
.comment-form textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    border: 1px solid #d8caba;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-weight: 750;
    padding: 10px 12px;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form > p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.comment-honey {
    position: absolute;
    left: -9999px;
}

.comment-list {
    display: grid;
    gap: 12px;
}

.comment-card {
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.comment-card header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-card time {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.comment-card p {
    margin: 0;
    color: #3b322d;
    line-height: 1.55;
}

.comment-flash {
    margin-bottom: 16px;
    border-radius: 8px;
    padding: 12px 14px;
    font-weight: 900;
}

.comment-flash.success {
    background: rgba(19, 120, 111, 0.11);
    color: #0b5d54;
}

.comment-flash.error {
    background: rgba(189, 36, 48, 0.12);
    color: var(--red-dark);
}

.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);
}

.admin-body .site-header,
.admin-body .site-footer {
    display: none;
}

.admin-body main {
    width: 100%;
    margin: 0;
}

.admin-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 290px minmax(0, 1fr);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    background: #201a18;
    color: #fff;
}

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

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

.admin-brand small {
    color: rgba(255, 255, 255, 0.62);
    font-weight: 800;
}

.admin-nav {
    display: grid;
    gap: 7px;
}

.admin-nav a,
.admin-logout {
    padding: 11px 13px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 900;
}

.admin-nav a:hover,
.admin-logout:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.admin-logout {
    margin-top: auto;
}

.admin-main {
    min-width: 0;
    padding: 34px;
}

.admin-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-head h1 {
    margin: 0 0 4px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
}

.admin-head p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-weight: 750;
}

.admin-actions,
.admin-form-actions,
.admin-row-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.admin-primary,
.admin-secondary,
.admin-row-actions a,
.admin-row-actions button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 950;
}

.admin-primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 12px 28px rgba(189, 36, 48, 0.22);
}

.admin-secondary,
.admin-row-actions a {
    border: 1px solid var(--line);
    background: #fffaf3;
    color: var(--ink);
}

.admin-row-actions button {
    background: rgba(189, 36, 48, 0.08);
    color: var(--red-dark);
}

.admin-row-actions form {
    margin: 0;
}

.admin-flash {
    margin-bottom: 16px;
    border-radius: 8px;
    padding: 12px 14px;
    font-weight: 900;
}

.admin-flash.success {
    background: rgba(19, 120, 111, 0.11);
    color: #0b5d54;
}

.admin-flash.error {
    background: rgba(189, 36, 48, 0.12);
    color: var(--red-dark);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.admin-stats article,
.admin-panel,
.admin-table-wrap,
.admin-form,
.admin-login-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 250, 243, 0.96);
    box-shadow: 0 18px 50px rgba(36, 28, 25, 0.08);
}

.admin-stats article {
    padding: 18px;
}

.admin-stats strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.9rem;
    line-height: 1;
}

.admin-stats span,
.admin-list span,
.admin-table span {
    color: var(--muted);
    font-weight: 800;
}

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

.admin-panel {
    padding: 18px;
}

.admin-panel h2 {
    margin: 0 0 14px;
}

.admin-list {
    display: grid;
    gap: 8px;
}

.admin-list a {
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.admin-filters {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 18px;
}

.admin-filters label {
    display: grid;
    gap: 6px;
    color: #4e453f;
    font-size: 0.83rem;
    font-weight: 950;
}

.admin-filters input,
.admin-filters select,
.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-inline-form input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d8caba;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-weight: 750;
    padding: 10px 12px;
}

.admin-filters input,
.admin-filters select {
    width: auto;
}

.admin-filter-search {
    flex: 1;
    min-width: min(430px, 100%);
}

.admin-filter-search input {
    width: 100%;
}

.admin-filter-year {
    width: 132px;
    flex: 0 0 132px;
}

.admin-filter-year select {
    width: 100%;
}

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

.admin-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    background: rgba(216, 170, 73, 0.12);
    color: #59432a;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.admin-table td strong,
.admin-table td span {
    display: block;
}

.admin-thumb {
    width: 92px;
    height: 58px;
    border-radius: 7px;
    object-fit: cover;
    background: #eadfce;
}

.admin-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 18px;
}

.admin-form label {
    display: grid;
    gap: 7px;
    color: #4e453f;
    font-weight: 950;
}

.admin-form .wide,
.admin-form-actions,
.admin-form-image {
    grid-column: 1 / -1;
}

.admin-form textarea {
    min-height: 180px;
    resize: vertical;
}

.editor-field .ck-editor {
    color: var(--ink);
    font-weight: 500;
}

.editor-field .ck-editor__editable {
    min-height: 380px;
}

.editor-field .ck-content table {
    width: 100%;
}

.admin-form-image {
    width: min(360px, 100%);
    border-radius: 8px;
}

.admin-login {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 18% 12%, rgba(216, 170, 73, 0.18), transparent 30%),
        radial-gradient(circle at 88% 28%, rgba(19, 120, 111, 0.16), transparent 32%),
        #f7efe4;
}

.admin-login-card {
    display: grid;
    width: min(480px, 100%);
    max-width: 100%;
    gap: 13px;
    padding: 30px;
    overflow: hidden;
}

.admin-login-card h1,
.admin-login-card p {
    margin: 0;
}

.admin-login-card h1 {
    font-size: clamp(1.85rem, 5vw, 2.35rem);
    line-height: 1.05;
}

.admin-login-card p {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.45;
}

.admin-login-card label {
    display: grid;
    gap: 7px;
    font-weight: 950;
}

.admin-login-card input {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    border: 1px solid #d8caba;
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
}

.admin-login-card .admin-primary {
    width: 100%;
}

.admin-inline-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(140px, 0.55fr) auto;
    gap: 9px;
    margin-bottom: 10px;
}

@media (max-width: 920px) {
    .admin-shell,
    .admin-columns,
    .admin-stats,
    .admin-form {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        min-height: auto;
    }

    .admin-head,
    .admin-filters,
    .admin-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-inline-form {
        grid-template-columns: 1fr;
    }
}

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

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

    .site-search {
        width: 100%;
        min-width: 0;
    }

    .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,
    .blog-feature,
    .split-band,
    .detail-layout,
    .comments-layout {
        grid-template-columns: 1fr;
    }

    .blog-feature-image {
        min-height: 320px;
    }

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

    .video-grid,
    .article-grid,
    .blog-grid,
    .group-card-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,
    .blog-grid,
    .group-card-grid,
    .article-card {
        grid-template-columns: 1fr;
    }

    .blog-feature-image {
        min-height: 250px;
    }

    .blog-feature-copy {
        padding: 22px;
    }

    .blog-list-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .search-hero-form {
        grid-template-columns: 1fr;
    }

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