/* Minification failed. Returning unminified contents.
(354,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(355,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(356,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(357,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(358,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(359,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(360,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(361,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(362,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(363,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(364,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(367,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(368,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(369,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(370,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(371,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(372,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(376,14): run-time error CSS1030: Expected identifier, found '#content'
(376,30): run-time error CSS1031: Expected selector, found ')'
(376,30): run-time error CSS1025: Expected comma or open brace, found ')'
(394,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-navy'
(477,28): run-time error CSS1030: Expected identifier, found '#news-nav'
(477,37): run-time error CSS1031: Expected selector, found ')'
(477,37): run-time error CSS1025: Expected comma or open brace, found ')'
(483,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-orange'
(491,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-sm'
(534,17): run-time error CSS1039: Token not allowed after unary operator: '-fatri-orange'
(639,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-orange'
(666,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-navy'
(667,32): run-time error CSS1039: Token not allowed after unary operator: '-fatri-orange'
(688,17): run-time error CSS1039: Token not allowed after unary operator: '-fatri-orange'
(727,24): run-time error CSS1039: Token not allowed after unary operator: '-fatri-orange'
(736,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-orange'
(763,17): run-time error CSS1039: Token not allowed after unary operator: '-fatri-orange'
(781,17): run-time error CSS1039: Token not allowed after unary operator: '-fatri-navy'
(791,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-cream'
(797,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-orange'
(802,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-orange-deep'
(870,17): run-time error CSS1039: Token not allowed after unary operator: '-fatri-navy'
(984,17): run-time error CSS1039: Token not allowed after unary operator: '-fatri-navy'
(1000,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-orange'
(1009,17): run-time error CSS1039: Token not allowed after unary operator: '-fatri-navy'
(1029,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-orange'
(1059,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-cream'
(1067,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-ice'
(1082,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-md'
(1084,32): run-time error CSS1039: Token not allowed after unary operator: '-fatri-navy'
(1089,28): run-time error CSS1039: Token not allowed after unary operator: '-fatri-orange'
(1100,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-sm'
(1106,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-ice'
(1121,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-sm'
(1137,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-navy'
(1142,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-navy-mid'
(1147,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-orange'
(1152,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-orange-deep'
(1157,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-ice'
(1158,17): run-time error CSS1039: Token not allowed after unary operator: '-fatri-navy'
(1159,28): run-time error CSS1039: Token not allowed after unary operator: '-fatri-navy'
(1163,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-navy'
(1344,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-ice'
(1360,32): run-time error CSS1039: Token not allowed after unary operator: '-fatri-orange'
(1380,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-navy'
(1412,17): run-time error CSS1039: Token not allowed after unary operator: '-fatri-navy'
(1421,17): run-time error CSS1039: Token not allowed after unary operator: '-fatri-orange'
(1485,17): run-time error CSS1039: Token not allowed after unary operator: '-fatri-navy'
(1488,28): run-time error CSS1039: Token not allowed after unary operator: '-fatri-navy'
(1494,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-navy'
(1523,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-slate'
(1532,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-orange'
(1567,24): run-time error CSS1039: Token not allowed after unary operator: '-fatri-orange'
(1571,17): run-time error CSS1039: Token not allowed after unary operator: '-fatri-orange'
(1586,14): run-time error CSS1030: Expected identifier, found '#content'
(1586,30): run-time error CSS1031: Expected selector, found ')'
(1586,30): run-time error CSS1025: Expected comma or open brace, found ')'
(1593,14): run-time error CSS1030: Expected identifier, found '#content'
(1593,30): run-time error CSS1031: Expected selector, found ')'
(1593,30): run-time error CSS1025: Expected comma or open brace, found ')'
(1608,14): run-time error CSS1030: Expected identifier, found '#content'
(1608,30): run-time error CSS1031: Expected selector, found ')'
(1608,30): run-time error CSS1025: Expected comma or open brace, found ')'
(1620,14): run-time error CSS1030: Expected identifier, found '#content'
(1620,30): run-time error CSS1031: Expected selector, found ')'
(1620,30): run-time error CSS1025: Expected comma or open brace, found ')'
(1628,14): run-time error CSS1030: Expected identifier, found '#content'
(1628,30): run-time error CSS1031: Expected selector, found ')'
(1628,30): run-time error CSS1025: Expected comma or open brace, found ')'
(1636,14): run-time error CSS1030: Expected identifier, found '#content'
(1636,30): run-time error CSS1031: Expected selector, found ')'
(1636,30): run-time error CSS1025: Expected comma or open brace, found ')'
(1641,14): run-time error CSS1030: Expected identifier, found '#content'
(1641,30): run-time error CSS1031: Expected selector, found ')'
(1641,30): run-time error CSS1025: Expected comma or open brace, found ')'
(1690,32): run-time error CSS1030: Expected identifier, found '#news-nav'
(1690,41): run-time error CSS1031: Expected selector, found ')'
(1690,41): run-time error CSS1025: Expected comma or open brace, found ')'
(1782,32): run-time error CSS1039: Token not allowed after unary operator: '-fatri-navy'
(1823,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-md'
(1824,33): run-time error CSS1039: Token not allowed after unary operator: '-fatri-navy'
(1833,29): run-time error CSS1039: Token not allowed after unary operator: '-fatri-orange'
(1838,29): run-time error CSS1039: Token not allowed after unary operator: '-fatri-orange'
(1849,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-ice'
(1852,17): run-time error CSS1039: Token not allowed after unary operator: '-fatri-navy'
(1857,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-orange'
(1863,17): run-time error CSS1039: Token not allowed after unary operator: '-fatri-orange'
(1867,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-orange'
(1881,17): run-time error CSS1039: Token not allowed after unary operator: '-fatri-navy'
(1903,17): run-time error CSS1039: Token not allowed after unary operator: '-fatri-orange'
(1929,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-md'
(1945,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-md'
(1946,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-ice'
(1971,17): run-time error CSS1039: Token not allowed after unary operator: '-fatri-orange-warm'
(1988,17): run-time error CSS1039: Token not allowed after unary operator: '-fatri-navy'
(1996,17): run-time error CSS1039: Token not allowed after unary operator: '-fatri-orange'
(2005,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-navy'
 */
/* ============================================================
   HOMEPAGE STYLES
   ============================================================ */

/* ── Shared: Calendar/Results link buttons ──
   Used on Homepage, Calendario, Listado, Resultados pages */

.home-cal-links {
    margin-top: 0.8em;
}

.cal-link-btn {
    display: inline-block;
    padding: 0.6em 1.2em;
    border-radius: 4px;
    font-size: 0.95em;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.1s;
}

.cal-link-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.cal-link-proximas {
    background-color: #00addf;
    color: #fff;
}

.cal-link-proximas:hover {
    background-color: #0092be;
    color: #fff;
}

.cal-link-resultados {
    background-color: #e8740c;
    color: #fff;
}

.cal-link-resultados:hover {
    background-color: #c96200;
    color: #fff;
}

.cal-link-ical {
    background-color: #4a5568;
    color: #fff;
}

.cal-link-ical:hover {
    background-color: #2d3748;
    color: #fff;
}

/* ============================================================
   NEWS CAROUSEL — Base styles
   Scoped under #content.home (without version class)
   ============================================================ */

#content.home .home-news {
    margin: 0;
}

#content.home .news-wrapperv2 {
    overflow: hidden;
    display: flex;
    flex-direction: column-reverse;
    border-radius: 8px;
    background: #0d1b2e;
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
}

@media screen and (min-width: 701px) {
    #content.home .news-wrapperv2 {
        flex-direction: row;
        min-height: 400px;
    }
}

/* ── Navigation (sidebar list) ── */

#content.home .news-wrapperv2 #news-nav {
    flex: 1;
    min-width: 0;
}

#content.home .news-wrapperv2 #news-nav ul {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

#content.home .news-wrapperv2 #news-nav li {
    flex: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    position: relative;
    transition: background-color .25s ease;
}

#content.home .news-wrapperv2 #news-nav li:last-child {
    border-bottom: none;
}

#content.home .news-wrapperv2 #news-nav li a {
    color: rgba(255,255,255,.75);
    display: flex;
    align-items: center;
    padding: 0.7em 0.9em;
    gap: 0.7em;
    text-decoration: none;
    height: 100%;
    transition: color .2s ease;
}

#content.home .news-wrapperv2 #news-nav li a:hover {
    color: #fff;
    text-decoration: none;
}

#content.home .news-wrapperv2 #news-nav li a span {
    display: block;
    font-size: 0.85em;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

#content.home .news-wrapperv2 #news-nav li img {
    display: none;
}

@media screen and (min-width: 900px) {
    #content.home .news-wrapperv2 #news-nav li img {
        display: block;
        width: 60px;
        height: 42px;
        border-radius: 4px;
        object-fit: cover;
        flex-shrink: 0;
        opacity: .7;
        transition: opacity .2s ease;
    }

    #content.home .news-wrapperv2 #news-nav li:hover img,
    #content.home .news-wrapperv2 #news-nav li.active img {
        opacity: 1;
    }

    #content.home .news-wrapperv2 #news-nav li a span {
        font-size: 0.9em;
    }
}

/* Active state — orange left accent bar */
#content.home .news-wrapperv2 #news-nav li.active {
    background-color: rgba(255,255,255,.05);
}

#content.home .news-wrapperv2 #news-nav li.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #e64100;
    border-radius: 0 2px 2px 0;
}

#content.home .news-wrapperv2 #news-nav li.active a {
    color: #fff;
    font-weight: 600;
}

/* Progress bar on active item */
#content.home .news-wrapperv2 #news-nav li.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: #e64100;
    width: 0;
    animation: newsProgress 6s linear forwards;
}

@keyframes newsProgress {
    from { width: 0; }
    to { width: 100%; }
}

/* ── Featured News (main image area) ── */

#content.home .news-wrapperv2 #news-shown {
    position: relative;
    flex: 2.2;
    overflow: hidden;
    min-height: 260px;
}

#content.home .news-wrapperv2 #news-shown .image-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

#content.home .news-wrapperv2 #news-shown img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border: 0;
    transition: opacity .5s ease;
}

/* Dark gradient overlay for text readability */
#content.home .news-wrapperv2 #news-shown::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65%;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.3) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Text overlay */
#content.home .news-wrapperv2 #news-shown div.news-shown-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 1.2em 1.4em;
    display: flex;
    flex-direction: column;
    gap: 0.4em;
}

#content.home .news-wrapperv2 #news-shown div.news-shown-text span {
    display: inline-block;
}

/* Date badge */
#content.home .news-wrapperv2 #news-shown .date {
    background: #e64100;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.25em 0.6em;
    border-radius: 3px;
    align-self: flex-start;
}

/* Title */
#content.home .news-wrapperv2 #news-shown p.right {
    margin: 0;
}

#content.home .news-wrapperv2 #news-shown .title {
    display: block;
    background: none;
    padding: 0;
    border-radius: 0;
    font-weight: 700;
    text-align: left;
    line-height: 1.25;
}

#content.home .news-wrapperv2 #news-shown .title a,
#content.home .news-wrapperv2 #news-shown div span a {
    color: #fff;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
}

#content.home .news-wrapperv2 #news-shown div p a:hover {
    text-decoration: underline;
}

/* "Más info" link */
#content.home .news-wrapperv2 #news-shown .more {
    background: none;
    font-size: 0.75em;
    padding: 0;
    align-self: flex-start;
}

#content.home .news-wrapperv2 #news-shown .more a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color .2s ease;
}

#content.home .news-wrapperv2 #news-shown .more a:hover {
    color: #fff;
}

/* ── News carousel responsive ── */

@media screen and (max-width: 700px) {
    #content.home .news-wrapperv2 #news-nav {
        display: none;
    }

    #content.home .news-wrapperv2 #news-shown {
        min-height: 280px;
    }

    #content.home .news-wrapperv2 #news-shown .title {
        font-size: 1.15em;
    }
}

@media screen and (min-width: 701px) {
    #content.home .news-wrapperv2 #news-shown .title {
        font-size: 1.3em;
    }
}

@media screen and (min-width: 1100px) {
    #content.home .news-wrapperv2 #news-shown .title {
        font-size: 1.6em;
    }

    #content.home .news-wrapperv2 #news-shown div.news-shown-text {
        padding: 1.5em 2em;
    }
}

/* ============================================================
   HOMEPAGE V3 — "Athletic Edge"
   Scoped under #content.home.v3
   ============================================================ */

/* ── Design Tokens ── */
:root {
    --fatri-navy: #0b1d3a;
    --fatri-navy-mid: #142f5a;
    --fatri-orange: #ff4500;
    --fatri-orange-deep: #cc3700;
    --fatri-orange-warm: #e8740c;
    --fatri-cream: #faf8f5;
    --fatri-slate: #1e293b;
    --fatri-ice: #f0f4f8;
    --fatri-smoke: #f5f5f0;
    --radius-sm: 3px;
    --radius-md: 6px;

    /* Escolar (school) theme tokens */
    --escolar-primary: #2e8b57;
    --escolar-primary-dark: #236b43;
    --escolar-accent: #4ecdc4;
    --escolar-bg: #f0faf5;
    --escolar-bg-alt: #e6f5ec;
    --escolar-glow: rgba(46, 139, 87, 0.25);
}

/* ── Homepage wrapper overrides ── */
#wrapper:has(#content.home.v3) {
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}

#content.home.v3 {
    display: block;
    width: 100%;
}

/* ============================================================
   V3 1. HERO — Full-bleed cinematic news
   ============================================================ */

#content.home.v3 .hero {
    margin: 0 -1em;
    position: relative;
    background: var(--fatri-navy);
    overflow: hidden;
}

/* Override news wrapper styles for hero */
#content.home.v3 .hero .news-wrapperv2 {
    display: block;
    border-radius: 0;
    background: none;
    box-shadow: none;
    position: relative;
    min-height: 520px;
}

/* Featured image: full bleed */
#content.home.v3 .hero #news-shown {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 0;
    flex: none;
}

#content.home.v3 .hero #news-shown .image-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

#content.home.v3 .hero #news-shown img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border: 0;
    transition: opacity 0.6s ease;
    animation: heroZoom 12s ease-out forwards;
}

@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.04); }
}

/* Gradient overlay — cinematic dark bottom + navy tint */
#content.home.v3 .hero #news-shown::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80%;
    background: linear-gradient(
        to top,
        rgba(11, 29, 58, 0.92) 0%,
        rgba(11, 29, 58, 0.5) 40%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Text overlay — large, bold */
#content.home.v3 .hero #news-shown div.news-shown-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 2em 2em 2.5em;
    display: flex;
    flex-direction: column;
    gap: 0.6em;
    max-width: 700px;
}

/* Extra bottom padding when nav bar is present */
#content.home.v3 .hero:has(#news-nav) #news-shown div.news-shown-text {
    padding-bottom: 5.5em;
}

/* Date badge */
#content.home.v3 .hero #news-shown .date {
    background: var(--fatri-orange);
    color: #fff;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0.3em 0.8em;
    border-radius: var(--radius-sm);
    align-self: flex-start;
}

/* Title — big and bold */
#content.home.v3 .hero #news-shown .title {
    display: block;
    background: none;
    padding: 0;
    border-radius: 0;
    font-weight: 800;
    text-align: left;
    line-height: 1.15;
    font-family: 'Outfit', sans-serif;
}

#content.home.v3 .hero #news-shown .title a,
#content.home.v3 .hero #news-shown div span a {
    color: #fff;
    text-decoration: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#content.home.v3 .hero #news-shown .title a:hover {
    text-decoration: none;
    color: #fff;
}

#content.home.v3 .hero #news-shown p.right {
    margin: 0;
    float: none;
    text-align: left;
}

/* "Mas info" link */
#content.home.v3 .hero #news-shown .more {
    background: none;
    font-size: 0.8em;
    padding: 0;
    align-self: flex-start;
}

#content.home.v3 .hero #news-shown .more a {
    color: var(--fatri-orange);
    text-decoration: none;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85em;
    transition: color 0.2s ease;
}

#content.home.v3 .hero #news-shown .more a:hover {
    color: #fff;
    text-decoration: none;
}

/* Navigation: horizontal strip at the bottom of hero */
#content.home.v3 .hero #news-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    background: linear-gradient(to top, rgba(11, 29, 58, 0.95), rgba(11, 29, 58, 0.7));
    backdrop-filter: blur(6px);
}

#content.home.v3 .hero #news-nav ul {
    display: flex;
    flex-direction: row;
    margin: 0;
    padding: 0;
    height: auto;
}

#content.home.v3 .hero #news-nav li {
    flex: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    transition: background-color 0.25s ease;
}

#content.home.v3 .hero #news-nav li:last-child {
    border-right: none;
}

#content.home.v3 .hero #news-nav li a {
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    padding: 0.7em 1em;
    gap: 0.8em;
    text-decoration: none;
    height: 100%;
    transition: color 0.2s ease;
}

#content.home.v3 .hero #news-nav li a:hover {
    color: #fff;
    text-decoration: none;
}

#content.home.v3 .hero #news-nav li a span {
    display: block;
    font-size: 0.85em;
    line-height: 1.35;
    font-family: 'DM Sans', sans-serif;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#content.home.v3 .hero #news-nav li img {
    display: block;
    width: 60px;
    height: 40px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

#content.home.v3 .hero #news-nav li:hover img,
#content.home.v3 .hero #news-nav li.active img {
    opacity: 1;
}

/* Active nav item */
#content.home.v3 .hero #news-nav li.active {
    background: rgba(255, 255, 255, 0.08);
}

#content.home.v3 .hero #news-nav li.active::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: var(--fatri-orange);
    border-radius: 0;
}

#content.home.v3 .hero #news-nav li.active a {
    color: #fff;
    font-weight: 600;
}

/* Progress bar on active */
#content.home.v3 .hero #news-nav li.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    width: 0;
    animation: newsProgress 6s linear forwards;
}

/* ============================================================
   V3 2. RACE STRIP — Accent bar with next competition
   ============================================================ */

#content.home.v3 .race-strip {
    margin: 0 -1em;
    background: var(--fatri-navy);
    border-top: 4px solid var(--fatri-orange);
    padding: 1em 2.5em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5em;
}

#content.home.v3 .race-strip .strip-left {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
    flex-shrink: 0;
}

#content.home.v3 .race-strip .strip-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--fatri-orange);
}

#content.home.v3 .race-strip .strip-tipo {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
}

#content.home.v3 .race-strip .strip-center {
    display: flex;
    align-items: center;
    gap: 1.2em;
    flex: 1;
    min-width: 0;
    justify-content: center;
}

#content.home.v3 .race-strip .strip-race {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1em;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#content.home.v3 .race-strip .strip-race a {
    color: #fff;
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.2s;
}

#content.home.v3 .race-strip .strip-race a:hover {
    border-color: var(--fatri-orange);
    text-decoration: none;
}

#content.home.v3 .race-strip .strip-date {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9em;
    color: #fff;
    background: var(--fatri-orange);
    padding: 0.35em 0.9em;
    border-radius: 2px;
    white-space: nowrap;
    flex-shrink: 0;
}

#content.home.v3 .race-strip .strip-right {
    display: flex;
    align-items: center;
    gap: 1.2em;
    flex-shrink: 0;
}

#content.home.v3 .race-strip .strip-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    padding-right: 1.2em;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

#content.home.v3 .race-strip .strip-countdown-num {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.6em;
    color: var(--fatri-orange);
}

#content.home.v3 .race-strip .strip-countdown-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.65em;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.5);
}

#content.home.v3 .race-strip .strip-cta {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fatri-navy);
    background: #fff;
    padding: 0.55em 1.5em;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

#content.home.v3 .race-strip .strip-cta:hover {
    background: var(--fatri-cream);
    transform: translateY(-1px);
    text-decoration: none;
}

#content.home.v3 .race-strip .strip-cta-inscripcion {
    background: var(--fatri-orange);
    color: #fff;
}

#content.home.v3 .race-strip .strip-cta-inscripcion:hover {
    background: var(--fatri-orange-deep);
}

/* ============================================================
   V3 2b. CAMPEONATO BANNER — Prominent championship highlight
   ============================================================ */

#content.home.v3 .campeonato-banner {
    margin: 0 -1em;
    background: linear-gradient(135deg, #fdf6e3 0%, #fefaf0 100%);
    border-left: 6px solid #b8860b;
    padding: 2em 2.5em;
}

#content.home.v3 .campeonato-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
}

#content.home.v3 .campeonato-banner-header {
    margin-bottom: 1.2em;
}

#content.home.v3 .campeonato-banner-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5em;
    color: #b8860b;
    letter-spacing: -0.01em;
}

#content.home.v3 .campeonato-banner-content {
    display: flex;
    gap: 2.5em;
    align-items: flex-start;
}

#content.home.v3 .campeonato-banner-img-link {
    flex-shrink: 0;
    display: block;
    width: 420px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s, box-shadow 0.2s;
}

#content.home.v3 .campeonato-banner-img-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

#content.home.v3 .campeonato-banner-img {
    display: block;
    width: 100%;
    height: auto;
}

#content.home.v3 .campeonato-banner-details {
    flex: 1;
    min-width: 0;
    padding-top: 0.3em;
}

#content.home.v3 .campeonato-banner-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.6em;
    color: var(--fatri-navy);
    margin: 0 0 0.7em;
    line-height: 1.2;
}

#content.home.v3 .campeonato-banner-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

#content.home.v3 .campeonato-banner-title a:hover {
    color: #b8860b;
    text-decoration: none;
}

#content.home.v3 .campeonato-banner-meta {
    margin-bottom: 1.2em;
}

#content.home.v3 .campeonato-banner-meta-row {
    padding: 0.35em 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05em;
    color: #333;
}

#content.home.v3 .campeonato-banner-meta-label {
    font-weight: 700;
    margin-right: 0.4em;
}

#content.home.v3 .campeonato-banner-meta-value {
    font-weight: 400;
}

#content.home.v3 .campeonato-banner-countdown {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4em;
    margin-bottom: 1.4em;
    padding: 0.5em 1em;
    background: rgba(184, 134, 11, 0.08);
    border-radius: 4px;
}

#content.home.v3 .campeonato-banner-countdown-num {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2em;
    color: #b8860b;
    line-height: 1;
}

#content.home.v3 .campeonato-banner-countdown-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.95em;
    color: #b8860b;
}

#content.home.v3 .campeonato-banner-cta {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: #b8860b;
    padding: 0.7em 2em;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

#content.home.v3 .campeonato-banner-cta:hover {
    background: #996f09;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Campeonato banner responsive */
@media (max-width: 768px) {
    #content.home.v3 .campeonato-banner {
        padding: 1.5em 1.2em;
    }

    #content.home.v3 .campeonato-banner-label {
        font-size: 1.15em;
    }

    #content.home.v3 .campeonato-banner-content {
        flex-direction: column;
        gap: 1.2em;
    }

    #content.home.v3 .campeonato-banner-img-link {
        width: 100%;
    }

    #content.home.v3 .campeonato-banner-title {
        font-size: 1.25em;
    }
}

/* ============================================================
   V3 3. SECTION HEADINGS
   ============================================================ */

#content.home.v3 .section-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.6em;
    color: var(--fatri-navy);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin: 0 0 0.8em;
    padding-bottom: 0.4em;
    position: relative;
    display: inline-block;
}

#content.home.v3 .section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--fatri-orange);
    border-radius: 2px;
}

/* h4 overrides within v3 */
#content.home.v3 h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.6em;
    color: var(--fatri-navy);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin: 0 0 0.8em;
    padding: 0 0 0.4em;
    position: relative;
    display: inline-block;
    background: none;
    background-color: transparent;
    border-radius: 0;
    line-height: 1.2;
}

#content.home.v3 h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--fatri-orange);
    border-radius: 2px;
}

/* month-header within v3 — keep subdued */
#content.home.v3 h4.month-header {
    font-size: 0.85em;
    font-weight: 700;
    color: #888;
    letter-spacing: 0.06em;
    padding: 0 0 0.3em 0;
    border-bottom: 1px solid #e0e0e0;
    margin: 1.5em 0 0.5em;
    display: block;
}

#content.home.v3 h4.month-header::after {
    display: none;
}

/* ============================================================
   V3 4. CONTENT BLOCKS
   ============================================================ */

#content.home.v3 .home-block {
    margin: 0 -1em;
    padding: 3em 1.5em;
}

#content.home.v3 .home-block.bg-cream {
    background: var(--fatri-cream);
}

#content.home.v3 .home-block.bg-white {
    background: #fff;
}

#content.home.v3 .home-block.bg-ice {
    background: var(--fatri-ice);
}

/* ============================================================
   V3 5. DUAL CARDS — Competitions + Results
   ============================================================ */

#content.home.v3 .dual-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
}

#content.home.v3 .dual-cards .card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.5em;
    border-top: 4px solid var(--fatri-navy);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

#content.home.v3 .dual-cards .card.card-results {
    border-top-color: var(--fatri-orange);
}

#content.home.v3 .dual-cards .card h4 {
    margin-bottom: 1em;
}

/* Competition items inside v3 cards */
#content.home.v3 .card .competicion-item {
    padding: 0.6em 0.5em;
    margin-bottom: 0.3em;
    border-radius: var(--radius-sm);
    background: none;
    gap: 3%;
}

#content.home.v3 .card .competicion-item:nth-child(odd) {
    background: var(--fatri-ice);
}

#content.home.v3 .card .competicion-item:hover {
    background: #e8edf3;
}

/* CTA buttons */
#content.home.v3 .home-cal-links {
    margin-top: 1.2em;
}

#content.home.v3 .cal-link-btn {
    display: inline-block;
    padding: 0.6em 1.4em;
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85em;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background-color 0.2s, transform 0.15s;
}

#content.home.v3 .cal-link-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

#content.home.v3 .cal-link-proximas {
    background: var(--fatri-navy);
    color: #fff;
}

#content.home.v3 .cal-link-proximas:hover {
    background: var(--fatri-navy-mid);
    color: #fff;
}

#content.home.v3 .cal-link-resultados {
    background: var(--fatri-orange);
    color: #fff;
}

#content.home.v3 .cal-link-resultados:hover {
    background: var(--fatri-orange-deep);
    color: #fff;
}

#content.home.v3 .cal-link-ical {
    background: var(--fatri-ice, #e8edf3);
    color: var(--fatri-navy, #0b1d3a);
    border: 1px solid var(--fatri-navy, #0b1d3a);
}

#content.home.v3 .cal-link-ical:hover {
    background: var(--fatri-navy, #0b1d3a);
    color: #fff;
}

/* ── iCal Modal ── */

.ical-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 29, 58, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.ical-modal-overlay.active {
    display: flex;
}

.ical-modal {
    background: #fff;
    border-radius: 10px;
    padding: 2.2em 2.5em;
    max-width: 520px;
    width: 90%;
    position: relative;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    font-family: 'DM Sans', sans-serif;
}

.ical-modal-close {
    position: absolute;
    top: 0.6em;
    right: 0.8em;
    background: none;
    border: none;
    font-size: 1.6em;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.ical-modal-close:hover {
    color: #333;
}

.ical-modal-icon {
    font-size: 2.2em;
    margin-bottom: 0.3em;
}

.ical-modal h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3em;
    margin: 0 0 0.4em 0;
    color: #0b1d3a;
}

.ical-modal p {
    font-size: 0.92em;
    color: #555;
    margin: 0 0 1em 0;
    line-height: 1.5;
}

.ical-modal-url {
    display: flex;
    align-items: center;
    gap: 0.6em;
    background: #f0f4f8;
    border: 1px solid #d0d8e2;
    border-radius: 6px;
    padding: 0.6em 0.8em;
    margin-bottom: 1em;
}

.ical-modal-url code {
    flex: 1;
    font-size: 0.85em;
    word-break: break-all;
    color: #0b1d3a;
}

.ical-modal .ical-copy-btn {
    background: #0b1d3a;
    color: #fff;
    border: none;
    padding: 0.4em 1em;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    white-space: nowrap;
    transition: background 0.2s;
}

.ical-modal .ical-copy-btn:hover {
    background: #142f5a;
}

.ical-modal ol {
    margin: 0 0 0.8em 1.2em;
    padding: 0;
    font-size: 0.88em;
    line-height: 1.7;
    color: #444;
}

.ical-modal-note {
    font-size: 0.82em;
    color: #888;
    margin: 0;
}

@media (max-width: 480px) {
    .ical-modal {
        padding: 1.5em 1.3em;
    }

    .ical-modal-url {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ============================================================
   V3 6. EVENTS — Card showcase
   ============================================================ */

#content.home.v3 .events-block {
    padding-top: 3em;
    padding-bottom: 3em;
}

#content.home.v3 .events-block .events {
    background: none;
    clear: none;
}

#content.home.v3 .events-block .events-subtitle {
    color: #6b7280;
    font-size: 1.05em;
    margin: -0.5em 0 2em 0;
    font-family: 'DM Sans', sans-serif;
}

/* Card grid */
#content.home.v3 .events-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
}

/* Individual card */
#content.home.v3 .event-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

#content.home.v3 .event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
    text-decoration: none;
}

/* Card image */
#content.home.v3 .event-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--fatri-ice, #f0f4f8);
}

#content.home.v3 .event-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

#content.home.v3 .event-card:hover .event-card__image img {
    transform: scale(1.05);
}

/* No-image variant: colored top accent */
#content.home.v3 .event-card--no-image {
    border-top: 4px solid var(--fatri-orange);
}

/* Card body */
#content.home.v3 .event-card__body {
    display: flex;
    gap: 1em;
    padding: 1.2em;
    flex: 1;
}

/* Date badge */
#content.home.v3 .event-card__date-badge {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--fatri-navy, #0b1d3a);
    color: #fff;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

#content.home.v3 .event-card__day {
    font-size: 1.4em;
    font-weight: 800;
}

#content.home.v3 .event-card__month {
    font-size: 0.65em;
    font-weight: 600;
    letter-spacing: 0.08em;
    opacity: 0.85;
    margin-top: 2px;
}

/* Card details */
#content.home.v3 .event-card__details {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

#content.home.v3 .event-card__title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1em;
    color: var(--fatri-navy, #0b1d3a);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#content.home.v3 .event-card:hover .event-card__title {
    color: var(--fatri-orange, #ff4500);
}

#content.home.v3 .event-card__location {
    font-size: 0.85em;
    color: #6b7280;
    margin-top: 0.3em;
    font-family: 'DM Sans', sans-serif;
}

#content.home.v3 .event-card__pin {
    font-size: 0.9em;
}

/* Footer row */
#content.home.v3 .event-card__footer {
    display: flex;
    align-items: center;
    gap: 0.8em;
    margin-top: auto;
    padding-top: 0.6em;
    flex-wrap: wrap;
}

#content.home.v3 .event-card__countdown {
    font-size: 0.78em;
    color: #9ca3af;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
}

#content.home.v3 .event-card__countdown--today {
    color: #b45309;
    font-weight: 600;
}

#content.home.v3 .event-card__countdown--soon {
    color: #a16207;
    font-weight: 500;
}

#content.home.v3 .event-card__register {
    font-size: 0.72em;
    font-weight: 600;
    color: #16a34a;
    background: #f0fdf4;
    padding: 0.2em 0.6em;
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* See all events link */
#content.home.v3 .events-see-all {
    text-align: center;
    margin-top: 2em;
}

#content.home.v3 .events-see-all-link {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95em;
    color: var(--fatri-navy, #0b1d3a);
    text-decoration: none;
    padding: 0.7em 2em;
    border: 2px solid var(--fatri-navy, #0b1d3a);
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

#content.home.v3 .events-see-all-link:hover {
    background: var(--fatri-navy, #0b1d3a);
    color: #fff;
    text-decoration: none;
}

/* Responsive: 2 columns on tablet */
@media (max-width: 900px) {
    #content.home.v3 .events-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive: 1 column on mobile */
@media (max-width: 600px) {
    #content.home.v3 .events-cards {
        grid-template-columns: 1fr;
    }

    #content.home.v3 .event-card__body {
        padding: 1em;
    }
}

/* ============================================================
   V3 7. VIDEO THEATER — Dark cinematic section
   ============================================================ */

#content.home.v3 .video-theater {
    margin: 0 -1em;
    background: var(--fatri-slate);
    padding: 3em 1.5em;
}

#content.home.v3 .video-theater h4 {
    color: #fff;
}

#content.home.v3 .video-theater h4::after {
    background: var(--fatri-orange);
}

#content.home.v3 .video-theater #video-section {
    margin: 0;
    background: none;
    border: none;
    padding: 0;
}

/* Featured video title in dark section */
#content.home.v3 .video-theater .video-featured-title {
    font-family: 'Outfit', sans-serif;
}

/* Thumbnail titles in dark section */
#content.home.v3 .video-theater .video-thumb-title {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    font-family: 'DM Sans', sans-serif;
}

#content.home.v3 .video-theater #video-nav li.active .video-thumb-title {
    color: #fff;
}

#content.home.v3 .video-theater #video-nav a.video_link {
    border-color: rgba(255, 255, 255, 0.1);
}

#content.home.v3 .video-theater #video-nav a.video_link:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

#content.home.v3 .video-theater #video-nav li.active a.video_link {
    border-color: var(--fatri-orange);
}

#content.home.v3 .video-theater .more-videos a {
    color: var(--fatri-orange);
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#content.home.v3 .video-theater .more-videos a:hover {
    color: #fff;
}

/* ============================================================
   V3 8. SPONSORS
   ============================================================ */

/* sponsors-section is in bottomContent (outside #content), use :has() for scoping */
#wrapper:has(#content.home.v3) .sponsors-section {
    margin: 0 -1em;
    padding: 2.5em 1.5em;
    background: var(--fatri-cream);
    text-align: center;
}

#wrapper:has(#content.home.v3) .sponsors-section h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.6em;
    color: var(--fatri-navy);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin: 0 0 0.8em;
    padding: 0 0 0.4em;
    position: relative;
    display: inline-block;
    background: none;
    line-height: 1.2;
}

#wrapper:has(#content.home.v3) .sponsors-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--fatri-orange);
    border-radius: 2px;
}

#wrapper:has(#content.home.v3) .sponsors-section .sponsors {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2em;
}

#wrapper:has(#content.home.v3) .sponsors-section .sponsors a {
    margin: 0;
    padding: 0.5em;
    opacity: 0.5;
    transition: opacity 0.3s;
    filter: grayscale(100%);
}

#wrapper:has(#content.home.v3) .sponsors-section .sponsors a:hover {
    opacity: 1;
    filter: none;
}

#wrapper:has(#content.home.v3) .sponsors-section .sponsors a img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* ============================================================
   V3 9. RESPONSIVE
   ============================================================ */

/* Hero responsive */
@media screen and (max-width: 700px) {
    #content.home.v3 .hero .news-wrapperv2 {
        min-height: 380px;
    }

    #content.home.v3 .hero #news-nav {
        display: none;
    }

    #content.home.v3 .hero #news-shown div.news-shown-text {
        padding: 1.5em 1.2em 2em;
    }

    #content.home.v3 .hero #news-shown .title {
        font-size: 1.3em;
    }
}

@media screen and (min-width: 701px) {
    #content.home.v3 .hero #news-shown .title {
        font-size: 1.8em;
    }
}

@media screen and (min-width: 1100px) {
    #content.home.v3 .hero .news-wrapperv2 {
        min-height: 560px;
    }

    #content.home.v3 .hero #news-shown .title {
        font-size: 2.4em;
    }

    #content.home.v3 .hero #news-shown div.news-shown-text {
        padding: 2em 3em 3em;
        max-width: 800px;
    }

    #content.home.v3 .hero:has(#news-nav) #news-shown div.news-shown-text {
        padding-bottom: 6em;
    }
}

/* Race strip — compact on mobile */
@media screen and (max-width: 600px) {
    #content.home.v3 .race-strip {
        flex-wrap: wrap;
        padding: 0.8em 1em;
        gap: 0.6em;
    }

    #content.home.v3 .race-strip .strip-left {
        flex-direction: row;
        align-items: center;
        gap: 0.6em;
        width: 100%;
    }

    #content.home.v3 .race-strip .strip-center {
        width: 100%;
        justify-content: flex-start;
        gap: 0.8em;
    }

    #content.home.v3 .race-strip .strip-race {
        font-size: 0.95em;
    }

    #content.home.v3 .race-strip .strip-right {
        width: 100%;
        justify-content: space-between;
    }

    #content.home.v3 .race-strip .strip-countdown {
        flex-direction: row;
        gap: 0.4em;
        padding-right: 0;
        border-right: none;
    }

    #content.home.v3 .race-strip .strip-countdown-num {
        font-size: 1.1em;
    }

    #content.home.v3 .race-strip .strip-cta {
        flex: 1;
        text-align: center;
    }
}

/* Dual cards responsive */
@media screen and (max-width: 900px) {
    #content.home.v3 .dual-cards {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }
}

/* Events responsive */
@media screen and (max-width: 600px) {
    #content.home.v3 .events-block .events ul::before {
        display: none;
    }

    #content.home.v3 .events-block .events ul li {
        flex-direction: column;
        gap: 0.5em;
    }

    #content.home.v3 .events-block .events ul li .date {
        flex-direction: row;
        display: inline-flex;
        align-items: center;
        gap: 0.3em;
        width: auto;
        padding: 0.3em 0.8em;
    }

    #content.home.v3 .events-block .events ul li .date .day {
        font-size: 1em;
    }
}

/* Video theater responsive */
@media screen and (max-width: 768px) {
    #content.home.v3 .video-theater {
        padding: 2em 1em;
    }

    #content.home.v3 .video-theater .more-videos {
        background-color: var(--fatri-navy);
    }

    #content.home.v3 .video-theater .more-videos a {
        color: #fff;
    }
}

/* Section headings responsive */
@media screen and (max-width: 768px) {
    #content.home.v3 h4 {
        font-size: 1.3em;
    }

    #content.home.v3 .home-block {
        padding: 2em 1em;
    }
}

/* ============================================================
   V3 10. QUICK LINKS — Callout cards section
   ============================================================ */

#content.home.v3 .quicklinks-section {
    padding: 3em 1.5em;
}

#content.home.v3 .quicklinks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
    max-width: 900px;
    margin: 0 auto;
}

#content.home.v3 .quicklink-card {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 1.4em 1.5em;
    background: #fff;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--fatri-navy);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

#content.home.v3 .quicklink-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-left-color: var(--fatri-orange);
    text-decoration: none;
}

#content.home.v3 .quicklink-card-accent {
    border-left-color: var(--fatri-orange);
    background: linear-gradient(135deg, #fff 80%, rgba(255, 69, 0, 0.04) 100%);
}

#content.home.v3 .quicklink-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fatri-ice);
    border-radius: 50%;
    font-size: 1.3em;
    color: var(--fatri-navy);
    transition: background 0.2s, color 0.2s;
}

#content.home.v3 .quicklink-card:hover .quicklink-icon {
    background: var(--fatri-orange);
    color: #fff;
}

#content.home.v3 .quicklink-card-accent .quicklink-icon {
    background: rgba(255, 69, 0, 0.1);
    color: var(--fatri-orange);
}

#content.home.v3 .quicklink-card-accent:hover .quicklink-icon {
    background: var(--fatri-orange);
    color: #fff;
}

#content.home.v3 .quicklink-text {
    flex: 1;
    min-width: 0;
}

#content.home.v3 .quicklink-title {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.05em;
    color: var(--fatri-navy);
    line-height: 1.25;
    margin-bottom: 0.25em;
}

#content.home.v3 .quicklink-desc {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85em;
    color: #5a6a7a;
    line-height: 1.4;
}

#content.home.v3 .quicklink-arrow {
    flex-shrink: 0;
    font-size: 1.3em;
    color: rgba(11, 29, 58, 0.2);
    font-weight: 700;
    transition: color 0.2s, transform 0.2s;
}

#content.home.v3 .quicklink-card:hover .quicklink-arrow {
    color: var(--fatri-orange);
    transform: translateX(3px);
}

/* ============================================================
   V3 11. FEATURED NEWS — Highlighted news cards below hero
   ============================================================ */

#content.home.v3 .featured-news {
    margin: 0 -1em;
    padding: 2.5em 1.5em;
    background: #fff;
}

#content.home.v3 .featured-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5em;
    max-width: 1100px;
    margin: 0 auto;
}

#content.home.v3 .featured-news-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md);
    overflow: hidden;
    padding: 0.5em;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

#content.home.v3 .featured-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
    text-decoration: none;
}

#content.home.v3 .featured-news-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--fatri-ice);
}

#content.home.v3 .featured-news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    transition: transform 0.3s ease;
}

#content.home.v3 .featured-news-card:hover .featured-news-img img {
    transform: scale(1.04);
}

#content.home.v3 .featured-news-body {
    padding: 0.9em 0.5em 0.6em;
    display: flex;
    flex-direction: column;
    gap: 0.3em;
}

#content.home.v3 .featured-news-date {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1em;
    color: var(--fatri-orange-warm);
    font-weight: 600;
    text-transform: uppercase;
}

#content.home.v3 .featured-news-ago {
    color: #8b8178;
    font-weight: 400;
    text-transform: none;
    font-size: 0.8em;
}

#content.home.v3 .featured-news-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1em;
    line-height: 1.3;
    color: var(--fatri-navy);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#content.home.v3 .featured-news-card:hover .featured-news-title {
    color: var(--fatri-orange);
}

#content.home.v3 .featured-news-more {
    text-align: center;
    padding: 0.5em 1.5em 1.5em;
}

.cal-link-noticias {
    background: var(--fatri-navy, #1d4977);
    color: #fff;
}

.cal-link-noticias:hover {
    background: #163a5f;
    color: #fff;
}

/* Featured news responsive */
@media screen and (max-width: 900px) {
    #content.home.v3 .featured-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 500px) {
    #content.home.v3 .featured-news-grid {
        grid-template-columns: 1fr;
        gap: 1.2em;
    }

    #content.home.v3 .featured-news-card {
        flex-direction: row;
        gap: 0.8em;
    }

    #content.home.v3 .featured-news-img {
        width: 130px;
        flex-shrink: 0;
        aspect-ratio: 3 / 2;
    }

    #content.home.v3 .featured-news-body {
        padding: 0.2em 0;
        justify-content: center;
    }

    #content.home.v3 .featured-news-title {
        -webkit-line-clamp: 2;
    }
}

/* Quick links responsive */
@media screen and (max-width: 700px) {
    #content.home.v3 .quicklinks-grid {
        grid-template-columns: 1fr;
    }

    #content.home.v3 .quicklink-card {
        padding: 1.1em 1.2em;
    }

    #content.home.v3 .quicklink-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1em;
    }

    #content.home.v3 .quicklink-title {
        font-size: 0.95em;
    }

    #content.home.v3 .quicklink-desc {
        font-size: 0.8em;
    }
}

/* =============================================
   Homepage video section
   ============================================= */

#video-section {
    margin: 0;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
}


/* --- Side-by-side layout --- */
.video-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* --- Featured video (lazy-load) --- */
#video-shown {
    flex: 1 1 55%;
    min-width: 0;
}

.video-lazy {
    position: relative;
    cursor: pointer;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
}

.video-lazy img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-lazy .video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer;
    line-height: 68px;
    text-align: center;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.video-lazy:hover .video-play-btn {
    background: rgba(200, 0, 0, 0.85);
    transform: translate(-50%, -50%) scale(1.08);
}

.video-featured-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 14px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #fff;
    font-size: 1em;
    font-weight: bold;
    line-height: 1.3;
}

/* --- Iframe wrapper (after click) --- */
.video-iframe-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
}

.video-iframe-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Thumbnail sidebar --- */
#video-nav {
    flex: 0 0 32%;
    max-height: 400px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#video-nav ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#video-nav li {
    background: none;
    height: auto;
    overflow: visible;
    padding: 0;
}

#video-nav a.video_link {
    display: block;
    text-decoration: none;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.15s;
    position: relative;
}

#video-nav a.video_link::after {
    content: "\25B6";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    font-size: 12px;
    line-height: 32px;
    text-align: center;
    pointer-events: none;
    transition: background 0.2s;
    margin-top: -12px;
}

#video-nav a.video_link:hover::after {
    background: rgba(200, 0, 0, 0.8);
}

#video-nav a.video_link:hover {
    border-color: #1d4977;
}

#video-nav li.active a.video_link {
    border-color: #e56c2e;
}

#video-nav a.video_link img,
#video-nav li img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border: none;
    border-radius: 0;
}

.video-thumb-title {
    display: block;
    padding: 6px 8px;
    font-size: 0.8em;
    color: #333;
    line-height: 1.3;
    background: #fff;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#video-nav li.active .video-thumb-title {
    color: #1d4977;
    font-weight: bold;
}

/* --- "Ver todos" link --- */
.more-videos {
    margin-top: 10px;
    text-align: right;
}

.more-videos a {
    color: #1d4977;
    font-size: 0.9em;
    font-weight: bold;
    text-decoration: none;
}

.more-videos a:hover {
    text-decoration: underline;
}

/* =============================================
   Video list page (/Videos)
   ============================================= */

/* --- Year filter bar --- */
#video-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.video-filter-btn {
    padding: 6px 14px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    color: #333;
    font-size: 0.9em;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.video-filter-btn:hover {
    border-color: #1d4977;
    color: #1d4977;
}

.video-filter-btn.active {
    background: #1d4977;
    border-color: #1d4977;
    color: #fff;
}

#videos-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

#videos-list div.video-container {
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
}

#videos-list .video-container a {
    display: block;
}

#videos-list .video-container img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

#videos-list .video-container .video-info {
    padding: 10px 12px;
}

#videos-list .video-container span.video-title {
    font-weight: bold;
}

#videos-list .video-container span.video-date {
    font-style: italic;
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 4px;
}

/* =============================================
   Mobile
   ============================================= */
@media screen and (max-width: 768px) {
    #video-section {
        padding: 0;
    }

    .video-layout {
        flex-direction: column;
    }

    #video-shown {
        flex: none;
        width: 100%;
    }

    /* Hide the thumbnail sidebar on mobile — just show featured video */
    #video-nav {
        display: none;
    }

    .more-videos {
        background-color: #142f5a;
        margin-top: 12px;
        padding: 10px;
        border-radius: 3px;
        text-align: center;
    }

    .more-videos a {
        color: white;
        font-size: 1em;
        text-transform: uppercase;
    }

    .more-videos a:hover {
        color: white;
    }

    /* Videos list page — single column on mobile */
    #videos-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
