@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    --bg-dark: #050810;
    --text-white: #ffffff;
    --text-gray: #cbd5e1;
    --neon-blue: #2563eb;
    --neon-blue-light: #3b82f6;
    --neon-green: #10b981;
    --neon-red: #ef4444;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(59, 130, 246, 0.3);
}

html { scrollbar-width: none; scroll-behavior: smooth; }
html::-webkit-scrollbar { display: none; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body { background-color: var(--bg-dark); color: var(--text-white); min-height: 100vh; overflow-x: hidden; position: relative; }

/* AJUSTE: Opacidad subida a 0.7 para que la lluvia de nombres sea identificable */
#matrixCanvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; opacity: 0.7; }

.ambient-glow { position: fixed; border-radius: 50%; filter: blur(120px); z-index: 1; pointer-events: none; }
.glow-blue { width: 60vw; height: 60vh; top: -10vh; left: -10vw; background: rgba(37, 99, 235, 0.25); }
.glow-cyan { width: 50vw; height: 50vh; bottom: -10vh; right: -10vw; background: rgba(14, 165, 233, 0.15); }

.content-wrapper { position: relative; z-index: 10; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.glass-effect { background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); }

/* Navbar */
.navbar { position: fixed; width: 100%; top: 0; padding: 1.5rem 0; z-index: 100; transition: transform 0.4s ease, background 0.4s ease; }
.navbar.nav-hidden { transform: translateY(-100%); }
.navbar.nav-scrolled { background: rgba(5, 8, 16, 0.85); backdrop-filter: blur(15px); padding: 1rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 800; letter-spacing: 1px; }
.nav-links { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-links a { color: white; text-decoration: none; font-size: 0.85rem; font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: var(--neon-blue-light); }
.btn-nav { background: var(--neon-blue); padding: 0.6rem 1.5rem; border-radius: 30px; box-shadow: 0 0 15px rgba(37, 99, 235, 0.4); }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; text-align: center; }
.badge { border: 1px solid var(--neon-blue-light); padding: 0.5rem 1.5rem; border-radius: 30px; font-size: 0.75rem; color: var(--neon-blue-light); background: rgba(37, 99, 235, 0.1); }
h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; margin: 1.5rem 0; line-height: 1.1; }
p { color: var(--text-gray); font-size: 1.15rem; line-height: 1.6; max-width: 800px; margin: 0 auto 3rem; }
.hero-btns { display: flex; gap: 1.5rem; justify-content: center; }
.btn-primary { background: var(--neon-blue); color: white; padding: 1rem 2.5rem; border-radius: 30px; text-decoration: none; font-weight: 600; box-shadow: 0 0 20px rgba(37, 99, 235, 0.5); transition: 0.3s;}
.btn-primary:hover { background: var(--neon-blue-light); transform: scale(1.05); }
.btn-secondary { border: 1px solid white; color: white; padding: 1rem 2.5rem; border-radius: 30px; text-decoration: none; font-weight: 600; transition: 0.3s;}
.btn-secondary:hover { background: white; color: var(--bg-dark); }
.btn-small { padding: 0.7rem 1.5rem; font-size: 0.85rem; display: inline-block; }

/* Global Sections */
.method-section, .services-section, .pricing-section, .calculator-section, .cases-section, .author-section, .faq-section { padding: 5rem 0; }
.section-title { font-size: 2rem; font-weight: 800; margin-bottom: 4rem; text-align: center; letter-spacing: 2px; }

/* 1. Tech Arsenal */
.tech-bar { border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); padding: 2rem 0; background: rgba(0,0,0,0.3); }
.tech-title { font-size: 0.75rem; text-align: center; color: var(--text-gray); letter-spacing: 2px; margin-bottom: 1rem; }
.tech-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; color: #475569; font-weight: 600; font-size: 1.1rem; }
.tech-logos span { transition: 0.3s; }
.tech-logos span:hover { color: var(--text-white); text-shadow: 0 0 10px rgba(255,255,255,0.5); }
.tech-logos .dot { color: #1e293b; }

/* Grid Cards (Metodo) */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card { padding: 3rem 2rem; border-radius: 20px; transition: 0.4s; text-align: center; }
.card:hover { transform: translateY(-10px); border-color: var(--neon-blue-light); }
.icon { font-size: 2.5rem; margin-bottom: 1.5rem; }

/* Services */
.services-layout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.service-row { padding: 2.5rem; border-radius: 20px; transition: 0.4s; border-top: 4px solid transparent; }
.service-row:hover { border-top-color: var(--neon-blue); transform: translateY(-5px); }
.badge-small { color: var(--neon-blue-light); font-weight: 800; font-size: 0.7rem; text-transform: uppercase; margin-bottom: 1rem; display: block; }
.badge-accent { color: var(--neon-green); }

/* 2. Autopsias (Casos) */
.cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 2rem; }
.case-card { padding: 2.5rem; border-radius: 20px; }
.case-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.case-half { padding: 1.5rem; border-radius: 12px; background: rgba(0,0,0,0.4); }
.case-half h4 { font-size: 0.9rem; margin-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.5rem;}
.case-half ul { list-style: none; font-size: 0.9rem; color: var(--text-gray); }
.case-half li { margin-bottom: 0.5rem; }
.before-side { border-left: 2px solid var(--neon-red); }
.after-side { border-left: 2px solid var(--neon-green); background: rgba(16, 185, 129, 0.05); }
.text-red { color: var(--neon-red); }
.text-green { color: var(--neon-green); }

/* Calculadora */
.calc-wrapper { display: grid; grid-template-columns: 1fr 1fr; border-radius: 24px; overflow: hidden; }
.calc-left { padding: 4rem 3rem; background: rgba(15, 23, 42, 0.4); }
.calc-left h2 { font-size: 2.2rem; margin-bottom: 1rem; line-height: 1.2; }
.calc-left p { color: var(--text-gray); font-size: 1rem; margin-bottom: 3rem; margin-left: 0; text-align: left;}
.slider-container { width: 100%; }
.slider-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.slider-header label { font-weight: 600; color: var(--text-gray); }
.slider-display { font-size: 1.5rem; font-weight: 800; color: var(--neon-blue-light); }
.slider-labels { display: flex; justify-content: space-between; font-size: 0.8rem; color: #64748b; margin-top: 0.5rem; }

input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 24px; width: 24px; border-radius: 50%; background: var(--text-white); cursor: pointer; margin-top: -8px; box-shadow: 0 0 15px var(--neon-blue); }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 8px; cursor: pointer; background: rgba(255, 255, 255, 0.1); border-radius: 5px; }
input[type=range]:focus { outline: none; }

.calc-right { padding: 4rem 3rem; background: rgba(0, 0, 0, 0.4); display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--glass-border); }
.data-box { margin-bottom: 2rem; }
.data-box span { color: var(--text-gray); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.data-value { font-size: 2.5rem; font-weight: 800; margin: 0.5rem 0; font-variant-numeric: tabular-nums; }
.text-red { color: var(--neon-red); text-shadow: 0 0 20px rgba(239, 68, 68, 0.4); }
.text-green { color: var(--neon-green); text-shadow: 0 0 20px rgba(16, 185, 129, 0.4); }
.data-bar { width: 100%; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.bar-fill { height: 100%; transition: width 0.3s ease; }
.fill-red { background: var(--neon-red); width: 35%; }
.fill-green { background: var(--neon-green); width: 28%; }
.terminal-box { background: #000; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); margin-top: 1rem; overflow: hidden; }
.terminal-header { background: #1e293b; padding: 0.5rem 1rem; font-size: 0.7rem; color: #94a3b8; display: flex; align-items: center; gap: 0.5rem; font-family: monospace; }
.terminal-header span { width: 8px; height: 8px; border-radius: 50%; background: #475569; display: inline-block; }
.terminal-header span:nth-child(1) { background: #ef4444; }
.terminal-header span:nth-child(2) { background: #eab308; }
.terminal-header span:nth-child(3) { background: #10b981; }
.terminal-body { padding: 1rem; font-family: monospace; font-size: 0.85rem; color: #cbd5e1; line-height: 1.6; }

/* 3. Perfil Arquitecto */
.author-wrapper { padding: 4rem; border-radius: 24px; text-align: center; max-width: 800px; margin: 0 auto; border-top: 4px solid var(--neon-blue); }
.author-content h2 { font-size: 2rem; margin-bottom: 1.5rem; }
.author-content p { color: var(--text-gray); line-height: 1.7; margin-bottom: 1rem; font-size: 1.05rem; }
.author-stats { display: flex; justify-content: center; gap: 4rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.author-stats .stat h3 { font-size: 2.5rem; color: var(--text-white); }
.author-stats .stat span { color: var(--neon-blue-light); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600;}

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; max-width: 900px; margin: 0 auto; }
.pricing-card { padding: 3rem; border-radius: 20px; display: flex; flex-direction: column; }
.featured-pricing { border: 2px solid var(--neon-blue); box-shadow: 0 0 30px rgba(37, 99, 235, 0.2); }
.pricing-desc { color: var(--text-gray); font-size: 0.9rem; margin-top: 0.5rem; }
.pricing-features ul { list-style: none; margin: 2rem 0; }
.pricing-features li { padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--text-gray); }
.feature-disabled { opacity: 0.3; text-decoration: line-through; }
.highlight-feature { color: white; font-weight: 600; }
.btn-full { width: 100%; text-align: center; margin-top: auto; }

/* 4. FAQ */
.faq-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { border-radius: 12px; overflow: hidden; border: 1px solid var(--glass-border); transition: 0.3s; }
.faq-item.active { border-color: var(--neon-blue-light); box-shadow: 0 0 20px rgba(37, 99, 235, 0.1); }
.faq-header { padding: 1.5rem 2rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; background: rgba(0,0,0,0.2); }
.faq-header h3 { font-size: 1.1rem; font-weight: 600; }
.faq-icon { font-size: 1.5rem; font-weight: 300; transition: transform 0.3s; color: var(--neon-blue-light); }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.faq-item.active .faq-content { grid-template-rows: 1fr; }
.faq-body { overflow: hidden; }
.faq-body p { padding: 0 2rem 1.5rem; color: var(--text-gray); line-height: 1.6; margin: 0; }

/* CTA & Footer */
.cta-box { padding: 5rem 2rem; text-align: center; border-radius: 30px; }
.footer { background: rgba(5, 8, 16, 0.85); backdrop-filter: blur(15px); border-top: 1px solid rgba(255,255,255,0.05); padding: 5rem 0 2rem; position: relative; z-index: 10; margin-top: 4rem; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-col h4 { color: var(--text-white); margin-bottom: 1.5rem; font-size: 1.1rem; letter-spacing: 1px; }
.brand-col p { color: var(--text-gray); font-size: 0.95rem; line-height: 1.6; margin-top: 1.5rem; max-width: 350px; }
.links-col ul { list-style: none; }
.links-col li { margin-bottom: 1rem; }
.links-col a { color: var(--text-gray); text-decoration: none; transition: 0.3s; font-size: 0.95rem; }
.links-col a:hover { color: var(--neon-blue-light); }
.contact-col p { color: var(--text-gray); margin-bottom: 1.5rem; font-size: 0.95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; color: #64748b; font-size: 0.85rem; }
.legal-links a { color: #64748b; text-decoration: none; margin-left: 2rem; transition: 0.3s; }
.legal-links a:hover { color: var(--text-white); }

/* Mobile */
@media (max-width: 900px) {
    .calc-wrapper, .cases-grid, .case-compare { grid-template-columns: 1fr; }
    .calc-right { border-left: none; border-top: 1px solid var(--glass-border); }
    .footer-content { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .brand-col p { margin: 1.5rem auto 0; }
    .footer-bottom { flex-direction: column; gap: 1.5rem; }
    .legal-links a { margin: 0 1rem; }
}
@media (max-width: 768px) {
    .services-layout { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}


/* --- ZENTI BOOKING ENGINE --- */
.booking-wrapper { 
    border-radius: 24px; 
    padding: 2.5rem; 
    max-width: 800px; 
    margin: 0 auto; 
    text-align: center;
}

/* Calendario y Nodos */
.calendar-grid { 
    background: rgba(0,0,0,0.2); 
    padding: 2rem; 
    border-radius: 15px; 
    margin-bottom: 2rem; 
}
.days-grid { 
    display: grid; 
    grid-template-columns: repeat(7, 1fr); 
    gap: 0.5rem; 
    text-align: center; 
    margin-top: 1.5rem; 
}
.day-node { 
    padding: 0.8rem; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: 0.3s; 
    font-size: 0.9rem; 
    border: 1px solid transparent; 
    color: var(--text-gray); 
}
.day-node:hover:not(.disabled) { 
    background: var(--neon-blue); 
    color: white; 
}
.day-node.selected { 
    background: var(--neon-blue); 
    border-color: white; 
    color: white; 
}
.day-node.disabled { 
    opacity: 0.15; 
    cursor: not-allowed; 
}

.time-slots { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); 
    gap: 1rem; 
    min-height: 50px; 
}
.time-btn { 
    padding: 0.7rem; 
    border: 1px solid var(--glass-border); 
    border-radius: 8px; 
    color: white; 
    cursor: pointer; 
    text-align: center; 
    transition: 0.3s; 
}
.time-btn:hover { 
    border-color: var(--neon-green); 
    color: var(--neon-green); 
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2); 
}

/* Formulario e Inputs */
.hidden { display: none !important; }
.input-group { 
    margin-bottom: 1.5rem; 
    display: flex; 
    flex-direction: column; 
    gap: 0.5rem; 
    text-align: left; 
}
.input-group label { 
    font-size: 0.75rem; 
    font-weight: 800; 
    color: var(--neon-blue-light); 
    letter-spacing: 1px; 
}
.input-group input, .input-group textarea { 
    background: rgba(255,255,255,0.05); 
    border: 1px solid var(--glass-border); 
    padding: 1rem; 
    border-radius: 12px; 
    color: white; 
    outline: none; 
}

/* Botones de acción */
.form-btns { 
    display: flex; 
    gap: 1rem; 
    margin-top: 2rem; 
}
.btn-back { 
    background: transparent; 
    border: 1px solid rgba(59, 130, 246, 0.4); 
    color: var(--text-gray); 
    padding: 1rem 1.5rem; 
    border-radius: 30px; 
    cursor: pointer; 
    font-weight: 600; 
    font-size: 0.8rem; 
    transition: 0.3s; 
    flex: 1; 
}
.btn-back:hover { 
    border-color: var(--neon-blue-light); 
    color: var(--text-white); 
    background: rgba(59, 130, 246, 0.1); 
}

/* Mensaje de Éxito */
.success-container { padding: 3rem 1rem; }
.success-glitch-icon { 
    font-weight: 800; 
    color: var(--neon-green); 
    font-size: 1.5rem; 
    margin-bottom: 1.5rem; 
    letter-spacing: 4px; 
    border: 1px solid var(--neon-green); 
    display: inline-block; 
    padding: 0.5rem 1.5rem; 
}
.meet-card { 
    background: rgba(0, 0, 0, 0.3); 
    border: 1px dashed var(--glass-border); 
    padding: 1.5rem; 
    margin: 2rem 0; 
    border-radius: 12px; 
}
.meet-link { 
    color: var(--neon-blue-light); 
    font-family: monospace; 
    display: block; 
    margin-top: 0.8rem; 
    font-size: 1.1rem; 
}