:root {
    --celeste: #00BCD4;
    --celeste-glow: rgba(0, 188, 212, 0.15);
    --bg-deep: #0f172a;
    --blue-glow: #1e3a8a;
    
    --card-bg: rgba(30, 41, 59, 0.65);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(0, 188, 212, 0.15);
    --warning-color: #ffcc00;
    --danger-color: #ff4757;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

/* --- FONDO MODERNO FUSIONADO --- */
body {
    background-color: var(--bg-deep);
    background-image: 
        radial-gradient(circle at 50% 0%, var(--blue-glow) 0%, transparent 50%),
        radial-gradient(circle at 80% 0%, var(--celeste-glow) 0%, transparent 50%),
        radial-gradient(circle at 20% 0%, var(--celeste-glow) 0%, transparent 50%);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex; 
    flex-direction: column;
}

/* Cuadrícula tecnológica sutil */
body::before {
    content: '';
    position: fixed; 
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgb3BhY2l0eT0iMC4wMyI+PHBhdGggZD0iTTAgMGg0MHY0MEgwVjB6bTIwIDIwaDIwdjIwSDIwVjIweiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg==');
    pointer-events: none; 
    z-index: -1;
}

/* --- NAVEGACIÓN --- */
nav { position: fixed; top: 0; width: 100%; padding: 20px 8%; display: flex; justify-content: space-between; align-items: center; background: transparent; z-index: 100; }
.logo { font-size: 28px; font-weight: 900; display: flex; align-items: center; gap: 12px; letter-spacing: -0.5px; color: var(--text-main); text-decoration: none; cursor: pointer; transition: 0.3s;}
.logo:hover { opacity: 0.8; }
.nav-links { display: flex; gap: 40px; list-style: none; align-items: center;}
.nav-links a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 14px; transition: 0.3s; display: flex; align-items: center; gap: 6px; }
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }
.nav-external:hover { color: var(--celeste) !important; }

/* Botón especial para Iniciar Sesión en la Navbar */
.btn-nav {
    background: rgba(0, 188, 212, 0.1);
    color: var(--celeste) !important;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid var(--celeste);
    font-weight: 600 !important;
}
.btn-nav:hover {
    background: var(--celeste);
    color: #000 !important;
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.4);
}

/* --- ESTRUCTURA PRINCIPAL --- */
main { padding-top: 90px; flex: 1; display: flex; flex-direction: column; align-items: center; width: 100%; }

/* --- HERO --- */
.hero { text-align: center; padding: 40px 20px 60px; max-width: 850px; }
.badge { padding: 8px 18px; border-radius: 50px; font-size: 13px; font-weight: 700; margin-bottom: 24px; display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 1px; }

.badge-warning {
    background: rgba(255, 204, 0, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(255, 204, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.1);
}

h1 { font-size: 4.5rem; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 24px; color: white;}
.text-gradient { background: linear-gradient(135deg, #ffffff 0%, var(--celeste) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px; line-height: 1.6; }

.hero-buttons { display: flex; gap: 16px; justify-content: center; }
button { padding: 16px 32px; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 10px; border: none; transition: 0.3s; }
.btn-primary { background: var(--celeste); color: #000; box-shadow: 0 0 20px rgba(0, 188, 212, 0.3); }
.btn-primary:hover { box-shadow: 0 12px 35px rgba(0, 188, 212, 0.5); transform: translateY(-3px);}
.btn-secondary { background: rgba(255, 255, 255, 0.05); color: var(--text-main); border: 1px solid rgba(255, 255, 255, 0.1); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--celeste); }

/* --- SECCIONES GENERALES --- */
.features, .how-it-works-preview, .faq, .legal-section { padding: 60px 8%; max-width: 1200px; width: 100%; margin: 0 auto;}
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.8rem; margin-bottom: 12px; color: white; letter-spacing: -1px; }
.section-title p { color: var(--text-muted); font-size: 1.15rem; line-height: 1.6; max-width: 700px; margin: 0 auto; }

/* --- CARACTERÍSTICAS (GRID) --- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.feature-card { background: var(--card-bg); padding: 40px; border-radius: 24px; border: 1px solid var(--border-color); backdrop-filter: blur(12px); transition: 0.4s; }
.feature-card:hover { border-color: var(--celeste); transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3); }
.icon-box { width: 55px; height: 55px; background: rgba(0, 188, 212, 0.1); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; color: var(--celeste); font-size: 28px; }
.feature-card h3 { font-size: 1.3rem; margin-bottom: 12px; color: white; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* --- CÓMO FUNCIONA PREVIEW (MINI CARDS) --- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; width: 100%; }
.step-mini-card { background: rgba(30, 41, 59, 0.4); border: 1px solid var(--border-color); border-radius: 20px; padding: 35px 25px; text-align: center; backdrop-filter: blur(8px); transition: 0.3s; }
.step-mini-card:hover { border-color: var(--celeste); background: var(--card-bg); transform: translateY(-5px); }
.step-icon { width: 60px; height: 60px; background: var(--celeste-glow); color: var(--celeste); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 20px; }
.step-mini-card h4 { font-size: 1.3rem; margin-bottom: 12px; color: white; }
.step-mini-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }

/* --- FAQ --- */
.faq { max-width: 900px; padding-bottom: 100px; } 
.faq-container { display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 20px 24px; backdrop-filter: blur(12px); transition: 0.3s; cursor: pointer; }
.faq-item:hover { border-color: var(--celeste); }
.faq-item summary { font-size: 1.1rem; font-weight: 700; color: var(--text-main); list-style: none; display: flex; justify-content: space-between; align-items: center; outline: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { color: var(--celeste); transition: transform 0.3s; font-size: 1.3rem; }
.faq-item[open] summary i { transform: rotate(180deg); }
.faq-item p { margin-top: 16px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 16px; }

/* --- DOCUMENTOS LEGALES (TOS) --- */
/* Eliminado el padding-top para que el contenido suba hacia la barra de navegación */
.legal-section { max-width: 1000px; padding-top: 10px; padding-bottom: 80px; } 
.legal-section .section-title { margin-bottom: 20px; } /* Reducido el margen inferior para juntar el título con las tarjetas */

/* Nueva animación nativa para que cargue apenas se entra sin necesidad de scrollear */
@keyframes fadeInLoad {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

.legal-content { 
    display: flex; 
    flex-direction: column; 
    gap: 30px; /* Reducido para compactar visualmente */
    background: var(--card-bg); 
    border: 1px solid var(--border-color); 
    backdrop-filter: blur(12px); 
    border-radius: 24px; 
    padding: 40px; /* Padding interno reducido para aprovechar pantalla */
    box-shadow: 0 10px 40px rgba(0,0,0,0.2); 
    animation: fadeInLoad 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; /* Añadida animación independiente */
}

.legal-block { display: flex; gap: 24px; align-items: flex-start; }
.legal-number { flex-shrink: 0; width: 42px; height: 42px; background: rgba(0, 188, 212, 0.1); border: 1px solid var(--celeste); color: var(--celeste); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; box-shadow: 0 0 15px rgba(0, 188, 212, 0.15); }
.legal-number.danger { background: rgba(255, 71, 87, 0.1); border-color: var(--danger-color); color: var(--danger-color); box-shadow: 0 0 15px rgba(255, 71, 87, 0.15); }
.legal-text { flex: 1; }
.legal-text h3 { font-size: 1.4rem; margin-bottom: 16px; color: white; display: flex; align-items: center; gap: 10px; }
.legal-text p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; margin-bottom: 16px; }
.legal-text strong { color: var(--text-main); font-weight: 600; }
.legal-text ul { list-style: none; margin-bottom: 16px; margin-top: 8px; }
.legal-text ul li { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 10px; position: relative; padding-left: 24px; }
.legal-text ul li::before { content: '•'; color: var(--celeste); position: absolute; left: 0; font-weight: bold; font-size: 1.2rem; top: -2px;}
.legal-text a { color: var(--celeste); text-decoration: none; transition: 0.3s; }
.legal-text a:hover { text-decoration: underline; text-shadow: 0 0 8px rgba(0, 188, 212, 0.4); }
.legal-notice { background: rgba(255, 204, 0, 0.05); border: 1px solid rgba(255, 204, 0, 0.2); border-radius: 12px; padding: 16px 20px; margin-top: 20px; }
.legal-notice p { color: rgba(255, 255, 255, 0.85); margin-bottom: 0; font-size: 0.9rem; }

/* --- FOOTER --- */
.site-footer { width: 100%; background: rgba(15, 23, 42, 0.95); border-top: 1px solid var(--border-color); padding: 60px 8% 20px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.footer-brand p { color: var(--text-muted); margin-top: 16px; font-size: 0.9rem; line-height: 1.6; max-width: 350px; }
.footer-links h4 { color: white; margin-bottom: 20px; font-size: 1.1rem; }
.footer-links a { display: flex; align-items: center; gap: 8px; color: var(--text-muted); text-decoration: none; margin-bottom: 14px; font-size: 0.9rem; transition: 0.3s; }
.footer-links a:hover { color: var(--celeste); transform: translateX(5px); }
.footer-bottom { text-align: center; padding-top: 24px; color: rgba(255,255,255,0.4); font-size: 0.85rem; }

/* --- ARQUITECTURA (CÓMO FUNCIONA EXPANDIDO) --- */
.how-it-works { padding: 40px 0; }
.steps-container { display: flex; flex-direction: column; gap: 32px; }
.step-card { background: var(--card-bg); border: 1px solid var(--border-color); backdrop-filter: blur(12px); border-radius: 24px; padding: 35px; display: flex; gap: 32px; align-items: flex-start; transition: 0.3s;}
.step-number { font-size: 2.2rem; font-weight: 900; color: transparent; -webkit-text-stroke: 1px var(--celeste); opacity: 0.6; }
.step-info { flex: 1; }
.step-info h3 { font-size: 1.4rem; margin-bottom: 10px; color: white;}
.step-info p { color: var(--text-muted); font-size: 1rem; line-height: 1.6;}
.step-info ul { margin-top: 15px; margin-left: 20px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.step-info ul li { margin-bottom: 8px; }

/* Estilos y animaciones de la terminal */
.mockup-terminal { background: rgba(0,0,0,0.5); border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); overflow: hidden; margin-top: 20px; width: 100%; transition: all 0.4s ease; }
.step-card:hover .mockup-terminal { border-color: var(--celeste); box-shadow: 0 10px 30px rgba(0, 188, 212, 0.15); transform: translateY(-4px); }
.terminal-header { background: rgba(255,255,255,0.07); padding: 12px; display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-body { padding: 20px; font-family: monospace; font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* --- ANIMACIONES REVEAL (SCROLL) --- */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- RESPONSIVIDAD --- */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px;}
    .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
    nav { flex-direction: column; gap: 16px; padding: 15px 5%; }
    main { padding-top: 110px; }
    .nav-links { gap: 20px; flex-wrap: wrap; justify-content: center; }
    h1 { font-size: 3rem; }
    .hero p { font-size: 1.1rem; }
    .hero-buttons { flex-direction: column; }
    .section-title h2 { font-size: 2.2rem; }
    .step-card { flex-direction: column; gap: 16px; padding: 25px; }
    .legal-content { padding: 30px 20px; }
    .legal-block { flex-direction: column; gap: 16px; }
    .legal-number { width: 36px; height: 36px; font-size: 1rem; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: span 1; }
    h1 { font-size: 2.5rem; }
}