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

:root {
    --bg-primary: #080808;
    --bg-secondary: #121212;
    --bg-card: rgba(22, 22, 22, 0.85);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(229, 9, 20, 0.3);
    
    --primary: #e50914;
    --primary-hover: #f6121d;
    --primary-glow: rgba(229, 9, 20, 0.4);
    
    --accent: #ff3e3e;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --text-muted: #666666;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Typography & Layout Utilities */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font-body);
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-primary-color {
    color: var(--primary);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(8, 8, 8, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

header.scrolled {
    background: rgba(5, 5, 5, 0.95);
    border-bottom: 1px solid rgba(229, 9, 20, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

header .container {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.logo span {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.btn-contact {
    background: linear-gradient(135deg, var(--primary) 0%, #b81d24 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px var(--primary-glow);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.6);
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 100px;
    background: radial-gradient(circle at 50% -20%, rgba(229, 9, 20, 0.15) 0%, rgba(8, 8, 8, 0) 60%);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.badge-iptv {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(229, 9, 20, 0.1);
    border: 1px solid rgba(229, 9, 20, 0.25);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.2); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(229, 9, 20, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); }
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 900;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #b81d24 100%);
    color: #fff;
    padding: 16px 36px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 10px 25px var(--primary-glow);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(229, 9, 20, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 16px 36px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-muted);
    transform: translateY(-3px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
    padding: 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
}

.stat-item h3 {
    font-size: 2.2rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin: 0;
}

/* Sections Global */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(229, 9, 20, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 24px;
    display: inline-block;
    padding: 16px;
    border-radius: 12px;
    background: rgba(229, 9, 20, 0.06);
    border: 1px solid rgba(229, 9, 20, 0.15);
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Live Showcase */
.showcase {
    background: linear-gradient(180deg, var(--bg-primary) 0%, #0c0203 50%, var(--bg-primary) 100%);
    overflow: hidden;
    position: relative;
}

.catalog-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
}

.catalog-row {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollRow 45s linear infinite;
}

.catalog-row.reverse {
    animation-direction: reverse;
    animation-duration: 50s;
}

@keyframes scrollRow {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 10px)); }
}

.catalog-item {
    width: 170px;
    height: 250px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    position: relative;
    border: 1px solid var(--border-color);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.catalog-item:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(229, 9, 20, 0.3);
}

.catalog-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}

.catalog-info {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    z-index: 2;
}

.catalog-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.catalog-category {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
}

/* Pricing Section */
.pricing {
    position: relative;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.pricing-card.popular {
    border-color: var(--primary);
    background: radial-gradient(circle at top right, rgba(229, 9, 20, 0.12) 0%, var(--bg-card) 60%);
    box-shadow: 0 15px 45px rgba(229, 9, 20, 0.15);
}

.pricing-card.popular::after {
    content: 'MÁS POPULAR';
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.05em;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.pricing-card.popular:hover {
    border-color: var(--primary-hover);
    box-shadow: 0 20px 45px rgba(229, 9, 20, 0.25);
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.plan-price {
    margin-bottom: 24px;
}

.price-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.price-period {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.price-saving {
    display: inline-block;
    background: rgba(46, 213, 115, 0.15);
    color: #2ed573;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    margin-top: 8px;
}

.plan-features {
    list-style: none;
    margin-bottom: 35px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.plan-features li i {
    color: var(--primary);
    font-size: 1rem;
}

.plan-features li.check i {
    color: #2ed573;
}

.btn-plan {
    margin-top: auto;
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: #fff;
}

.pricing-card.popular .btn-plan,
.pricing-card:hover .btn-plan {
    background: linear-gradient(135deg, var(--primary) 0%, #b81d24 100%);
    border: none;
    box-shadow: 0 8px 20px var(--primary-glow);
}

/* Download Section */
.downloads {
    background: linear-gradient(180deg, var(--bg-primary) 0%, #110204 100%);
    position: relative;
}

.download-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.download-left h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.download-left p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.download-tabs {
    display: flex;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 30px;
}

.tab-btn {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px 16px;
    position: relative;
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.direct-download {
    text-align: left;
}

.btn-download-apk {
    background: linear-gradient(135deg, var(--primary) 0%, #b81d24 100%);
    color: #fff;
    padding: 18px 40px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px var(--primary-glow);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-download-apk:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(229, 9, 20, 0.5);
}

.downloader-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    background: rgba(229, 9, 20, 0.1);
    color: var(--primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--font-heading);
    flex-shrink: 0;
    border: 1px solid rgba(229, 9, 20, 0.2);
}

.step-text h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: #fff;
}

.step-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.downloader-code {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 6px;
}

.download-right {
    display: flex;
    justify-content: center;
}

.mockup-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
}

.mockup-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.15) 0%, transparent 60%);
    z-index: 1;
}

.device-mockup {
    position: relative;
    z-index: 2;
    width: 100%;
    border-radius: 36px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    border: 6px solid #222;
    aspect-ratio: 9 / 16;
    background: #000;
    overflow: hidden;
}

.device-screen {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* FAQ Section */
.faq {
    position: relative;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.faq-question {
    width: 100%;
    padding: 24px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.faq-question i {
    color: var(--primary);
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-answer-inner {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-top: 1px solid transparent;
}

.faq-item.active {
    border-color: var(--border-hover);
    background: rgba(22, 22, 22, 0.95);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 1000px; /* arbitrary large value for smooth auto-height */
    transition: max-height 0.5s cubic-bezier(1, 0, 1, 0);
}

.faq-item.active .faq-answer-inner {
    border-color: var(--border-color);
}

/* CTA Footer Section */
.cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, #180204 0%, #080808 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner h2 {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.cta-banner p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Footer */
footer {
    background: #050505;
    padding: 60px 0 30px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand p {
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-brand .social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-secondary);
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links ul a {
    color: var(--text-secondary);
}

.footer-links ul a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-disclaimer {
    width: 100%;
    margin-top: 15px;
    text-align: center;
    font-size: 0.8rem;
    color: #555555;
    line-height: 1.4;
}

/* Mobile Menu Toggle classes */
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(8, 8, 8, 0.98);
    border-bottom: 1px solid var(--border-color);
    padding: 40px 24px;
    gap: 24px;
    z-index: 999;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .download-layout {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .download-left {
        order: 1;
    }
    
    .download-right {
        order: 2;
    }
    
    .download-tabs {
        justify-content: center;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.05rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-item {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 16px;
    }
    
    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
