/*==================================================
  FLUJO TV - PREMIUM UI/UX
==================================================*/

:root {
    --primary: #ff7300;
    --primary-hover: #ff9500;
    --primary-glow: rgba(255, 115, 0, 0.3);
    --bg-dark: #09090b;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #a1a1aa;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/*======================
  FONDOS Y AMBIENTE
======================*/
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(circle at 15% 50%, rgba(255, 115, 0, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(255, 149, 0, 0.08) 0%, transparent 40%);
    z-index: -2;
    pointer-events: none;
}

.background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.background span {
    position: absolute;
    display: block;
    width: 300px;
    height: 300px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite alternate;
}

.background span:nth-child(1) { top: 10%; left: -10%; animation-duration: 25s; }
.background span:nth-child(2) { top: 60%; left: 20%; animation-duration: 22s; }
.background span:nth-child(3) { top: 20%; right: -5%; animation-duration: 28s; }
.background span:nth-child(4) { bottom: -10%; right: 15%; animation-duration: 20s; }
.background span:nth-child(5) { top: 50%; left: 50%; transform: translate(-50%, -50%); animation-duration: 30s; }

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, -60px); }
}

/*======================
  HEADER & NAVEGACIÓN
======================*/
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(9, 9, 11, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 999;
    transition: var(--transition);
}

header.scrolled {
    padding: 15px 8%;
    background: rgba(9, 9, 11, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.logo span {
    color: var(--primary);
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

nav a:hover::after { width: 100%; }
nav a:hover { color: var(--primary); }

.header-btn {
    padding: 10px 24px;
    background: var(--primary);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    color: white;
    transition: var(--transition);
    border: 1px solid transparent;
}

.header-btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 25px var(--primary-glow);
    transform: translateY(-2px);
}

/*======================
  HERO SECTION
======================*/
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 130px 8% 50px; /* Reducido para evitar exceso de espacio */
    text-align: center;
    position: relative;
}

.hero-text {
    max-width: 900px;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero h1 span {
    display: block;
    background: linear-gradient(135deg, #ff9500, #ff5e00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(255, 115, 0, 0.2);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn.orange {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn.orange:hover {
    background: var(--primary-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 35px var(--primary-glow);
}

.btn.dark {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    color: white;
}

.btn.dark:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

/*======================
  SECCIONES GENERALES
======================*/
section {
    padding: 70px 8%; /* Espaciado general reducido */
    position: relative;
    z-index: 2;
}

section h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 60px;
    letter-spacing: -0.5px;
}

/*======================
  BENEFICIOS
======================*/
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 40px 30px;
    border: 1px solid var(--border-glass);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    will-change: transform;
}

.card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 115, 0, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.icon {
    font-size: 40px;
    margin-bottom: 24px;
    color: var(--primary);
    background: rgba(255, 115, 0, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.card h3 {
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 600;
}

.card p {
    color: var(--text-muted);
    font-size: 15px;
}

/*======================
  PLANES
======================*/
.plans-subtitle {
    text-align: center;
    margin: -40px auto 60px;
    color: var(--text-muted);
    max-width: 600px;
    font-size: 16px;
}

.plan-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: center;
}

.plan {
    position: relative;
    background: rgba(20, 20, 22, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 30px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--border-glass);
    transition: var(--transition);
    will-change: transform;
}

.plan:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.plan.featured {
    border: 1px solid var(--primary);
    background: linear-gradient(180deg, rgba(255, 115, 0, 0.05) 0%, rgba(20, 20, 22, 0.9) 100%);
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 115, 0, 0.15);
}

.plan.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.tag {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    padding: 6px 20px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    color: white;
    letter-spacing: 1px;
}

.plan h3 {
    font-size: 24px;
    font-weight: 600;
}

.price {
    font-size: 56px;
    font-weight: 800;
    color: white;
    margin: 20px 0;
    line-height: 1;
}

.price span {
    font-size: 20px;
    color: var(--text-muted);
    font-weight: 500;
}

.bonus {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.plan ul {
    list-style: none;
    margin-bottom: 35px;
    text-align: left;
}

.plan li {
    margin: 16px 0;
    color: var(--text-muted);
    font-size: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.buy-btn {
    display: block;
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-glass);
}

.plan.featured .buy-btn,
.buy-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 8px 20px var(--primary-glow);
}

.plan.featured .buy-btn:hover {
    background: var(--primary-hover);
}

/*======================
  DESCARGAS
======================*/
.download {
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(255,115,0,0.03));
    padding: 80px 8%;
}

.download p {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 18px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: white;
    padding: 16px 32px;
    border-radius: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.download-btn i {
    font-size: 24px;
    color: var(--primary);
}

/*======================
  FOOTER
======================*/
footer {
    background: #050505;
    padding: 60px 8% 30px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--primary);
}

footer p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
}

.footer-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.footer-buttons a {
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    color: white;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-glass);
}

.footer-buttons a:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.copy {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
    color: #555;
}

/*======================
  SCROLLBAR
======================*/
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { 
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 10px; 
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/*======================
  UTILIDADES Y EFECTOS MODERNOS (Blur-Up)
======================*/
.hidden {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    filter: blur(8px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.8s ease;
}

.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.mouse-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 115, 0, 0.06), transparent 60%);
    transform: translate(-50%, -50%);
    z-index: -1;
    will-change: transform;
}

/*======================
  BOTONES FLOTANTES (WhatsApp y Arriba)
======================*/
.whatsapp {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: white;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 105px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    text-decoration: none;
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 10px 25px var(--primary-glow);
    transform: translateY(-5px);
}

/*======================
  RESPONSIVE DESING
======================*/
@media (max-width: 992px) {
    header { padding: 15px 5%; }
    section { padding: 80px 5%; }
    .plan.featured { transform: scale(1); }
    .plan.featured:hover { transform: translateY(-5px); }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 20px 5%;
    }
    nav { gap: 20px; justify-content: center; flex-wrap: wrap; }
    .hero { padding-top: 180px; }
    .hero-buttons { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
    .btn { width: 100%; }
    .download-buttons { flex-direction: column; align-items: center; }
    .download-btn { width: 100%; max-width: 350px; justify-content: center; }
}

@media (max-width: 480px) {
    .logo { font-size: 24px; }
    nav a { font-size: 14px; }
    .cards, .plan-container { grid-template-columns: 1fr; }
    .card, .plan { padding: 30px 20px; }
    .price { font-size: 46px; }
    .whatsapp { right: 20px; bottom: 20px; width: 55px; height: 55px; font-size: 28px; }
    .back-to-top { right: 20px; bottom: 85px; width: 45px; height: 45px; font-size: 16px; }
}