/* ==========================================
     ARCHIVO: css/style.css
     ========================================== */

/* --- VARIABLES & TOKENS --- */
:root {
    --bg-main: #192229;
    --bg-secondary: #212E36;
    --primary: #75D4DB;
    --primary-hover: #5bbcc4;
    --purple: #b075db; /* Color complementario extraído del logo */
    --purple-hover: #9c5ec8;
    --text-main: #D7D8E0;
    --text-muted: #8b97a2;
    --white: #ffffff;
    
    --glass-bg: rgba(33, 46, 54, 0.4);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    
    --font-family: 'Poppins', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- RESET --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-family); background-color: var(--bg-main); color: var(--text-main); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- UTILITIES --- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-padding { padding: 10rem 0; }
.bg-secondary { background-color: var(--bg-secondary); }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.text-small { font-size: 0.9rem; color: var(--text-muted); }

/* Typography */
h1, h2, h3, h4, h5, h6 { color: var(--white); font-weight: 600; line-height: 1.2; }
.text-primary { color: var(--primary); }
.text-purple { color: var(--purple); }
.text-gradient { background: linear-gradient(135deg, var(--primary), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.section-title { font-size: 3rem; margin-bottom: 1rem; letter-spacing: -1px; }
.section-header p { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 4rem auto; }
.lead { font-size: 1.2rem; font-weight: 500; color: var(--white); margin-bottom: 1rem; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4rem; }

/* Glassmorphism */
.glass-card { background: var(--glass-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--glass-border); border-radius: 20px; padding: 2.5rem; box-shadow: var(--glass-shadow); transition: var(--transition); }
.glass-card:hover { transform: translateY(-5px); border-color: rgba(117, 212, 219, 0.2); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4); }

/* Detalle de color alterno para romper la monotonía */
.border-accent-purple:hover { border-color: rgba(176, 117, 219, 0.3) !important; }

/* Buttons */
.btn { display: inline-flex; justify-content: center; align-items: center; padding: 0.8rem 2rem; border-radius: 8px; font-weight: 500; transition: var(--transition); text-align: center; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-full { width: 100%; }
.btn-primary { background: var(--primary); color: var(--bg-main); font-weight: 600; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(117,212,219,0.3); }

/* --- NAVBAR --- */
.navbar { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 1.5rem 0; transition: var(--transition); }
.navbar.scrolled { background: rgba(25,34,41,0.85); backdrop-filter: blur(16px); padding: 1rem 0; border-bottom: 1px solid var(--glass-border); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--white); letter-spacing: -0.5px; }
.nav-menu { display: flex; align-items: center; gap: 2.5rem; }
.nav-list { display: flex; gap: 2rem; }
.nav-link { font-size: 0.95rem; font-weight: 500; color: var(--text-main); }
.nav-link:hover { color: var(--primary); }
.hamburger { display: none; width: 30px; height: 20px; position: relative; z-index: 1001; }
.hamburger .bar { position: absolute; width: 100%; height: 2px; background: var(--white); transition: var(--transition); }
.hamburger .bar:nth-child(1) { top: 0; }
.hamburger .bar:nth-child(2) { top: 9px; }
.hamburger .bar:nth-child(3) { top: 18px; }

/* --- HERO --- */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 100px; overflow: hidden; }
.hero-glow { position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%); width: 800px; height: 800px; background: radial-gradient(circle, rgba(176,117,219,0.12) 0%, rgba(117,212,219,0.08) 40%, rgba(25,34,41,0) 70%); z-index: -1; border-radius: 50%; }
.hero-content { text-align: center; max-width: 900px; margin: 0 auto 4rem auto; }
.badge { display: inline-block; padding: 0.5rem 1.2rem; border-radius: 50px; background: rgba(176, 117, 219, 0.1); border: 1px solid rgba(176, 117, 219, 0.25); font-size: 0.85rem; color: var(--white); margin-bottom: 1.5rem; }
.hero-title { font-size: 4.5rem; letter-spacing: -2px; margin-bottom: 1.5rem; line-height: 1.1; }
.hero-subtitle { font-size: 1.2rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 2.5rem auto; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; margin-bottom: 4rem; }

/* --- TIMELINE --- */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 24px; top: 0; height: 100%; width: 2px; background: linear-gradient(to bottom, var(--primary), var(--purple)); }
.timeline-item { position: relative; padding-left: 80px; margin-bottom: 3rem; }
.timeline-dot { position: absolute; left: 0; top: 0; width: 50px; height: 50px; background: var(--bg-main); border: 2px solid var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--primary); font-size: 1.2rem; z-index: 1; }
.timeline-dot-purple { border-color: var(--purple); color: var(--purple); }
.timeline-content h3 { margin-bottom: 0.5rem; color: var(--white); }

/* --- BENEFITS --- */
.benefit-card .icon { font-size: 2rem; margin-bottom: 1rem; }
.benefit-card h4 { margin-bottom: 0.5rem; }

/* --- PLANS --- */
.tarjeta-precio { max-width: 500px; margin: 0 auto; }
.plan-card { position: relative; display: flex; flex-direction: column; }
.plan-card.premium { border-color: var(--primary); box-shadow: 0 0 30px rgba(117,212,219,0.1); transform: scale(1.05); z-index: 2; }
.plan-card.premium:hover { transform: scale(1.05) translateY(-5px); }
.popular-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--primary), var(--purple)); color: var(--bg-main); padding: 0.5rem 1.5rem; border-radius: 20px; font-weight: 700; font-size: 0.85rem; }
.plan-desc { color: var(--text-muted); font-size: 0.9rem; margin: 1rem 0; min-height: 60px; }
.price { font-size: 2rem; font-weight: 700; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--glass-border); }
.plan-features { margin-bottom: 2.5rem; }
.plan-features li { padding: 0.8rem 0; font-size: 0.95rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.plan-features li::before { content: '✓'; color: var(--primary); margin-right: 10px; font-weight: bold; }

/* --- FAQ --- */
.faq-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { padding: 1.5rem 2rem; cursor: pointer; }
.faq-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; color: var(--white); font-size: 1.1rem; font-weight: 500; text-align: left; }
.faq-btn .icon { font-size: 1.5rem; color: var(--primary); transition: var(--transition); }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-content p { color: var(--text-muted); padding-top: 1rem; }
.faq-item.active .faq-btn .icon { transform: rotate(45deg); color: var(--purple); }
.faq-item.active { border-color: rgba(176,117,219,0.3); }

/* ==========================================================
   SECCIÓN CTA (ELEGANTE, SUAVE Y AGRADABLE A LA VISTA)
   ========================================================== */
.cta-section {
    padding: 6rem 0;
}
.cta-wrapper {
    background: linear-gradient(135deg, rgba(33, 46, 54, 0.8) 0%, rgba(25, 34, 41, 0.95) 100%);
    border: 1px solid rgba(176, 117, 219, 0.3);
    border-radius: 24px;
    padding: 4.5rem 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}
.cta-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, rgba(176, 117, 219, 0.12) 0%, transparent 60%);
    pointer-events: none;
}
.cta-content {
    position: relative;
    z-index: 1;
}
.btn-cta {
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: #11151a;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 1.1rem 3rem;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(176, 117, 219, 0.3);
    filter: brightness(1.08);
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer { position: relative; padding: 4rem 0 2rem 0; background: linear-gradient(to bottom, var(--bg-main), #11151a); }
.footer::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 60%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--purple), var(--primary), transparent);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.footer-brand p { margin-top: 1rem; line-height: 1.7; color: var(--text-muted); padding-right: 2rem; }
.footer-links h4, .footer-social h4 { margin-bottom: 1.5rem; color: var(--white); font-size: 1.1rem; }
.footer-links ul li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--text-muted); font-size: 0.95rem; display: inline-block; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); transform: translateX(5px); }

.social-links { display: flex; gap: 1rem; }
.social-icon { width: 45px; height: 45px; border-radius: 50%; background: rgba(255,255,255,0.03); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 700; border: 1px solid var(--glass-border); color: var(--text-main); transition: var(--transition); }
.social-icon:hover { background: var(--purple); color: var(--white); border-color: var(--purple); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(176,117,219,0.3); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 2rem; color: rgba(255,255,255,0.4); font-size: 0.9rem; }

/* ==========================================================
   BOTÓN SUBIR ARRIBA (15px DEL BORDE DERECHO)
   ========================================================== */
.scroll-top { 
    position: fixed; 
    bottom: 20px; 
    right: 15px; 
    width: 50px; 
    height: 50px; 
    background: var(--primary); 
    color: var(--bg-main); 
    border-radius: 50%; 
    font-size: 1.5rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    opacity: 0; 
    visibility: hidden; 
    transition: var(--transition); 
    z-index: 999; 
    box-shadow: 0 5px 15px rgba(117,212,219,0.3); 
    cursor: pointer; 
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-5px); background: var(--purple); color: var(--white); }

/* --- ANIMATIONS --- */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .plan-card.premium { transform: none; }
    .plan-card.premium:hover { transform: translateY(-5px); }
}

@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; }
    .section-padding { padding: 6rem 0; }
    
    .cta-wrapper { padding: 3rem 1.5rem; }
    .cta-wrapper .section-title { font-size: 2rem; }
    
    .hamburger { display: block; }
    .nav-menu { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: var(--bg-main); flex-direction: column; justify-content: center; transition: 0.4s ease-in-out; }
    .nav-menu.active { right: 0; }
    .nav-list { flex-direction: column; text-align: center; font-size: 1.2rem; }
    
    .hamburger.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { padding-right: 0; }
    .social-links { justify-content: center; }
    .footer::before { width: 90%; }
}

/* ==========================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================== */
.whatsapp-flotante {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    left: 20px; 
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    z-index: 9999;
    transition: transform 0.3s ease;
}
.whatsapp-flotante:hover {
    transform: scale(1.1);
    color: #FFF;
}