/* ========== SDE LANDING — DARK PREMIUM ========== */
:root {
    --bg: #080c10;
    --bg-card: #0d1117;
    --bg-card-hover: #161b22;
    --surface: #121820;
    --border: rgba(91, 45, 142, 0.2);
    --border-hover: rgba(59, 109, 214, 0.4);
    --purple: #5b2d8e;
    --blue: #3b6dd6;
    --green: #00d4aa;
    --danger: #ff4757;
    --text: #e6edf3;
    --text-muted: #8b949e;
    --gradient: linear-gradient(135deg, #5b2d8e, #3b6dd6);
    --gradient-glow: linear-gradient(135deg, rgba(91,45,142,0.3), rgba(59,109,214,0.3));
    --font: 'Sora', sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --radius: 12px;
    --radius-lg: 20px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-danger { color: var(--danger); }

/* ===== NAV ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(8, 12, 16, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}
.nav.scrolled { background: rgba(8, 12, 16, 0.95); }
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 70px;
}
.nav-logo img { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
    font-size: 14px; font-weight: 500; color: var(--text-muted);
    transition: color 0.3s; letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
    background: var(--gradient) !important; color: #fff !important;
    padding: 8px 20px !important; border-radius: 8px;
    font-weight: 600 !important; font-size: 13px !important;
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
    display: block; width: 24px; height: 2px; background: var(--text);
    margin: 5px 0; transition: all 0.3s; border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(8,12,16,0.7) 0%, rgba(8,12,16,0.85) 50%, var(--bg) 100%);
}
.hero-content {
    position: relative; z-index: 2; text-align: center;
    max-width: 800px; padding: 120px 24px 80px;
}
.hero-badge {
    display: inline-block; padding: 6px 16px; border-radius: 100px;
    background: var(--gradient-glow); border: 1px solid var(--border);
    font-size: 13px; font-weight: 500; color: var(--green);
    letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 24px;
    animation: fadeInDown 0.8s ease;
}
.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800;
    line-height: 1.1; margin-bottom: 20px; letter-spacing: -0.03em;
    animation: fadeInUp 0.8s ease 0.1s both;
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-muted);
    max-width: 600px; margin: 0 auto 36px; line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-actions {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s both;
}
.hero-stats {
    display: flex; gap: 48px; justify-content: center; margin-top: 56px;
    animation: fadeInUp 0.8s ease 0.4s both;
}
.hero-stat { text-align: center; }
.hero-stat-num {
    display: block; font-size: 2rem; font-weight: 800;
    font-family: var(--mono); background: var(--gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px; border-radius: 10px; font-weight: 600;
    font-size: 15px; transition: all 0.3s; cursor: pointer; border: none;
}
.btn-primary {
    background: var(--gradient); color: #fff;
    box-shadow: 0 4px 20px rgba(91, 45, 142, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(91, 45, 142, 0.5); }
.btn-ghost {
    background: transparent; color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--blue); background: rgba(59, 109, 214, 0.1); }
.btn-whatsapp {
    background: #25D366; color: #fff;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    font-size: 17px; padding: 18px 36px;
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5); }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section-dark { background: var(--surface); }

.section-header { margin-bottom: 60px; }
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; margin-bottom: 16px; letter-spacing: -0.02em; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.section-label {
    display: inline-block; font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--green); margin-bottom: 12px;
    font-family: var(--mono);
}

.section-grid { display: grid; gap: 60px; align-items: center; }
.two-col { grid-template-columns: 1fr 1fr; }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.section-text h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; margin-bottom: 20px; letter-spacing: -0.02em; }
.section-text p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; margin-bottom: 24px; }

.section-image { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.section-image img { border-radius: var(--radius-lg); }
.glow-purple::after {
    content: ''; position: absolute; inset: -2px; border-radius: var(--radius-lg);
    background: var(--gradient); z-index: -1; opacity: 0.4; filter: blur(20px);
}
.glow-blue::after {
    content: ''; position: absolute; inset: -2px; border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #3b6dd6, #00d4aa); z-index: -1; opacity: 0.3; filter: blur(20px);
}

/* ===== DANGER LIST ===== */
.danger-list { display: flex; flex-direction: column; gap: 16px; }
.danger-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 16px; background: rgba(255, 71, 87, 0.08);
    border-left: 3px solid var(--danger); border-radius: 0 var(--radius) var(--radius) 0;
}
.danger-icon { font-size: 20px; flex-shrink: 0; }
.danger-item span:last-child { font-size: 15px; color: var(--text-muted); }

/* ===== STEPS ===== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px; text-align: center;
    transition: all 0.4s;
}
.step-card:hover { transform: translateY(-8px); border-color: var(--blue); box-shadow: 0 20px 60px rgba(59, 109, 214, 0.15); }
.step-number {
    font-family: var(--mono); font-size: 48px; font-weight: 800;
    background: var(--gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; margin-bottom: 20px;
}
.step-img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius); margin-bottom: 20px; }
.step-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.step-card p { color: var(--text-muted); font-size: 14px; }

/* ===== FEATURE BADGES ===== */
.feature-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
    padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 500;
    background: var(--gradient-glow); border: 1px solid var(--border);
    color: var(--green); font-family: var(--mono);
}

/* ===== SCREENSHOT REAL ===== */
.screenshot-real { border-radius: var(--radius-lg); border: 1px solid var(--border); }

/* ===== MÓDULOS GRID ===== */
.modulos-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px;
}
.modulo-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px;
    transition: all 0.3s;
}
.modulo-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.modulo-card.highlight {
    border-color: var(--green); background: rgba(0, 212, 170, 0.05);
}
.modulo-icon { font-size: 28px; margin-bottom: 14px; }
.modulo-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.modulo-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ===== SCREENSHOTS GRID ===== */
.screenshots-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px;
}
.screenshot-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: all 0.4s;
}
.screenshot-card:hover { transform: translateY(-6px); border-color: var(--blue); box-shadow: 0 16px 48px rgba(59, 109, 214, 0.12); }
.screenshot-card img { width: 100%; height: auto; }
.screenshot-label {
    padding: 16px 20px; font-size: 13px; font-weight: 500;
    color: var(--text-muted); border-top: 1px solid var(--border);
}

/* ===== GALERÍA IA ===== */
.galeria-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.galeria-item {
    border-radius: var(--radius-lg); overflow: hidden;
    transition: transform 0.4s;
}
.galeria-item:hover { transform: scale(1.03); }
.galeria-item img { width: 100%; height: 280px; object-fit: cover; }

/* ===== SECTORES ===== */
.sectores-list { display: flex; flex-direction: column; gap: 24px; }
.sector-item {
    display: flex; gap: 16px; padding: 20px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); transition: border-color 0.3s;
}
.sector-item:hover { border-color: var(--blue); }
.sector-icon { font-size: 32px; flex-shrink: 0; }
.sector-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.sector-item p { font-size: 14px; color: var(--text-muted); }

/* ===== CTA ===== */
.section-cta {
    position: relative; padding: 120px 0; text-align: center;
    overflow: hidden;
}
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, var(--bg) 0%, rgba(8,12,16,0.8) 40%, rgba(8,12,16,0.9) 100%);
}
.cta-content { position: relative; z-index: 2; }
.cta-logo { height: 80px; margin: 0 auto 28px; }
.cta-content h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 16px; }
.cta-content p { color: var(--text-muted); font-size: 1.1rem; max-width: 500px; margin: 0 auto 36px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer {
    padding: 48px 0; border-top: 1px solid var(--border);
    background: var(--bg);
}
.footer-inner {
    display: flex; flex-direction: column; align-items: center;
    gap: 24px; text-align: center;
}
.footer-logo { height: 48px; margin-bottom: 8px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 14px; color: var(--text-muted); transition: color 0.3s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: var(--text-muted); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.92); backdrop-filter: blur(10px);
    display: none; align-items: center; justify-content: center;
    cursor: zoom-out;
}
.lightbox.open { display: flex; animation: fadeIn 0.25s ease; }
.lightbox img {
    max-width: 92vw; max-height: 90vh; border-radius: 12px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.6);
    object-fit: contain;
}
.lightbox-close {
    position: absolute; top: 20px; right: 28px;
    background: none; border: none; color: #fff; font-size: 36px;
    cursor: pointer; z-index: 10; opacity: 0.7; transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }

/* Clickable images */
.screenshot-card img,
.galeria-item img,
.step-img,
.section-image img,
.screenshot-real { cursor: zoom-in; transition: transform 0.3s; }
.screenshot-card img:hover,
.galeria-item img:hover,
.step-img:hover,
.section-image img:hover,
.screenshot-real:hover { transform: scale(1.02); }

@media (max-width: 968px) {
    .two-col { grid-template-columns: 1fr; }
    .two-col.reverse { direction: ltr; }
    .steps-grid { grid-template-columns: 1fr; }
    .galeria-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { gap: 24px; }
    .nav-links { display: none; position: fixed; top: 70px; left: 0; right: 0; background: var(--bg); padding: 24px; flex-direction: column; gap: 16px; border-bottom: 1px solid var(--border); }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
}
@media (max-width: 600px) {
    .galeria-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .section { padding: 64px 0; }
    .modulos-grid { grid-template-columns: 1fr; }
}
