:root {
    --bg-color: #050505;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --accent: #3b82f6; 
    --accent-glow: rgba(59, 130, 246, 0.3);
    --card-bg: rgba(18, 18, 20, 0.98); 
    --card-border: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(5, 5, 5, 0.98);
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-hover: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
    --bg-color: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #475569;
    --accent: #2563eb;
    --accent-glow: rgba(37, 99, 235, 0.2);
    --card-bg: rgba(255, 255, 255, 0.98);
    --card-border: rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(248, 250, 252, 0.98);
    --input-bg: rgba(0, 0, 0, 0.04);
    --input-hover: rgba(0, 0, 0, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-color); color: var(--text-main); overflow-x: hidden; line-height: 1.6; font-size: 16px; transition: background-color 0.3s ease, color 0.3s ease;}

#canvas-container { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; transition: opacity 0.5s; pointer-events: none;}
#preloader { position: fixed; inset: 0; background: var(--bg-color); z-index: 9999; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.3s, visibility 0.3s; }
.loader-text { color: var(--text-muted); font-size: 0.9rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.loader-bar { width: 200px; height: 2px; background: var(--card-border); overflow: hidden;}
.loader-progress { width: 0%; height: 100%; background: var(--accent); animation: load-progress 0.5s ease forwards; }
@keyframes load-progress { to { width: 100%; } }

.content { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.fast-glass { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.04); transition: border 0.3s, transform 0.3s; }

#navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; transition: background 0.3s, border 0.3s; padding: 0.5rem 0;}
#navbar.scrolled { background: var(--nav-bg); border-bottom: 1px solid var(--card-border); }
.nav-content { max-width: 1200px; margin: 0 auto; padding: 0.5rem 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;}

/* --- ESTILOS DEL LOGO PARA LA ANIMACIÓN --- */
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { 
    height: 75px; 
    width: auto; 
    object-fit: contain; 
    /* Transición suave de opacidad al cambiar de tema */
    transition: transform 0.4s ease, opacity 0.4s ease; 
    opacity: 1;
}
.logo:hover img { transform: scale(1.03); }

/* Clase que inyectará JS para ocultarlo temporalmente */
.logo img.fade-out {
    opacity: 0;
    transform: scale(0.95);
}
/* ------------------------------------------- */

.nav-controls { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;}

.segmented-control { display: flex; background: var(--input-bg); border: 1px solid var(--card-border); border-radius: 8px; padding: 0.25rem; }
.segmented-control button { background: transparent; border: none; padding: 0.4rem 0.6rem; border-radius: 6px; color: var(--text-muted); font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.segmented-control button:hover { color: var(--text-main); }
.segmented-control button.active { background: var(--card-bg); color: var(--text-main); box-shadow: 0 2px 8px rgba(0,0,0,0.1); border: 1px solid var(--card-border); }
.control-btn { background: var(--input-bg); border: 1px solid var(--card-border); width: 38px; height: 38px; border-radius: 8px; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: 0.2s; font-size: 1rem;}
.control-btn:hover { background: var(--input-hover); }

.mt-2 { margin-top: 2rem; }
.text-center { text-align: center; }
.justify-center { justify-content: center; }

.hero { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; max-width: 900px; padding-top: 6rem; margin-bottom: 4rem;}
.hero h1 { 
    font-size: clamp(2.5rem, 5vw, 4rem); 
    line-height: 1.2; 
    font-weight: 800; 
    margin-bottom: 1.5rem; 
    letter-spacing: -0.5px; 
}
.gradient-text { background: linear-gradient(90deg, var(--text-main), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
[data-theme="light"] .gradient-text { background: linear-gradient(90deg, var(--accent), #0f172a); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 700px; line-height: 1.6; }
.hero .subheadline { font-size: 1.05rem; margin-top: 3rem; color: var(--text-main); font-weight: 500; line-height: 1.5;}
.hero .subheadline strong { color: var(--accent); }
.hero-buttons { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;}

.btn-primary, .btn-secondary, .btn-nav { display: inline-block; padding: 0.9rem 1.8rem; border-radius: 8px; text-decoration: none; font-weight: 600; text-align: center; cursor: pointer; transition: transform 0.2s, background 0.2s; border: none; font-size: 1rem;}
.btn-primary { background-color: var(--accent); color: white; }
.btn-primary:hover { transform: translateY(-2px); background-color: #1d4ed8; }
.btn-secondary { background: var(--input-bg); color: var(--text-main); border: 1px solid var(--card-border); }
.btn-secondary:hover { background: var(--input-hover); transform: translateY(-2px);}
.btn-nav { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
.w-full { width: 100%; margin-top: 1.5rem; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2.2rem; margin-bottom: 1rem; font-weight: 800; letter-spacing: -0.5px;}
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto;}

.included-section { margin-bottom: 6rem; }
.included-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; padding: 3rem; }
.included-item { display: flex; align-items: center; gap: 1rem; font-size: 1.05rem; font-weight: 500; color: var(--text-main);}
.included-item .check { color: #10b981; font-weight: 800; }

.process { margin-bottom: 6rem; }
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.step { padding: 2.5rem; position: relative; overflow: hidden;}
.step-number { font-size: 4rem; font-weight: 900; color: var(--input-bg); -webkit-text-stroke: 1px var(--card-border); position: absolute; top: 0.5rem; right: 1.5rem; line-height: 1; z-index: 0;}
.step h4 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--text-main); position: relative; z-index: 1;}
.step p { color: var(--text-muted); font-size: 0.95rem; position: relative; z-index: 1;}

.pricing { margin-bottom: 6rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; align-items: stretch; }
.pricing-card { padding: 3rem 2rem; position: relative; display: flex; flex-direction: column; height: 100%; }
.pricing-card > button { margin-top: auto; }

.card-header { margin-bottom: 1.5rem; border-bottom: 1px solid var(--card-border); padding-bottom: 1.5rem;}
.pricing-card h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--text-main);}
.pricing-card .subtitle { color: var(--text-muted); font-size: 0.9rem; min-height: 40px; line-height: 1.4;}

.price-container { margin-bottom: 1.5rem; }
.setup-price { display: flex; align-items: baseline; margin-bottom: 0.2rem; }
.setup-price .currency-symbol { font-size: 1.5rem; font-weight: 600; color: var(--text-muted); margin-right: 0.2rem; }
.setup-price .price-amount { font-size: 2.8rem; font-weight: 900; color: var(--text-main); letter-spacing: -1px; line-height: 1;}
.setup-price .currency-code { font-size: 0.9rem; font-weight: 700; color: var(--text-muted); margin-left: 0.5rem; }
.recurring-price { font-size: 1rem; color: var(--accent); font-weight: 700; }

.plan-promise { font-weight: 700; font-size: 1.05rem !important; margin-bottom: 1.5rem; color: var(--text-main); min-height: 48px; display: flex; align-items: center; line-height: 1.3;}
.promise-blue { color: var(--accent); }

.features-list { list-style: none; margin-bottom: 2.5rem; flex-grow: 0; }
.features-list li { margin-bottom: 0.8rem; font-size: 0.95rem; color: var(--text-main); opacity: 0.9;}
.features-list li.muted { opacity: 0.4; text-decoration: line-through; }
.features-list li.highlight { color: var(--accent); font-weight: 700; margin-bottom: 1.2rem;}
.disclaimer-text { font-size: 0.8rem; color: var(--text-muted); opacity: 0.8;}

.pricing-card.pro { border-color: rgba(59, 130, 246, 0.4); transform: scale(1.02); z-index: 2;}
.badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent); color: white; padding: 0.3rem 1.2rem; border-radius: 20px; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; z-index: 10;}

.testimonials { margin-bottom: 6rem; }
.test-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.test-card { padding: 2.5rem; display: flex; flex-direction: column; justify-content: flex-start;}
.test-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }

.avatar-wrapper { 
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    overflow: hidden; 
    border: 2px solid var(--card-border); 
    background: var(--input-bg); 
    flex-shrink: 0; 
}
.avatar-wrapper img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: center; 
}

.test-meta { display: flex; flex-direction: column; }
.test-meta .stars { font-size: 1rem; margin-bottom: 0.2rem; letter-spacing: 1px; color: #fbbf24; }
.test-meta .author { font-size: 1rem; color: var(--text-main); font-weight: 700; margin-bottom: 0.2rem; line-height: 1.2; }
.test-meta .location { font-size: 0.85rem; color: var(--text-muted); }
.test-card .quote { font-size: 1.05rem; font-style: italic; color: var(--text-main); line-height: 1.6; margin-bottom: 0; }

.faq { margin-bottom: 6rem; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.faq-item { padding: 2rem; }
.faq-item h4 { font-size: 1.1rem; margin-bottom: 0.8rem; color: var(--text-main); }
.faq-item p { color: var(--text-muted); font-size: 0.95rem; }

.final-cta { padding: 4rem 2rem; margin-bottom: 4rem; }
.final-cta h2 { font-size: 2.2rem; margin-bottom: 1rem; color: var(--text-main);}
.final-cta p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; }

.roi-section { margin-bottom: 6rem; display: flex; justify-content: center; }
.roi-container { padding: 3rem; width: 100%; max-width: 900px; }
.calculator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.slider-labels { display: flex; justify-content: space-between; margin-bottom: 1rem; color: var(--text-main); font-weight: 600; font-size: 0.95rem;}
.slider-labels span { color: var(--accent); font-family: monospace; font-weight: 800; font-size: 1.2rem; }
.modern-slider { -webkit-appearance: none; width: 100%; height: 6px; background: var(--card-border); border-radius: 5px; outline: none; margin-bottom: 2rem;}
.modern-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); cursor: pointer;}
.roi-results { background: var(--input-bg); border-radius: 12px; padding: 2.5rem; border: 1px solid var(--card-border); }
.result-box { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; border-bottom: 1px solid var(--card-border); padding-bottom: 1rem;}
.amount { font-size: 1.3rem; font-weight: 900; font-family: monospace; color: var(--text-main);}
.roi-accent { color: var(--accent); font-size: 1.8rem; font-weight: 900; font-family: monospace; }
.roi-difference { text-align: center; margin-top: 1.5rem; color: var(--text-main); font-size: 1rem; font-weight: 600;}
.roi-difference strong { color: #10b981; font-size: 1.5rem; display: block; margin-top: 0.5rem;}

.modal-overlay, .cmd-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.9); display: flex; justify-content: center; z-index: 10000; opacity: 0; visibility: hidden; transition: 0.3s; }
.modal-overlay { align-items: center; }
.cmd-overlay { align-items: flex-start; padding-top: 15vh; }
.modal-overlay.active, .cmd-overlay.active { opacity: 1; visibility: visible; }
.modal-content, .cmd-content { width: 90%; max-width: 450px; padding: 2.5rem; position: relative; transform: translateY(20px); transition: 0.3s; background: var(--card-bg);}
.cmd-content { max-width: 600px; padding: 1.5rem; }
.modal-overlay.active .modal-content, .cmd-overlay.active .cmd-content { transform: scale(1) translateY(0); }
.close-modal { position: absolute; top: 15px; right: 20px; background: transparent; border: none; color: var(--text-muted); font-size: 1.8rem; cursor: pointer; }
.input-group { margin-bottom: 1.5rem; }
.input-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text-muted); font-weight: 600;}
.input-group input, .cmd-header input { width: 100%; padding: 0.9rem; border-radius: 8px; background: var(--input-bg); border: 1px solid var(--card-border); color: var(--text-main); outline: none; font-size: 1rem;}
.cmd-header { padding: 0.5rem; border-bottom: 1px solid var(--card-border); display: flex; justify-content: space-between; align-items: center; }
.cmd-header input { border: none; background: transparent; }
.cmd-badge { font-size: 0.7rem; color: var(--text-muted); background: var(--input-bg); padding: 0.3rem 0.6rem; border-radius: 4px; font-weight: 700; }
.cmd-group { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; padding: 1rem 1rem 0.5rem; font-weight: 700;}
.cmd-action { width: 100%; text-align: left; background: transparent; border: none; color: var(--text-main); padding: 0.8rem 1rem; border-radius: 8px; cursor: pointer; display: flex; gap: 10px; font-size: 1rem; transition: 0.2s;}
.cmd-action:hover { background: var(--input-bg); color: var(--accent);}

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (pointer: fine) {
    body.cursor-enabled, body.cursor-enabled a, body.cursor-enabled button { cursor: none; }
    .cursor-dot { position: fixed; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; pointer-events: none; z-index: 10000; transform: translate(-50%, -50%); display: none;}
    .cursor-ring { position: fixed; width: 36px; height: 36px; border: 1px solid var(--accent); border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s; opacity: 0.5; display: none;}
    body.cursor-enabled .cursor-dot, body.cursor-enabled .cursor-ring { display: block; }
    .cursor-hover .cursor-dot { transform: translate(-50%, -50%) scale(0); }
    .cursor-hover .cursor-ring { width: 50px; height: 50px; background: var(--accent-glow); opacity: 1;}
}

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .nav-controls { gap: 0.5rem; }
    .btn-nav { font-size: 0.85rem; padding: 0.5rem 1rem; }
    .hero h1 { font-size: 2.2rem; }
    .calculator-grid { grid-template-columns: 1fr; }
    .included-grid { padding: 1.5rem; }
    .pricing-card.pro { transform: scale(1); }
    .logo img { height: 50px; }
}