/* ============================================
   SATURNOPOS - SITIO ESTÁTICO
   Dark Mode Theme
   ============================================ */

:root {
    --primary: #1b6b5e;
    --primary-dark: #15554a;
    --primary-light: #2f8f80;
    --secondary: #2e5fa6;
    --secondary-light: #6f95cf;
    --accent: #fbbf24;
    --success: #10b981;
    --danger: #ef4444;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --border-color: #334155;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: 250ms ease-in-out;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
p { color: var(--text-secondary); }
a { color: var(--primary-light); text-decoration: none; }
img { max-width: 100%; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-darker); }
.section-title { text-align: center; margin-bottom: 0.5rem; }
.section-subtitle { text-align: center; color: var(--text-tertiary); margin-bottom: 2.5rem; }
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all var(--transition);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { border-color: var(--primary-light); color: var(--primary-light); }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* Announcement bar */
.announcement {
    background: linear-gradient(90deg, var(--primary-dark), var(--secondary));
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #fff;
}
.announcement a { color: var(--accent); font-weight: 600; margin-left: 0.5rem; }

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    max-width: 1140px;
    margin: 0 auto;
}
.navbar-brand { display: flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; font-weight: 700; color: var(--text-primary); }
.navbar-brand img { width: 32px; height: 32px; }
.navbar-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.navbar-links a { color: var(--text-secondary); font-weight: 500; }
.navbar-links a:hover, .navbar-links a.active { color: var(--primary-light); }
.navbar-links a.highlight {
    background: var(--primary);
    color: #fff;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-md);
}
.navbar-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero { padding: 5rem 0 4rem; background: radial-gradient(ellipse at top, #14233f 0%, var(--bg-dark) 60%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: 2.75rem; }
.hero .subtitle { font-size: 1.125rem; margin: 1rem 0 1.75rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.trust-note { margin-top: 1rem; color: var(--text-tertiary); font-size: 0.875rem; }

/* Hero app demo (animated sale) */
.app-demo {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.app-demo-header { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-tertiary); border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; margin-bottom: 0.75rem; }
.app-demo-items { min-height: 170px; }
.app-demo-item { display: flex; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px dashed var(--border-color); animation: slideIn 300ms ease-out; }
.app-demo-item .qty { color: var(--text-tertiary); font-size: 0.85rem; }
.app-demo-totals { margin-top: 0.75rem; font-size: 0.95rem; }
.app-demo-totals .row { display: flex; justify-content: space-between; }
.app-demo-totals .total { font-weight: 700; font-size: 1.15rem; color: var(--accent); }
.app-demo-badge {
    margin-top: 0.75rem;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid var(--success);
    border-radius: var(--radius-md);
    padding: 0.4rem 0.75rem;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity var(--transition);
}
.app-demo-badge.visible { opacity: 1; }
@keyframes slideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Cards grid */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: transform var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); border-color: var(--primary-light); }
.card .icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; }
.card .tech-note { margin-top: 0.75rem; font-size: 0.8rem; color: var(--accent); }
.card ul { list-style: none; margin-top: 0.5rem; }
.card ul li { font-size: 0.9rem; color: var(--text-secondary); padding: 0.15rem 0; }
.card ul li::before { content: "✓ "; color: var(--success); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.plan {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
}
.plan.popular { border-color: var(--primary-light); box-shadow: 0 0 30px rgba(47, 143, 128, 0.25); }
.plan .badge {
    position: absolute;
    top: -0.8rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}
.plan .price { font-size: 2.25rem; font-weight: 800; margin: 0.5rem 0; }
.plan .price small { font-size: 1rem; color: var(--text-tertiary); font-weight: 400; }
.plan ul { list-style: none; margin: 1.25rem 0; flex: 1; }
.plan ul li { padding: 0.35rem 0; color: var(--text-secondary); font-size: 0.95rem; }
.plan ul li.no { color: var(--text-tertiary); text-decoration: line-through; }
.plan ul li::before { content: "✓ "; color: var(--success); }
.plan ul li.no::before { content: "✗ "; color: var(--danger); }

/* Comparison table */
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.comparison-table th, .comparison-table td { padding: 0.75rem 1rem; border: 1px solid var(--border-color); text-align: left; }
.comparison-table th { background: var(--bg-card); }
.comparison-table td.win { color: var(--success); font-weight: 600; }
.comparison-table td.lose { color: var(--text-tertiary); }
.table-wrap { overflow-x: auto; }

/* Calculator */
.calculator { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 2rem; max-width: 800px; margin: 0 auto; }
.calculator label { display: block; font-weight: 600; margin: 1.25rem 0 0.25rem; }
.calculator input[type=range] { width: 100%; accent-color: var(--primary-light); }
.calculator .slider-value { color: var(--accent); font-weight: 700; }
.calc-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.calc-result { background: var(--bg-darker); border-radius: var(--radius-lg); padding: 1rem; text-align: center; }
.calc-result .value { font-size: 1.4rem; font-weight: 800; color: var(--success); }
.calc-result .label { font-size: 0.85rem; color: var(--text-tertiary); }
.disclaimer { font-size: 0.78rem; color: var(--text-tertiary); margin-top: 1rem; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.step { text-align: center; padding: 1.5rem; }
.step .num { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: 1.25rem; margin-bottom: 0.75rem; }

/* Testimonials */
.testimonial-carousel { max-width: 700px; margin: 0 auto; text-align: center; }
.testimonial { display: none; }
.testimonial.active { display: block; animation: slideIn 300ms ease-out; }
.testimonial .avatar { font-size: 3rem; }
.testimonial blockquote { font-size: 1.1rem; color: var(--text-primary); margin: 1rem 0; font-style: italic; }
.testimonial .who { color: var(--text-tertiary); font-size: 0.9rem; }
.testimonial .stars { color: var(--accent); letter-spacing: 2px; }
.carousel-controls { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; align-items: center; }
.carousel-controls button { background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-primary); border-radius: 50%; width: 2.4rem; height: 2.4rem; cursor: pointer; }
.carousel-dots { display: flex; gap: 0.4rem; }
.carousel-dots .dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--border-color); cursor: pointer; border: none; padding: 0; }
.carousel-dots .dot.active { background: var(--primary-light); }

/* FAQ accordion */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border-color); border-radius: var(--radius-md); margin-bottom: 0.75rem; background: var(--bg-card); overflow: hidden; }
.faq-item summary { padding: 1rem 1.25rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq-item summary::after { content: "+"; color: var(--primary-light); font-size: 1.25rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer { padding: 0 1.25rem 1rem; color: var(--text-secondary); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
.contact-info-list { list-style: none; }
.contact-info-list li { padding: 0.5rem 0; color: var(--text-secondary); }
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.form-control {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--primary-light); }
.form-check { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.9rem; color: var(--text-secondary); }
.form-feedback { margin-top: 1rem; padding: 0.75rem 1rem; border-radius: var(--radius-md); display: none; }
.form-feedback.success { display: block; background: rgba(16,185,129,0.15); border: 1px solid var(--success); color: var(--success); }
.form-feedback.error { display: block; background: rgba(239,68,68,0.15); border: 1px solid var(--danger); color: var(--danger); }

/* Demo gallery */
.demo-card { cursor: pointer; }
.demo-card .arrow { color: var(--primary-light); font-weight: 600; font-size: 0.9rem; }

/* Demo detail */
.demo-video { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--border-color); background: #000; }

/* Simulated demo player */
.demo-player { margin: 1.5rem 0; }
.demo-screen { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,0.35); }
.demo-screen-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.6rem 1rem; background: rgba(255,255,255,0.04); border-bottom: 1px solid var(--border-color); }
.demo-screen-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.demo-screen-bar .dot.r { background: #ff5f57; }
.demo-screen-bar .dot.y { background: #febc2e; }
.demo-screen-bar .dot.g { background: #28c840; }
.demo-screen-title { margin-left: 0.75rem; font-weight: 700; font-size: 0.95rem; color: var(--text-primary); }
.demo-screen-body { padding: 1.25rem; min-height: 240px; display: flex; flex-direction: column; }
.demo-screen-lines { list-style: none; margin: 0; padding: 0; flex: 1; }
.demo-screen-lines li { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.9rem; margin-bottom: 0.5rem; background: rgba(255,255,255,0.03); border: 1px solid var(--border-color); border-radius: var(--radius-md, 8px); opacity: 0; animation: demoLineIn 0.4s ease forwards; }
.demo-screen-lines .ic { font-size: 1.2rem; }
.demo-screen-lines .tx { flex: 1; color: var(--text-secondary); }
.demo-screen-lines .vl { font-weight: 700; color: var(--text-primary); white-space: nowrap; }
@keyframes demoLineIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.demo-toast { margin-top: 0.75rem; padding: 0.6rem 0.9rem; border-radius: var(--radius-md, 8px); background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.4); color: var(--accent); font-weight: 600; font-size: 0.9rem; opacity: 0; transform: translateY(6px); transition: all 0.4s ease; }
.demo-toast.show { opacity: 1; transform: none; }
.demo-screen-footer { margin-top: 0.75rem; font-size: 0.85rem; color: var(--text-tertiary); text-align: right; }
.demo-caption { text-align: center; margin: 1rem 0 0.75rem; color: var(--text-secondary); font-weight: 500; }
.demo-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.demo-dots { display: flex; gap: 0.5rem; }
.demo-dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: var(--border-color); cursor: pointer; padding: 0; transition: all 0.2s; }
.demo-dot.active { background: var(--primary-light); transform: scale(1.3); }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.kpi { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 1rem; text-align: center; }
.kpi .value { font-size: 1.3rem; font-weight: 800; color: var(--accent); }
.kpi .label { font-size: 0.85rem; color: var(--text-tertiary); }
.demo-steps { counter-reset: step; list-style: none; margin: 1rem 0; }
.demo-steps li { padding: 0.75rem 0; border-bottom: 1px dashed var(--border-color); }
.demo-steps li strong { color: var(--text-primary); }

/* Metrics */
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-top: 2rem; }
.metric { text-align: center; }
.metric .value { font-size: 1.75rem; font-weight: 800; color: var(--primary-light); }
.metric .label { color: var(--text-tertiary); font-size: 0.9rem; }

/* Footer */
.footer { background: var(--bg-darker); border-top: 1px solid var(--border-color); padding: 3rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer h4 { font-size: 1rem; }
.footer ul { list-style: none; }
.footer ul li { padding: 0.2rem 0; }
.footer ul a { color: var(--text-tertiary); }
.footer ul a:hover { color: var(--primary-light); }
.footer-bottom { text-align: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); color: var(--text-tertiary); font-size: 0.85rem; }

/* WhatsApp float */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 90;
    background: #25d366;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 1.9rem; height: 1.9rem; fill: #fff; }

/* CTA section */
.cta-section { background: linear-gradient(135deg, var(--primary-dark), var(--secondary)); border-radius: var(--radius-xl); padding: 3rem 2rem; text-align: center; }
.cta-section p { color: rgba(255,255,255,0.85); }

/* Docs */
.docs-table { width: 100%; border-collapse: collapse; }
.docs-table th, .docs-table td { padding: 0.6rem 0.9rem; border: 1px solid var(--border-color); text-align: left; font-size: 0.95rem; }
.docs-table th { background: var(--bg-card); }

/* Responsive */
@media (max-width: 860px) {
    .hero-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    .navbar-toggle { display: block; }
    .navbar-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-darker);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem 1.5rem;
        align-items: flex-start;
    }
    .navbar-links.open { display: flex; }
}
