/* =========================================================
   LegazyTV - style.css
   Diseño cinematográfico principal
   ========================================================= */

:root {
    --bg: #030303;
    --bg-soft: #0b0b0b;
    --card: #111111;
    --card-2: #181818;

    --red: #e50914;
    --red-dark: #97050c;
    --red-soft: rgba(229, 9, 20, 0.14);
    --red-glow: rgba(229, 9, 20, 0.38);

    --white: #ffffff;
    --silver: #d7d7d7;
    --muted: #969696;

    --border: rgba(255, 255, 255, 0.13);
    --border-strong: rgba(255, 255, 255, 0.22);

    --whatsapp: #25d366;

    --font-main: 'Inter', Arial, Helvetica, sans-serif;
    --font-display: 'Oswald', Impact, sans-serif;

    --container: 1240px;
    --pad: 1.25rem;

    --radius: 22px;
    --radius-sm: 14px;

    --shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
    --shadow-red: 0 20px 55px rgba(229, 9, 20, 0.28);

    --header-height: 74px;
}

/* =========================================================
   Reset
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: var(--font-main);
    color: var(--white);
    background:
        radial-gradient(circle at 18% 0%, rgba(229, 9, 20, 0.24), transparent 30%),
        radial-gradient(circle at 86% 18%, rgba(229, 9, 20, 0.16), transparent 32%),
        var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    border: 0;
    background: none;
    cursor: pointer;
}

img,
svg {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

::selection {
    color: var(--white);
    background: var(--red);
}

/* =========================================================
   Layout global
   ========================================================= */

.container {
    width: min(100% - calc(var(--pad) * 2), var(--container));
    margin-inline: auto;
}

.section {
    padding: 4.5rem 0;
}

.section-heading {
    margin-bottom: 2.5rem;
    text-align: center;
}

.section-heading.align-left {
    text-align: left;
}

.section-heading span {
    color: var(--silver);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin-top: 0.55rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(229, 9, 20, 0.25);
    background: rgba(3, 3, 3, 0.86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 2px solid var(--red);
    border-radius: 10px;
    color: var(--red);
    transform: skewX(-7deg);
    box-shadow: 0 0 22px rgba(229, 9, 20, 0.24);
}

.brand-mark::before {
    content: "▶";
    font-size: 0.95rem;
    transform: skewX(7deg);
}

.brand-text {
    display: inline-flex;
    align-items: baseline;
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
}

.brand-text span,
.footer-brand span {
    color: var(--silver);
}

.brand-text strong,
.footer-brand strong {
    color: var(--red);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}

.main-nav a {
    position: relative;
    color: var(--silver);
    font-size: 0.84rem;
    font-weight: 800;
    transition: color 0.25s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.65rem;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.25s ease;
}

.main-nav a:hover {
    color: var(--white);
}

.main-nav a:hover::after {
    width: 100%;
}

.header-cta {
    flex-shrink: 0;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.menu-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--white);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

body.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

body.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* =========================================================
   Botones
   ========================================================= */

.btn {
    position: relative;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0 1.4rem;
    border-radius: 12px;
    font-weight: 900;
    line-height: 1;
    overflow: hidden;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 50%);
    transition: opacity 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    box-shadow: var(--shadow-red);
}

.btn-secondary,
.btn-outline {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.055);
}

.btn-secondary:hover,
.btn-outline:hover {
    border-color: rgba(229, 9, 20, 0.55);
    background: rgba(229, 9, 20, 0.12);
}

.btn-outline {
    width: 100%;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
    position: relative;
    min-height: 650px;
    padding: 4.5rem 0 3.8rem;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.28;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(circle at 75% 25%, rgba(229, 9, 20, 0.35), transparent 32%),
        linear-gradient(90deg, rgba(0,0,0,0.93), rgba(0,0,0,0.42), rgba(0,0,0,0.92));
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.18;
    background:
        radial-gradient(circle at 15% 35%, rgba(255,255,255,0.16), transparent 6%),
        radial-gradient(circle at 28% 68%, rgba(255,255,255,0.12), transparent 5%),
        radial-gradient(circle at 86% 16%, rgba(255,255,255,0.14), transparent 5%),
        radial-gradient(circle at 74% 82%, rgba(255,255,255,0.10), transparent 5%);
}

.hero-layout {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    align-items: center;
    gap: 3rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(229, 9, 20, 0.55);
    border-radius: 999px;
    color: var(--white);
    background: rgba(229, 9, 20, 0.12);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 0.5rem;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 18px var(--red-glow);
}

.hero-copy h1 {
    margin-top: 1.2rem;
    font-family: var(--font-display);
    font-size: clamp(3.4rem, 7vw, 6.2rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.hero-copy h1 strong {
    display: inline-block;
    color: var(--red);
    text-shadow: 0 0 34px rgba(229, 9, 20, 0.4);
}

.hero-copy p {
    max-width: 590px;
    margin-top: 1.25rem;
    color: var(--silver);
    font-size: 1.08rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.7rem;
    color: var(--silver);
    font-size: 0.88rem;
    font-weight: 800;
}

/* =========================================================
   Showcase / TV mockup
   ========================================================= */

.hero-showcase {
    position: relative;
    min-height: 520px;
}

.tv-frame {
    position: absolute;
    right: 0;
    top: 0;
    width: min(100%, 670px);
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 10px;
    background: linear-gradient(145deg, #1d1d1d, #060606);
    box-shadow: 0 30px 90px rgba(0,0,0,0.75), 0 0 55px rgba(229,9,20,0.25);
}

.tv-screen {
    min-height: 340px;
    display: grid;
    grid-template-columns: 92px 1fr;
    overflow: hidden;
    border-radius: 6px;
    background:
        radial-gradient(circle at 70% 30%, rgba(229,9,20,0.38), transparent 35%),
        linear-gradient(135deg, #121212, #050505);
}

.screen-sidebar {
    padding: 2rem 1rem;
    border-right: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.34);
}

.screen-sidebar span {
    display: block;
    height: 12px;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
}

.screen-sidebar span.active {
    background: var(--red);
    box-shadow: 0 0 22px rgba(229,9,20,0.7);
}

.screen-content {
    padding: 1.5rem;
}

.screen-logo {
    font-weight: 900;
    letter-spacing: 0.03em;
}

.screen-logo strong {
    color: var(--red);
}

.featured-banner {
    position: relative;
    min-height: 150px;
    margin-top: 1.5rem;
    padding: 1.3rem;
    border-radius: 14px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.92), rgba(0,0,0,0.18)),
        radial-gradient(circle at 82% 35%, rgba(229,9,20,0.45), transparent 35%),
        #171717;
}

.featured-banner::after {
    content: "";
    position: absolute;
    right: -20px;
    bottom: -35px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(229, 9, 20, 0.45);
    border-radius: 50%;
    box-shadow: inset 0 0 40px rgba(229, 9, 20, 0.24);
}

.featured-banner span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.featured-banner h2 {
    position: relative;
    z-index: 1;
    margin-top: 0.7rem;
    font-family: var(--font-display);
    font-size: 2.5rem;
    line-height: 0.95;
    text-transform: uppercase;
}

.channel-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.7rem;
    margin-top: 1rem;
}

.channel-row div {
    display: grid;
    place-items: center;
    min-height: 54px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: var(--white);
    font-size: 0.76rem;
    font-weight: 900;
    text-align: center;
}

.device {
    position: absolute;
    z-index: 4;
    border: 1px solid rgba(255,255,255,0.2);
    background: #0a0a0a;
    box-shadow: 0 20px 45px rgba(0,0,0,0.7);
}

.laptop-device {
    left: 2%;
    bottom: 16%;
    width: 220px;
    height: 130px;
    border-radius: 10px;
}

.laptop-device div {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.65), transparent),
        radial-gradient(circle at 75% 30%, rgba(229,9,20,0.35), transparent 36%),
        #1b1b1b;
}

.phone-device {
    right: 18%;
    bottom: 6%;
    width: 86px;
    height: 170px;
    padding: 1rem 0.65rem;
    border-radius: 20px;
}

.phone-device span {
    display: block;
    height: 24px;
    margin-bottom: 0.65rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.13);
}

.floating-stat {
    position: absolute;
    z-index: 5;
    min-width: 130px;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(10,10,10,0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.55);
}

.floating-stat strong,
.floating-stat span {
    display: block;
}

.floating-stat strong {
    font-size: 1.4rem;
}

.floating-stat span {
    color: var(--muted);
    font-size: 0.8rem;
}

.stat-one {
    right: 4%;
    bottom: 21%;
}

.stat-two {
    left: 19%;
    top: 7%;
}

/* =========================================================
   Stats
   ========================================================= */

.stats-strip {
    border-block: 1px solid rgba(229, 9, 20, 0.28);
    background: rgba(0,0,0,0.62);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    min-height: 94px;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.stat-item:last-child {
    border-right: 0;
}

.stat-item span {
    font-size: 1.55rem;
}

.stat-item strong {
    display: block;
    font-size: 1.25rem;
}

.stat-item small {
    display: block;
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
}

/* =========================================================
   Categorías
   ========================================================= */

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.category-card {
    position: relative;
    min-height: 110px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #141414;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: inset 0 -40px 60px rgba(0,0,0,0.65);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(229, 9, 20, 0.65);
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at 50% 20%, rgba(229,9,20,0.36), transparent 42%);
}

.category-card strong {
    position: relative;
    z-index: 2;
}

.category-card::after {
    position: absolute;
    top: 18px;
    font-size: 2rem;
    opacity: 0.72;
}

.category-card.sports::after { content: "⚽"; }
.category-card.movies::after { content: "🍿"; }
.category-card.series::after { content: "🎭"; }
.category-card.news::after { content: "🌎"; }
.category-card.kids::after { content: "⭐"; }
.category-card.music::after { content: "🎤"; }

/* =========================================================
   Planes
   ========================================================= */

.plans-section {
    background:
        linear-gradient(180deg, transparent, rgba(255,255,255,0.025), transparent);
}

.plans-promo-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: stretch;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.plan-card,
.promo-box {
    position: relative;
    padding: 1.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
        rgba(13,13,13,0.9);
    box-shadow: var(--shadow);
}

.plan-card {
    display: flex;
    flex-direction: column;
}

.featured-plan {
    border-color: rgba(229,9,20,0.8);
    box-shadow: 0 0 45px rgba(229,9,20,0.22);
}

.plan-badge {
    position: absolute;
    left: 50%;
    top: -14px;
    transform: translateX(-50%);
    white-space: nowrap;
    padding: 0.42rem 1rem;
    border-radius: 999px;
    background: var(--red);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.plan-card h3 {
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.price {
    margin-bottom: 0.7rem;
    font-size: 2.65rem;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.price span {
    color: var(--silver);
    font-size: 0.9rem;
    letter-spacing: 0;
}

.plan-description {
    margin-bottom: 1.2rem;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.plan-card ul {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.7rem;
    color: var(--silver);
}

.plan-card li::before {
    content: "✓";
    margin-right: 0.55rem;
    color: var(--red);
    font-weight: 900;
}

.plan-card .btn {
    margin-top: auto;
}

/* =========================================================
   Promociones
   ========================================================= */

.promo-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background:
        radial-gradient(circle at 20% 0%, rgba(229,9,20,0.45), transparent 36%),
        linear-gradient(145deg, #3d0507, #090909);
}

.promo-box > span {
    font-size: 1.35rem;
    font-weight: 900;
}

.promo-card {
    padding: 1.3rem;
    border-radius: 14px;
    background: rgba(255,255,255,0.92);
    color: #111;
}

.promo-card strong {
    display: block;
    color: var(--red);
    font-size: 2rem;
    line-height: 1;
}

.promo-card p {
    font-size: 1.2rem;
    font-weight: 900;
}

/* =========================================================
   Compatibilidad
   ========================================================= */

.compat-strip {
    padding: 2rem 0;
    background: #f2f2f2;
    color: #111;
}

.compat-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: center;
    gap: 2rem;
}

.compat-grid h2 {
    font-size: 1.45rem;
    line-height: 1.15;
}

.compat-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.compat-icons span {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    padding: 0 1rem;
    border: 1px solid #d7d7d7;
    border-radius: 12px;
    background: white;
    font-weight: 900;
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-layout {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 3rem;
}

.faq-list {
    display: grid;
    gap: 0.8rem;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255,255,255,0.045);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    color: var(--white);
    font-weight: 900;
    text-align: left;
}

.faq-question span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    border-radius: 50%;
    background: rgba(229,9,20,0.18);
    transition: 0.25s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 1rem 1rem;
    color: var(--silver);
    line-height: 1.65;
}

.faq-item.active .faq-question span {
    transform: rotate(45deg);
    background: var(--red);
}

/* =========================================================
   CTA final
   ========================================================= */

.bottom-cta {
    padding: 2rem 0 3rem;
}

.bottom-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
    border: 1px solid rgba(229,9,20,0.45);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 20% 50%, rgba(229,9,20,0.38), transparent 30%),
        linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    box-shadow: var(--shadow);
}

.bottom-cta-card span {
    color: var(--red);
    font-weight: 900;
    text-transform: uppercase;
}

.bottom-cta-card h2 {
    margin-top: 0.3rem;
    font-size: 2rem;
}

.bottom-cta-card p {
    margin-top: 0.4rem;
    color: var(--silver);
}

/* =========================================================
   WhatsApp flotante
   ========================================================= */

.floating-whatsapp {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 80;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.2rem;
    border-radius: 999px;
    background: var(--whatsapp);
    color: white;
    font-weight: 900;
    box-shadow: 0 20px 45px rgba(37, 211, 102, 0.35);
}

.floating-whatsapp::before {
    content: "✆";
    margin-right: 0.5rem;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    padding: 3rem 0 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.48);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 2rem;
    padding-bottom: 2.4rem;
}

.footer-brand {
    display: inline-flex;
    align-items: baseline;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.site-footer p {
    max-width: 430px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.site-footer h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.site-footer a:not(.footer-brand) {
    display: block;
    width: fit-content;
    margin-bottom: 0.65rem;
    color: var(--silver);
    font-size: 0.9rem;
    transition: color 0.25s ease, transform 0.25s ease;
}

.site-footer a:hover {
    color: var(--white);
    transform: translateX(3px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom p {
    max-width: none;
    font-size: 0.78rem;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {
    .hero-layout,
    .plans-promo-layout,
    .faq-layout,
    .compat-grid {
        grid-template-columns: 1fr;
    }

    .hero-showcase {
        min-height: 480px;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }

    .promo-box {
        max-width: 520px;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item {
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-inner > div:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 850px) {
    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
        margin-left: auto;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        display: grid;
        gap: 0;
        padding: 1rem;
        margin-left: 0;
        background: rgba(3,3,3,0.96);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        transform: translateY(-130%);
        opacity: 0;
        pointer-events: none;
        transition: 0.25s ease;
    }

    body.menu-open .main-nav {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .main-nav a {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .main-nav a::after {
        display: none;
    }

    .hero {
        padding-top: 3rem;
    }

    .hero-copy h1 {
        font-size: clamp(3rem, 14vw, 4.5rem);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-showcase {
        min-height: 390px;
    }

    .tv-frame {
        position: relative;
        width: 100%;
    }

    .tv-screen {
        grid-template-columns: 60px 1fr;
        min-height: 280px;
    }

    .device,
    .floating-stat {
        display: none;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bottom-cta-card {
        align-items: stretch;
        flex-direction: column;
    }

    .bottom-cta-card .btn {
        width: 100%;
    }
}

@media (max-width: 560px) {
    body {
        padding-bottom: 74px;
    }

    .container {
        width: min(100% - 1.5rem, var(--container));
    }

    .brand-text {
        font-size: 1.55rem;
    }

    .stats-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-right: 0;
    }

    .section {
        padding: 3.3rem 0;
    }

    .screen-sidebar {
        display: none;
    }

    .tv-screen {
        grid-template-columns: 1fr;
    }

    .featured-banner h2 {
        font-size: 2rem;
    }

    .channel-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .price {
        font-size: 2.25rem;
    }

    .compat-icons span {
        width: 100%;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .floating-whatsapp {
        left: 1rem;
        right: 1rem;
        justify-content: center;
        border-radius: 16px;
    }
}

/* =========================================================
   Compatibilidad con logos / iconos
   ========================================================= */

.compat-icons {
    display: grid;
    grid-template-columns: repeat(7, minmax(90px, 1fr));
    gap: 0.9rem;
}

.compat-icon-card {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1rem 0.75rem;
    border: 1px solid #d7d7d7;
    border-radius: 16px;
    background: #ffffff;
    color: #111111;
    font-weight: 900;
    text-align: center;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.compat-icon-card:hover {
    transform: translateY(-4px);
    border-color: rgba(229, 9, 20, 0.35);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.13);
}

.compat-icon-card iconify-icon {
    font-size: 2.4rem;
    color: #111111;
}

.compat-icon-card small {
    color: #111111;
    font-size: 0.8rem;
    font-weight: 900;
    line-height: 1.2;
}

/* Android en verde sutil */
.compat-icon-card iconify-icon[icon="simple-icons:android"] {
    color: #3ddc84;
}

/* Roku en morado */
.compat-icon-card iconify-icon[icon="simple-icons:roku"] {
    color: #662d91;
}

/* Apple en negro */
.compat-icon-card iconify-icon[icon="simple-icons:apple"] {
    color: #111111;
}

/* Ajustes responsive */
@media (max-width: 1100px) {
    .compat-icons {
        grid-template-columns: repeat(4, minmax(100px, 1fr));
    }
}

@media (max-width: 700px) {
    .compat-icons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .compat-icon-card {
        min-height: 90px;
    }
}

@media (max-width: 420px) {
    .compat-icons {
        grid-template-columns: 1fr;
    }
}

.login-button,
button {
    width: 100%;
    min-height: 48px;
    margin-top: 16px;
    border: 0;
    border-radius: 10px;
    background: #e50914;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}

.login-button:hover,
button:hover {
    background: #b70710;
}