/* ==================================
   RED NOIR — IPTV Rebrand CR
   Inspired by the dark, cinematic
   aesthetic with platform-specific
   accent colors.
================================== */

/* ==================================
   GOOGLE FONTS
================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Manrope:wght@400;600;700;800;900&display=swap');

/* ==================================
   VARIABLES
================================== */
:root {
    /* Acento principal — Rojo noir */
    --primary:       #ef233c;
    --primary-dark:  #c81d33;
    --primary-light: #ff4d63;
    --primary-glow:  rgba(239, 35, 60, 0.4);

    /* Fondos oscuros */
    --bg-main:       #000000;
    --bg-dark:       #080808;
    --bg-surface:    rgba(255, 255, 255, 0.04);
    --bg-surface-hover: rgba(255, 255, 255, 0.08);

    /* Textos */
    --text-primary:   #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted:     #52525b;

    /* Bordes */
    --border:       rgba(255, 255, 255, 0.08);
    --border-hover: rgba(239, 35, 60, 0.5);

    /* Sombras */
    --shadow:    0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.8);

    /* Roku (púrpura) */
    --roku-purple:       #662d91;
    --roku-purple-dark:  #4a1f6b;
    --roku-purple-light: #9b59d6;
    --roku-glow:         rgba(102, 45, 145, 0.4);

    /* Fire TV (naranja Amazon) */
    --firetv-orange:       #ff9900;
    --firetv-orange-dark:  #cc7a00;
    --firetv-orange-light: #ffb833;
    --firetv-glow:         rgba(255, 153, 0, 0.4);

    /* Tipografía */
    --font-display: 'Manrope', -apple-system, sans-serif;
    --font-body:    'Inter', -apple-system, sans-serif;

    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Transición */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================================
   ANIMATED BORDER PROPERTY
================================== */
@property --gradient-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

/* ==================================
   RESET
================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    background-color: #000;
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    selection-background: var(--primary);
}

::selection {
    background: var(--primary);
    color: #fff;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
}

/* ==================================
   BACKGROUND — Stars + Glow
================================== */
.bg-stars {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-stars::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #120005 0%, #000 60%);
}

.bg-glow-center {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(239,35,60,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

/* Parallax stars */
@keyframes animStar {
    from { transform: translateY(0); }
    to   { transform: translateY(-2000px); }
}

.stars-sm {
    position: absolute;
    width: 1px;
    height: 1px;
    background: transparent;
    box-shadow:
        113px  220px #fff, 345px   80px #fff, 670px  340px #fff,
        820px  140px #fff, 1050px 480px #fff, 1240px 190px #fff,
        180px  760px #fff, 940px 1020px #fff, 430px  620px #fff,
        760px   50px #fff, 1380px 720px #fff, 280px  410px #fff,
        1490px 320px #fff, 600px  870px #fff,  90px  950px #fff,
        1150px 580px #fff, 500px  160px #fff, 1300px  90px #fff,
        370px 1100px #fff, 1600px 430px #fff,  60px  300px #fff,
        1720px 660px #fff, 790px  780px #fff, 1080px 230px #fff,
        240px  530px #fff, 1420px 880px #fff, 700px 1200px #fff,
        1010px 390px #fff, 860px  680px #fff, 1570px 140px #fff;
    animation: animStar 60s linear infinite;
}

.stars-md {
    position: absolute;
    width: 2px;
    height: 2px;
    background: transparent;
    box-shadow:
        210px  450px rgba(255,255,255,.9), 580px  200px rgba(255,255,255,.9),
        910px  850px rgba(255,255,255,.9), 1130px  80px rgba(255,255,255,.9),
        350px 1150px rgba(255,255,255,.9),  730px 400px rgba(255,255,255,.9),
        1410px 760px rgba(255,255,255,.9),   45px 1480px rgba(255,255,255,.9),
        1680px 290px rgba(255,255,255,.9),  620px 700px rgba(255,255,255,.9),
        1290px 550px rgba(255,255,255,.9),  460px 330px rgba(255,255,255,.9);
    animation: animStar 90s linear infinite;
}

/* Gradient blur nav top overlay */
.nav-blur-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    z-index: 40;
    pointer-events: none;
}

/* ==================================
   NAVBAR
================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 24px;
}

.nav-inner {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9999px;
    padding: 10px 18px 10px 18px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.02) inset,
                0 20px 40px rgba(0,0,0,0.5);
    transition: background var(--transition);
}

/* Fallback for pages without .nav-inner */
.nav:not(:has(.nav-inner)) {
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 66px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.nav-logo img {
    height: 34px;
    width: auto;
}

.nav-logo span {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 7px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 9999px;
    transition: var(--transition);
}

.nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.07);
}

.nav-link.active {
    color: #fff;
}

.nav-link.active::after {
    display: none; /* removed underline for pill style */
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 9999px;
    padding: 4px 6px;
    flex-shrink: 0;
}

.lang-btn {
    padding: 3px 9px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.lang-btn:hover { color: #fff; }

.lang-btn.lang-active {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 6px;
}

/* ==================================
   BUTTONS
================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 9999px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 6px 20px rgba(37,211,102,0.3);
}

.btn-whatsapp:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(37,211,102,0.4);
}

.btn-small {
    padding: 8px 18px;
    font-size: 0.8rem;
}

.btn-large {
    padding: 15px 36px;
    font-size: 0.95rem;
}

/* Shiny CTA — animated spinning border */
.shiny-cta {
    --gradient-angle: 0deg;
    position: relative;
    overflow: hidden;
    border-radius: 9999px;
    padding: 15px 36px;
    background:
        linear-gradient(#0a0000, #0a0000) padding-box,
        conic-gradient(
            from var(--gradient-angle),
            transparent 0%,
            var(--primary) 10%,
            var(--primary-light) 20%,
            transparent 35%,
            transparent 100%
        ) border-box;
    border: 2px solid transparent;
    cursor: pointer;
    isolation: isolate;
    animation: border-spin 2.5s linear infinite;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    letter-spacing: 0.03em;
    transition: transform var(--transition), box-shadow var(--transition);
}

.shiny-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--primary-glow);
}

.shiny-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.8) 0.5px, transparent 0);
    background-size: 4px 4px;
    opacity: 0.06;
    z-index: 0;
    pointer-events: none;
}

.shiny-cta span {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

@keyframes border-spin {
    to { --gradient-angle: 360deg; }
}

/* ==================================
   HERO SECTION
================================== */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 24px 80px;
}

/* Pulsing dot badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(239,35,60,0.08);
    border: 1px solid rgba(239,35,60,0.25);
    color: #ff6b7f;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 9999px;
    margin-bottom: 28px;
    animation: fade-in-up 0.8s ease-out forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.hero-badge-dot {
    position: relative;
    width: 8px;
    height: 8px;
    flex-shrink: 0;
}

.hero-badge-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--primary);
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.hero-badge-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--primary);
}

@keyframes ping {
    75%, 100% { transform: scale(2); opacity: 0; }
}

/* Hero heading */
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    animation: fade-in-up 0.8s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero h1 .gradient-text {
    display: block;
    background: linear-gradient(to bottom, #fff 40%, rgba(255,255,255,0.35));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 .accent-text {
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero h1 .accent-text svg {
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 10px;
    color: var(--primary);
    opacity: 0.5;
}

.hero > p {
    max-width: 580px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
    animation: fade-in-up 0.8s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
    animation: fade-in-up 0.8s ease-out forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

/* Stats */
.stats-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fade-in-up 0.8s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.stat-item {
    padding: 24px 36px;
    text-align: center;
    border-right: 1px solid var(--border);
    flex: 1;
    min-width: 130px;
}

.stat-item:last-child {
    border-right: none;
}

.stat-item .num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    display: block;
}

.stat-item .lbl {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Fade in up animation */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==================================
   TRUST BAR
================================== */
.trust-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.trust-item i {
    color: var(--primary);
    font-size: 0.95rem;
}

/* ==================================
   SECTIONS
================================== */
.section {
    position: relative;
    z-index: 1;
    padding: 80px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==================================
   SERVICE CARDS (Home)
================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    position: relative;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 30px;
    text-align: left;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

/* APK — red */
.service-card.card-apk::before {
    background: radial-gradient(circle at top right, rgba(239,35,60,0.12), transparent 60%);
}
.service-card.card-apk:hover {
    border-color: rgba(239,35,60,0.4);
    box-shadow: 0 0 40px rgba(239,35,60,0.1);
    transform: translateY(-5px);
}
.service-card.card-apk:hover::before { opacity: 1; }

/* Roku — purple */
.service-card.card-roku::before {
    background: radial-gradient(circle at top right, rgba(102,45,145,0.18), transparent 60%);
}
.service-card.card-roku:hover {
    border-color: rgba(102,45,145,0.5);
    box-shadow: 0 0 40px rgba(102,45,145,0.15);
    transform: translateY(-5px);
}
.service-card.card-roku:hover::before { opacity: 1; }

/* Fire TV — orange */
.service-card.card-firetv::before {
    background: radial-gradient(circle at top right, rgba(255,153,0,0.12), transparent 60%);
}
.service-card.card-firetv:hover {
    border-color: rgba(255,153,0,0.4);
    box-shadow: 0 0 40px rgba(255,153,0,0.1);
    transform: translateY(-5px);
}
.service-card.card-firetv:hover::before { opacity: 1; }

.svc-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}
.svc-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.svc-icon.red    { background: rgba(239,35,60,0.12);  color: var(--primary); }
.svc-icon.purple { background: rgba(102,45,145,0.15); color: var(--roku-purple-light); }
.svc-icon.orange { background: rgba(255,153,0,0.12);  color: var(--firetv-orange); }

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.svc-price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 16px;
}

.svc-price span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
}

.svc-price.red-price    { color: var(--primary); }
.svc-price.purple-price { color: var(--roku-purple-light); }
.svc-price.orange-price { color: var(--firetv-orange); }

.product-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
    color: #fff;
}

.btn-red    { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.btn-purple { background: linear-gradient(135deg, var(--roku-purple), var(--roku-purple-dark)); }
.btn-orange { background: linear-gradient(135deg, var(--firetv-orange), var(--firetv-orange-dark)); color: #000; }

.product-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* ==================================
   STEPS / CÓMO FUNCIONA
================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    padding: 36px 28px;
    text-align: center;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 40%;
    width: 1px;
    background: var(--border);
}

.step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.step h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.7;
}

/* ==================================
   FEATURES GRID
================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(239,35,60,0.3);
    background: rgba(239,35,60,0.04);
}

.feature-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
    display: block;
}

.feature-icon i {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.7;
}

/* ==================================
   CTA SECTION
================================== */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(239,35,60,0.06) 0%, rgba(102,45,145,0.06) 100%);
    pointer-events: none;
}

.cta-section .section-title {
    background: linear-gradient(to bottom, #fff 40%, rgba(255,255,255,0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================================
   CATALOG PAGE
================================== */
.catalog-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 20px;
    position: sticky;
    top: 76px;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    padding: 10px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 9999px;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    cursor: pointer;
}

.tab-btn:hover {
    border-color: rgba(239,35,60,0.4);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.catalog-content {
    display: none;
}

.catalog-content.active {
    display: block;
    animation: fade-in-up 0.4s ease;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ==================================
   PRODUCT CARDS (with slider)
================================== */
.product-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(239,35,60,0.35);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(239,35,60,0.1);
}

.product-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    z-index: 2;
}

/* Slider */
.product-slider {
    position: relative;
    height: 200px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
    background: #0a0a0a;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slider-slide {
    min-width: 100%;
    height: 100%;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
    font-size: 0.75rem;
}

.slider-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.slider-nav.prev { left: 8px; }
.slider-nav.next { right: 8px; }

.slider-dots {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
    z-index: 2;
}

.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--primary);
    width: 20px;
    border-radius: 3px;
}

.product-info h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.product-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 14px;
    line-height: 1.6;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}

.product-price {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--primary);
}

/* Default product-btn (used in catalog page) */
a.product-btn, button.product-btn {
    flex: 1;
    padding: 9px 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 9999px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

a.product-btn:hover, button.product-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* ==================================
   ROKU SECTION (Catálogo)
================================== */
#roku-section {
    background: linear-gradient(180deg, #000 0%, rgba(102,45,145,0.05) 50%, #000 100%);
    border-top: 1px solid rgba(102,45,145,0.3);
    border-bottom: 1px solid rgba(102,45,145,0.3);
    position: relative;
    overflow: hidden;
}

#roku-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: radial-gradient(circle at top center, rgba(102,45,145,0.15), transparent 70%);
    pointer-events: none;
}

#roku-section .section-title {
    background: linear-gradient(135deg, var(--roku-purple-light), #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.roku-card {
    background: linear-gradient(135deg, rgba(102,45,145,0.08), rgba(155,89,214,0.04));
    border: 1px solid rgba(102,45,145,0.35);
}

.roku-card:hover {
    border-color: rgba(155,89,214,0.6);
    box-shadow: 0 20px 60px rgba(102,45,145,0.2);
}

.roku-card .product-badge { background: var(--roku-purple); }
.roku-card .product-price { color: var(--roku-purple-light); }

.roku-card a.product-btn,
.roku-card button.product-btn {
    background: linear-gradient(135deg, var(--roku-purple), var(--roku-purple-dark));
}

.roku-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 32px;
    padding: 28px;
    background: rgba(102,45,145,0.05);
    border-radius: 16px;
    border: 1px solid rgba(102,45,145,0.15);
}

.roku-feature { text-align: center; }
.roku-feature i { font-size: 1.8rem; color: var(--roku-purple-light); margin-bottom: 10px; }
.roku-feature h4 { font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 4px; }
.roku-feature p  { font-size: 0.82rem; color: var(--text-secondary); }

/* ==================================
   FIRE TV SECTION (Catálogo)
================================== */
#firetv-section {
    border-top: 1px solid rgba(255,153,0,0.2);
    border-bottom: 1px solid rgba(255,153,0,0.2);
    position: relative;
}

#firetv-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: radial-gradient(circle at top center, rgba(255,153,0,0.06), transparent 70%);
    pointer-events: none;
}

#firetv-section .section-title {
    background: linear-gradient(135deg, var(--firetv-orange), var(--firetv-orange-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.firetv-card {
    background: linear-gradient(135deg, rgba(255,153,0,0.06), rgba(255,184,51,0.02));
    border: 1px solid rgba(255,153,0,0.25);
}

.firetv-card:hover {
    border-color: rgba(255,153,0,0.5);
    box-shadow: 0 20px 60px rgba(255,153,0,0.12);
}

.firetv-card .product-badge { background: var(--firetv-orange-dark); }
.firetv-card .product-price { color: var(--firetv-orange); }

.firetv-card a.product-btn,
.firetv-card button.product-btn {
    background: linear-gradient(135deg, var(--firetv-orange), var(--firetv-orange-dark));
    color: #000;
}

/* ==================================
   VIDEO SECTION
================================== */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.video-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: rgba(239,35,60,0.3);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.video-info {
    padding: 18px;
}

.video-info h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.video-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ==================================
   CONTACT PAGE
================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-option {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 28px;
    text-align: center;
    transition: var(--transition);
}

.contact-option:hover {
    transform: translateY(-6px);
    border-color: rgba(239,35,60,0.3);
}

.contact-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    box-shadow: 0 8px 24px var(--primary-glow);
}

.contact-option h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-option p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.email-reveal {
    margin-top: 20px;
    padding: 18px;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    display: none;
}

.email-reveal.active {
    display: block;
    animation: fade-in-up 0.3s ease;
}

.email-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 10px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.email-box code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    color: var(--text);
}

.copy-btn {
    padding: 7px 14px;
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.copy-btn:hover { background: var(--primary-dark); }

/* ==================================
   FOOTER
================================== */
.footer {
    position: relative;
    z-index: 1;
    background: rgba(0,0,0,0.7);
    border-top: 1px solid var(--border);
    overflow: hidden;
}

.footer-main {
    padding: 56px 24px 40px;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 40px;
    align-items: start;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-top: 12px;
    max-width: 300px;
}

.footer-brand .brand-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand .brand-dot {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 2px;
    transform: rotate(45deg);
    display: inline-block;
}

.footer-col h4 {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li + li {
    margin-top: 10px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: color var(--transition);
}

.footer-col ul li a:hover { color: #fff; }

/* Big ghost text */
.footer-ghost {
    text-align: center;
    padding: 20px 0;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}

.footer-ghost-text {
    font-family: var(--font-display);
    font-size: clamp(4rem, 14vw, 12rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.06);
    line-height: 1;
    white-space: nowrap;
}

.footer-bottom {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Simple footer fallback */
.footer > .container {
    padding: 40px 20px;
    text-align: center;
}

.footer > .container p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ==================================
   UTILITIES
================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-spacing {
    padding-top: 80px;
}

.text-center { text-align: center; }

/* ==================================
   SCROLL REVEAL
================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==================================
   FLOAT ANIMATION
================================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

.floating { animation: float 3s ease-in-out infinite; }

/* ==================================
   RESPONSIVE
================================== */
@media (max-width: 768px) {
    .nav {
        padding: 12px 16px;
    }

    .nav-inner {
        border-radius: 16px;
        padding: 10px 16px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 16px;
        right: 16px;
        background: rgba(10,10,10,0.96);
        border: 1px solid var(--border);
        border-radius: 16px;
        flex-direction: column;
        padding: 14px;
        gap: 4px;
        margin-top: 8px;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-inner {
        position: relative;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 130px 20px 60px;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }

    .hero-buttons .btn,
    .hero-buttons .shiny-cta {
        width: 100%;
        justify-content: center;
    }

    .hero-buttons .shiny-cta span {
        justify-content: center;
        width: 100%;
    }

    .stats-row {
        flex-direction: row;
    }

    .stat-item {
        flex: 1 1 40%;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .stat-item:nth-child(odd) {
        border-right: 1px solid var(--border);
    }

    .stat-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

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

    .step:not(:last-child)::after {
        display: none;
    }

    .section {
        padding: 60px 16px;
    }

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

    .catalog-tabs {
        top: 0;
        position: relative;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-ghost-text {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

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

    .trust-bar {
        gap: 16px;
    }
}
