/* --- VARIABLES --- */
:root {
    --bg-dark: #0B1120; /* Fondo principal muy oscuro */
    --bg-card: rgba(30, 41, 59, 0.7); /* Glass effect base */
    --primary: #06b6d4; /* Cian Vibrante */
    --primary-glow: rgba(6, 182, 212, 0.5);
    --secondary: #3b82f6; /* Azul Real */
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --accent: #8b5cf6; /* Violeta para detalles */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-glass: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- RESET & BASICS --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- UTILITIES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    color: transparent;
}
.highlight { color: var(--primary); }

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0; width: 100%; z-index: 1000;
    background: rgba(11, 17, 32, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: var(--border-glass);
    padding: 15px 0;
}
.nav-container {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.logo { height: 50px; width: auto; }

.nav-links a {
    margin: 0 15px; font-weight: 500; font-size: 0.95rem;
    position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 0; background: var(--primary); transition: 0.3s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }
.mobile-only-link { display: none; }

.btn-login {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    padding: 8px 20px; border-radius: 50px; color: white;
    font-weight: 600; box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5); }

.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: white; }

/* --- HERO SECTION --- */
.hero {
    height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative; overflow: hidden;
    padding-top: 60px;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 20px; }

/* Background Blobs Animation */
.glow-bg {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; z-index: 1;
    animation: move 10s infinite alternate;
}
.glow-1 { width: 400px; height: 400px; background: var(--secondary); top: -100px; left: -100px; }
.glow-2 { width: 300px; height: 300px; background: var(--accent); bottom: -50px; right: -50px; animation-duration: 15s; }

@keyframes move { from { transform: translate(0,0); } to { transform: translate(30px, 50px); } }

.badge {
    background: rgba(6, 182, 212, 0.1); color: var(--primary);
    padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600;
    border: 1px solid rgba(6, 182, 212, 0.3); margin-bottom: 20px; display: inline-block;
}
.hero h1 {
    font-family: var(--font-heading); font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; font-weight: 800;
}
.hero-sub { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 30px; }

.hero-buttons { display: flex; gap: 15px; justify-content: center; }
.btn-primary {
    background: var(--primary); color: var(--bg-dark); padding: 14px 32px;
    border-radius: 8px; font-weight: 700; border: none; cursor: pointer; transition: 0.3s;
}
.btn-primary:hover { background: #fff; transform: translateY(-3px); }

.btn-secondary {
    background: transparent; border: 1px solid var(--text-muted); color: var(--text-main);
    padding: 14px 32px; border-radius: 8px; font-weight: 600; cursor: pointer;
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* --- CARDS & GLASSMORPHISM --- */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 10px; }
.section-header p { color: var(--text-muted); }

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: var(--border-glass);
    border-radius: 16px;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* --- ABOUT --- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.icon-box { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }
.card h3 { margin-bottom: 10px; font-family: var(--font-heading); }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* --- PLANES --- */
.pricing-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 25px; align-items: center; }
.plan-card { flex: 1; min-width: 300px; max-width: 350px; text-align: center; position: relative; }

.plan-card.popular {
    transform: scale(1.05);
    background: linear-gradient(180deg, rgba(30,41,59,0.9), rgba(15,23,42,0.9));
    border: 1px solid var(--primary);
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.15);
    z-index: 2;
}
.badge-popular {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: var(--bg-dark); padding: 5px 15px;
    border-radius: 20px; font-size: 0.8rem; font-weight: 800; text-transform: uppercase;
}
.price { font-size: 2.5rem; font-weight: 800; margin: 20px 0; font-family: var(--font-heading); }
.currency { font-size: 1.2rem; }
.period { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }
.features { margin-bottom: 30px; text-align: left; }
.features li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--text-muted); }
.features li i { color: var(--primary); margin-right: 10px; width: 20px; }
.features li.disabled i { color: #475569; }

.btn-outline {
    width: 100%; padding: 12px; border: 1px solid var(--text-muted); background: transparent;
    color: white; border-radius: 8px; cursor: pointer; transition: 0.3s;
}
.btn-outline:hover { background: white; color: var(--bg-dark); }
.glow-btn { width: 100%; box-shadow: 0 0 15px var(--primary-glow); }

/* --- TESTIMONIOS --- */
.test-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.stars { color: #fbbf24; margin-bottom: 15px; }
.user-row { display: flex; align-items: center; margin-top: 20px; gap: 15px; }
.avatar-circle {
    width: 45px; height: 45px; background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: bold;
}
.user-info { text-align: left; }
.user-info strong { display: block; font-size: 0.9rem; }
.user-info span { font-size: 0.8rem; color: var(--text-muted); }

/* --- CHATBOT UI --- */
.chatbot-btn {
    position: fixed; bottom: 30px; right: 30px;
    width: 60px; height: 60px; background: var(--primary);
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    color: var(--bg-dark); font-size: 24px; cursor: pointer;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4); z-index: 2000;
    transition: transform 0.3s;
}
.chatbot-btn:hover { transform: scale(1.1) rotate(10deg); }

.chatbot-window {
    position: fixed; bottom: 100px; right: 30px; width: 320px; height: 450px;
    background: #1e293b; border-radius: 16px; display: none;
    flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    z-index: 2000; overflow: hidden; border: 1px solid rgba(255,255,255,0.1);
}
.chat-header {
    background: linear-gradient(to right, #0f172a, #1e293b);
    padding: 15px; display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.chat-body { flex: 1; padding: 15px; overflow-y: auto; background: #0f172a; }
.msg-bot {
    background: #334155; padding: 10px 15px; border-radius: 12px 12px 12px 0;
    margin-bottom: 10px; max-width: 85%; font-size: 0.9rem;
}
.msg-user {
    background: var(--primary); color: #0f172a;
    padding: 10px 15px; border-radius: 12px 12px 0 12px;
    margin-bottom: 10px; margin-left: auto; max-width: 85%; font-size: 0.9rem;
    text-align: right;
}
.chat-input-area {
    padding: 15px; background: #1e293b; display: flex; gap: 10px;
}
.chat-input-area input {
    flex: 1; background: #0f172a; border: 1px solid #334155;
    padding: 10px; border-radius: 6px; color: white; outline: none;
}
.chat-input-area button {
    background: var(--primary); border: none; width: 40px; border-radius: 6px; cursor: pointer;
}

/* --- FOOTER --- */
footer { background: #020617; padding: 60px 0 20px; border-top: var(--border-glass); margin-top: 50px; }
.footer-content { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-col h3, .footer-col h4 { color: white; margin-bottom: 20px; }
.footer-col p, .footer-col a { color: var(--text-muted); display: block; margin-bottom: 10px; font-size: 0.9rem; }
.socials a { display: inline-block; font-size: 1.2rem; margin-right: 15px; color: white; }
.copyright { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); color: #475569; font-size: 0.8rem; }

/* --- MODAL --- */
.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
    z-index: 3000; justify-content: center; align-items: center;
}
.modal-content { width: 90%; max-width: 500px; position: relative; }
.close-modal { position: absolute; right: 20px; top: 15px; font-size: 1.5rem; cursor: pointer; }
.modal-content input, .modal-content textarea {
    width: 100%; background: rgba(0,0,0,0.3); border: 1px solid #475569;
    padding: 12px; margin-bottom: 15px; border-radius: 6px; color: white;
}

/* --- ANIMACIONES FADE IN --- */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-links {
        position: fixed; top: 70px; left: 0; width: 100%; height: 0;
        background: #0B1120; overflow: hidden; flex-direction: column;
        align-items: center; transition: 0.3s;
    }
    .nav-links.active { height: 300px; padding: 20px 0; border-bottom: 1px solid var(--primary); }
    .nav-links a { margin: 15px 0; font-size: 1.2rem; }
    .mobile-only-link { display: block; }
    .nav-actions .btn-login { display: none; } /* Ocultar botón escritorio en móvil */
    .menu-toggle { display: block; }
    
    .plan-card.popular { transform: scale(1); }
    .chatbot-window { width: 90%; right: 5%; bottom: 100px; }
}