@font-face {
    font-family: Fraunces;
    src: url("../assets/fonts/fraunces.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Outfit;
    src: url("../assets/fonts/outfit.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --paper: #fff6e8;
    --paper-2: #fffdf8;
    --ink: #1a120c;
    --ink-soft: #4a3b32;
    --muted: #5c4a3e;
    --line: rgba(26, 18, 12, 0.12);
    --sun: #fcd116;
    --sun-deep: #c99208;
    --blue: #003893;
    --red: #ce1126;
    --coffee: #24160f;
    --shadow: 0 18px 50px rgba(48, 24, 8, 0.12);
    --sans: Outfit, "Segoe UI", sans-serif;
    --serif: Fraunces, "Iowan Old Style", Palatino, "Palatino Linotype", serif;
    --header: 74px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    text-wrap: pretty;
}

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

a { color: inherit; }

button, summary { font: inherit; }

::selection {
    background: var(--sun);
    color: var(--ink);
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

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

.skip:focus {
    position: fixed;
    left: 12px;
    top: 12px;
    z-index: 80;
    width: auto;
    height: auto;
    margin: 0;
    padding: 8px 12px;
    overflow: visible;
    clip: auto;
    white-space: normal;
    border-radius: 8px;
    background: var(--ink);
    color: var(--paper);
}

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

.wrap {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 246, 232, 0.9);
    backdrop-filter: blur(16px);
}

.site-header.is-stuck { box-shadow: 0 10px 30px rgba(48, 24, 8, 0.06); }

.site-header::after {
    content: "";
    display: block;
    height: 6px;
    background: linear-gradient(#fcd116 0 50%, #003893 50% 75%, #ce1126 75% 100%);
}

.header-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
    text-decoration: none;
}

.brand img {
    width: 36px;
    height: 36px;
    flex: none;
}

.brand span { min-width: 0; }

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

.brand strong {
    font-size: 16px;
    letter-spacing: -0.03em;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.01em;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper-2);
    cursor: pointer;
}

.nav-toggle-bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 18px;
}

.nav-toggle-bars span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: 8px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.site-nav.is-open { display: flex; flex-direction: column; }

.site-nav a {
    text-decoration: none;
    font-weight: 650;
    padding: 12px 12px;
    border-radius: 10px;
}

.site-nav a:hover { background: rgba(252, 209, 22, 0.28); }

.header-bar > .header-cta { display: none; }

.nav-dl {
    background: var(--sun);
    text-align: center;
}

.hero { padding: 28px 0 8px; }

.hero-grid { display: grid; gap: 8px; }

.kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8c1d2b;
}

.kicker-light { color: #ffd0a8; justify-content: center; }

.live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 0 rgba(206, 18, 38, 0.55);
    animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
    70% { box-shadow: 0 0 0 8px rgba(206, 18, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(206, 18, 38, 0); }
}

h1, h2, .day time, .num {
    font-family: var(--serif);
    font-weight: 560;
    letter-spacing: -0.03em;
}

h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 8vw, 72px);
    line-height: 1.02;
}

.mark {
    background-image: linear-gradient(var(--sun), var(--sun));
    background-repeat: no-repeat;
    background-position: 0 88%;
    background-size: 100% 0.36em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.lede, .section-intro {
    margin: 0;
    color: var(--ink-soft);
    font-size: 17.5px;
    max-width: 62ch;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    cursor: pointer;
}

.btn-lg {
    min-height: 54px;
    padding: 14px 22px;
    font-size: 18px;
}

.btn-sm {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 14.5px;
}

.btn-sun {
    background: var(--sun);
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 20px rgba(201, 146, 8, 0.28);
}

.btn-sun:hover { background: #ffd84a; }

.btn-sun:active { transform: translateY(1px); }

.chip {
    display: inline-block;
    margin: 16px 0 0;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(26, 18, 12, 0.05);
    color: var(--ink-soft);
    font-size: 13.5px;
    font-weight: 650;
}

.hero-visual { margin-top: 22px; }

.hero-visual img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.parrilla {
    position: relative;
    width: min(100%, 520px);
    margin: -32px 0 0 auto;
    padding: 14px 14px 6px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

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

.parrilla ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.parrilla li {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 10px;
    align-items: center;
    padding: 9px 0;
    border-top: 1px solid var(--line);
}

.parrilla strong,
.parrilla em { display: block; }

.parrilla strong { font-size: 15.5px; line-height: 1.2; }

.parrilla em {
    font-style: normal;
    color: var(--muted);
    font-size: 13px;
}

.tag {
    justify-self: start;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 56, 147, 0.08);
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.tag-live {
    background: var(--red);
    color: #fff;
}

.trust-wrap { padding: 28px 0 8px; }

.trust {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.trust li {
    padding: 14px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.trust strong,
.trust span { display: block; }

.trust strong { font-size: 15.5px; letter-spacing: -0.02em; }

.trust span { color: var(--muted); font-size: 13.5px; }

.section { padding: 56px 0 8px; }

.section h2 {
    margin: 0 0 10px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.08;
}

.section-intro { margin-bottom: 22px; }

.genre-scroller {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    margin-inline: -4px;
    scrollbar-width: thin;
}

.genre-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
    padding: 18px 18px 20px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 20px;
}

.genre-card h3,
.feature h3,
.steps h3,
.tv-box h3 {
    margin: 0 0 6px;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.genre-card p,
.feature p,
.steps p,
.tv-box p,
.faq p,
.aside-line,
.close p,
.note,
.site-footer p {
    margin: 0;
    color: var(--ink-soft);
}

.ico {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 14px;
}

.ico-futbol { background: #e5f6ea; color: #0e7a3a; }
.ico-novela { background: #fde8ea; color: #a31228; }
.ico-noticias { background: #e7eefb; color: var(--blue); }
.ico-musica { background: #e5f6f4; color: #0c6e68; }
.ico-humor { background: #fff3c4; color: #8a5a00; }
.ico-infantil { background: #ffefe2; color: #b45309; }

.feature-grid {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.feature {
    padding: 18px 16px 18px 18px;
    border-radius: 18px;
    background: transparent;
    border: 1px solid var(--line);
    border-left: 4px solid var(--sun);
}

.aside-line { margin-top: 16px; font-size: 15.5px; }

.section-day {
    margin-top: 48px;
    padding-top: 48px;
    background-color: #fff1d8;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cpath d='M28 6 L46 24 L28 42 L10 24 Z M28 54 L46 72 L28 90 L10 72 Z' fill='none' stroke='%231a120c' stroke-opacity='.08' stroke-width='1.2'/%3E%3C/svg%3E");
}

.day-grid { display: grid; gap: 8px; }

.day {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.day li {
    display: grid;
    gap: 2px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.day time { font-size: 26px; line-height: 1.1; }

.day p { margin: 0; color: var(--ink-soft); }

.day strong { color: var(--ink); }

.signal-grid {
    display: grid;
    gap: 12px;
}

.signal-grid article {
    padding: 20px 18px 22px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 20px;
}

.num {
    margin: 0 0 8px;
    color: var(--sun-deep);
    font-size: 28px;
    line-height: 1;
}

.signal-grid h3 { margin: 0 0 6px; font-size: 20px; }

.signal-grid p { margin: 0; color: var(--ink-soft); }

.cities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
}

.cities li {
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper-2);
    font-size: 14px;
    font-weight: 650;
}

.cities-note {
    margin: 12px 0 0;
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 560;
    letter-spacing: -0.03em;
}

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
    counter-reset: step;
}

.steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.steps li::before {
    counter-increment: step;
    content: counter(step);
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--sun);
    color: var(--ink);
    font-weight: 700;
}

.steps p strong { color: var(--ink); }

.note {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff3c4;
    color: var(--ink);
}

.tv-box {
    margin-top: 18px;
    padding: 18px 18px 20px;
    border-radius: 18px;
    background: var(--coffee);
    color: #fff6e8;
}

.tv-box h3 { color: #fff; }

.tv-box p { color: #f0e2d2; }

.download-grid { display: grid; gap: 22px; }

.ficha {
    margin: 0;
    padding: 6px 18px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 20px;
}

.ficha div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.ficha div:last-child { border-bottom: 0; }

.ficha dt { color: var(--muted); }

.ficha dd {
    margin: 0;
    font-weight: 700;
    text-align: end;
}

.faq-wrap { max-width: 820px; }

.faq { border-bottom: 1px solid var(--line); }

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    cursor: pointer;
    font-weight: 650;
    list-style: none;
}

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

.plus {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--sun);
    position: relative;
}

.plus::before,
.plus::after {
    content: "";
    position: absolute;
    left: 7px;
    right: 7px;
    top: 13px;
    height: 2px;
    background: var(--ink);
}

.plus::after { transform: rotate(90deg); }

.faq[open] .plus::after { transform: rotate(0deg); }

.faq p { padding-bottom: 16px; }

.close-wrap { padding-bottom: 28px; }

.close {
    position: relative;
    overflow: hidden;
    padding: 42px 20px 28px;
    border-radius: 28px;
    background:
        radial-gradient(420px 180px at 100% 0%, rgba(252, 209, 22, 0.28), transparent 60%),
        var(--coffee);
    color: #fff6e8;
    text-align: center;
}

.close::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(#fcd116 0 50%, #003893 50% 75%, #ce1126 75% 100%);
}

.close h2 { color: #fff; }

.close p { color: #f0e2d2; }

.cta-center { justify-content: center; }

.site-footer {
    padding: 8px 0 36px;
    text-align: center;
}

.site-footer p { margin: 0 0 6px; font-size: 14.5px; }

.fine { font-size: 13px !important; }

.sticky-dl {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #1a120c;
    color: #fff6e8;
    transform: translateY(0);
    transition: transform 0.25s ease;
}

.sticky-dl p {
    margin: 0;
    font-size: 13px;
    font-weight: 650;
    color: #f0e2d2;
}

.sticky-dl .btn { flex: none; min-height: 44px; }

.sticky-dl.is-hidden {
    transform: translateY(110%);
    visibility: hidden;
}

@media (max-width: 860px) {
    body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

    .cta-row .btn-lg,
    .download-grid .btn-lg { flex: 1 1 180px; }
}

@media (min-width: 720px) {
    .trust { grid-template-columns: repeat(4, 1fr); }

    .genre-scroller {
        display: grid;
        grid-template-columns: 1fr 1fr;
        overflow: visible;
        margin-inline: 0;
    }

    .genre-card { flex: none; }

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

    .day li {
        grid-template-columns: 160px 1fr;
        gap: 18px;
        align-items: baseline;
    }

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

    .steps-3 { grid-template-columns: 1fr 1fr 1fr; }

    .download-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
        gap: 36px;
    }
}

@media (min-width: 861px) {
    .nav-toggle { display: none; }

    .header-bar > .header-cta { display: inline-flex; }

    .site-nav {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 4px;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .nav-dl { display: none; }

    .sticky-dl { display: none; }

    body { padding-bottom: 0; }
}

@media (min-width: 980px) {
    .wrap { width: min(1120px, calc(100% - 48px)); }

    .hero { padding-top: 42px; }

    .hero-grid {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 42px;
        align-items: center;
    }

    .hero-visual { margin-top: 0; }

    .parrilla {
        width: 100%;
        margin: 28px 0 0;
        padding: 18px 8px 16px 18px;
    }

    .parrilla ol {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }

    .parrilla li {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 8px;
        border-top: 0;
        border-left: 1px solid var(--line);
        padding: 2px 16px;
    }

    .parrilla li:first-child { border-left: 0; padding-left: 8px; }

    .genre-scroller { grid-template-columns: 1fr 1fr 1fr; }

    #instalar .steps { grid-template-columns: 1fr 1fr; }

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

    .day-grid {
        grid-template-columns: 0.8fr 1.2fr;
        gap: 40px;
        align-items: start;
    }

    .close { padding: 64px 48px 48px; }
}

@media (hover: hover) {
    .genre-card,
    .signal-grid article,
    .feature {
        transition: transform 0.2s ease, border-color 0.2s ease;
    }

    .genre-card:hover,
    .signal-grid article:hover,
    .feature:hover { transform: translateY(-3px); }
}

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

    .live { animation: none; }

    .sticky-dl,
    .genre-card,
    .signal-grid article,
    .feature,
    .nav-toggle-bars span { transition: none; }
}
