/* ================= VARIABLES GLOBALES ================= */
:root {
    /* Fondo Abisal */
    --bg-main: #050505;
    --bg-surface: #0E0E11;
    --bg-surface-hover: #141419;
    
    /* Acento: Violeta Eléctrico / Amatista */
    --accent-main: #7C3AED;
    --accent-hover: #6D28D9;
    --accent-glow: rgba(124, 58, 237, 0.15);
    
    /* Textos */
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    
    /* Bordes Translúcidos */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-active: rgba(124, 58, 237, 0.4);
    
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

/* ================= RESET ================= */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

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

::selection { background-color: var(--accent-main); color: #fff; }

.mt-4 { margin-top: 1rem; }
.text-accent { color: var(--accent-main); }
.border-t { border-top: 1px solid var(--border-subtle); }

/* ================= BACKGROUNDS Y PATRONES TECNOLÓGICOS ================= */

/* Patrón de Cuadrícula Cyber + Micro-puntos */
.bg-tech-grid {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -3;
    background-color: var(--bg-main);
    /* Cuadrícula Violeta Ultra-tenue */
    background-image: 
        linear-gradient(rgba(124, 58, 237, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
}

.bg-tech-grid::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Matriz de micro-puntos blancos texturizados */
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 10px 10px;
    /* Difuminado radial para que los bordes se fundan en negro abisal */
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, black 10%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, black 10%, transparent 100%);
    pointer-events: none;
}

/* Orbe de Luz (Aura detrás del Hero) */
.bg-gradient-orb {
    position: fixed; top: -15vh; left: 50%; transform: translateX(-50%);
    width: 60vw; height: 60vh; z-index: -2;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(5,5,5,0) 70%);
    border-radius: 50%; pointer-events: none; filter: blur(50px);
}

/* ================= NAVEGACIÓN FLOTANTE (PÍLDORA) ================= */
.floating-nav {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(14, 14, 17, 0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle); border-radius: 100px;
    padding: 0.5rem 1rem 0.5rem 2rem; display: flex; align-items: center; justify-content: space-between;
    width: 90%; max-width: 900px; z-index: 100; transition: all 0.3s ease;
}

.floating-nav.scrolled {
    background: rgba(14, 14, 17, 0.95); box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border-color: var(--border-active);
}

.nav-brand { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.nav-brand span { color: var(--accent-main); }

.nav-menu { display: none; gap: 2rem; }
@media (min-width: 768px) { .nav-menu { display: flex; } }

.nav-menu a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-menu a:hover { color: var(--text-primary); }

.btn-nav {
    background: var(--accent-main); color: #fff; text-decoration: none;
    padding: 0.6rem 1.5rem; border-radius: 100px; font-weight: 600; font-size: 0.9rem;
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
}
.btn-nav:hover { background: var(--accent-hover); transform: scale(1.05); box-shadow: 0 0 15px rgba(124, 58, 237, 0.4); }

/* ================= BOTONES GLOBALES ================= */
.btn-primary {
    display: inline-block; background: var(--accent-main); color: #fff;
    padding: 1rem 2.5rem; border-radius: 8px; font-weight: 600; text-decoration: none;
    transition: all 0.3s ease; box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 0 30px rgba(124, 58, 237, 0.5); }

.btn-text {
    display: inline-block; color: var(--text-primary); text-decoration: none; font-weight: 600;
    transition: color 0.3s;
}
.btn-text:hover { color: var(--accent-main); }

/* ================= 1. HERO SPLIT ================= */
.hero-split {
    min-height: 100vh; display: grid; grid-template-columns: 1fr; align-items: center;
    padding: 8rem 1.5rem 4rem; max-width: 1300px; margin: 0 auto; gap: 4rem;
}
@media (min-width: 992px) { .hero-split { grid-template-columns: 1fr 1fr; padding-top: 10rem; } }

.pill-badge {
    display: inline-block; padding: 0.4rem 1rem; border-radius: 100px;
    border: 1px solid var(--border-active); background: rgba(124, 58, 237, 0.1);
    color: var(--accent-main); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 2rem;
}

.hero-text h1 { font-size: clamp(3rem, 5vw, 5rem); font-weight: 800; line-height: 1.05; margin-bottom: 1.5rem; letter-spacing: -0.03em; }
.hero-text h1 span { color: var(--accent-main); }
.hero-text p { color: var(--text-secondary); font-size: 1.15rem; margin-bottom: 2.5rem; max-width: 500px; }
.hero-actions { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }

.hero-visual { width: 100%; display: flex; justify-content: center; position: relative; }
.abstract-shape {
    width: 100%; max-width: 500px; aspect-ratio: 1; border-radius: 20px;
    background: linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(5,5,5,0) 100%);
    position: relative; display: flex; align-items: center; justify-content: center;
}

.glass-panel {
    width: 90%; background: rgba(14, 14, 17, 0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle); border-radius: 12px; overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}
.panel-header { padding: 0.75rem 1rem; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border-subtle); display: flex; gap: 0.5rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #FF5F56; } .dot.yellow { background: #FFBD2E; } .dot.green { background: #27C93F; }
.panel-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.panel-body code { font-family: monospace; color: var(--accent-main); font-size: 0.85rem; opacity: 0.9; }

/* ================= 2. BENTO BOX UI ================= */
.bento-section { padding: 6rem 1.5rem; max-width: 1300px; margin: 0 auto; position: relative; z-index: 10;}
.section-title-left { margin-bottom: 3rem; }
.section-title-left h2 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.02em; }
.section-title-left p { color: var(--text-secondary); font-size: 1.1rem; }

.bento-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; grid-auto-rows: minmax(200px, auto); }
@media (min-width: 768px) {
    .bento-grid { grid-template-columns: repeat(4, 1fr); }
    .bento-large { grid-column: span 2; grid-row: span 2; }
    .bento-wide { grid-column: span 2; grid-row: span 1; }
}

.bento-item {
    background: var(--bg-surface); border: 1px solid var(--border-subtle);
    border-radius: 20px; padding: 2rem; transition: all 0.3s ease;
    display: flex; flex-direction: column; overflow: hidden; position: relative;
}
.bento-item:hover { border-color: var(--border-active); background: var(--bg-surface-hover); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

.bento-icon { font-size: 2rem; margin-bottom: 1.5rem; filter: grayscale(100%); transition: filter 0.3s; }
.bento-item:hover .bento-icon { filter: grayscale(0%); }

.bento-item h3 { font-size: 1.3rem; margin-bottom: 0.75rem; font-weight: 700; }
.bento-item p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }

.bento-image-wrapper { flex-grow: 1; border-radius: 12px; overflow: hidden; margin-top: 1.5rem; min-height: 150px; background: #000; }
.bento-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; transition: opacity 0.4s, transform 0.4s; }
.bento-item:hover .bento-img { opacity: 0.8; transform: scale(1.05); }

.bento-metric { align-items: center; justify-content: center; text-align: center; }
.bento-metric.bg-accent { background: var(--accent-main); border: none; color: #fff; }
.bento-metric.bg-accent:hover { background: var(--accent-hover); transform: translateY(-4px); box-shadow: 0 15px 30px rgba(124, 58, 237, 0.3); }
.metric-big { font-size: 3.5rem; font-weight: 800; line-height: 1; margin-bottom: 0.5rem; }
.metric-text { font-weight: 600; font-size: 0.9rem; opacity: 0.9; }

.dark-metric { background: rgba(255,255,255,0.02); border: 1px dashed var(--border-active); backdrop-filter: blur(5px); }

/* ================= 3. METODOLOGÍA (VERTICAL TIMELINE) ================= */
.timeline-section { padding: 6rem 1.5rem; max-width: 1300px; margin: 0 auto; position: relative; z-index: 10; }
.timeline-container { display: grid; grid-template-columns: 1fr; gap: 4rem; }
@media (min-width: 992px) { .timeline-container { grid-template-columns: 1fr 1.5fr; align-items: start; } }

.timeline-header h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; }
.timeline-header p { color: var(--text-secondary); font-size: 1.1rem; }
@media (min-width: 992px) { .timeline-header { position: sticky; top: 120px; } }

.vertical-timeline { position: relative; padding-left: 2rem; border-left: 2px solid var(--border-subtle); }
.v-step { position: relative; margin-bottom: 4rem; }
.v-step:last-child { margin-bottom: 0; }
.v-marker {
    position: absolute; left: -2.1rem; top: 0; width: 16px; height: 16px;
    background: var(--bg-main); border: 2px solid var(--accent-main); border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-main);
}
.v-date { display: block; color: var(--accent-main); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.v-content h3 { font-size: 1.5rem; margin-bottom: 0.75rem; font-weight: 700; }
.v-content p { color: var(--text-secondary); }

/* ================= 4. FAQ MINIMALISTA ================= */
.faq-minimal { padding: 6rem 1.5rem; max-width: 800px; margin: 0 auto; position: relative; z-index: 10; }
.faq-wrapper h2 { font-size: 2.5rem; font-weight: 800; text-align: center; margin-bottom: 3rem; }
.accordion-group { display: flex; flex-direction: column; gap: 1rem; }
.acc-item { border-bottom: 1px solid var(--border-subtle); padding-bottom: 1rem; }
.acc-item summary {
    font-size: 1.1rem; font-weight: 600; padding: 1rem 0; cursor: pointer;
    list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--text-primary);
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after { content: '+'; color: var(--accent-main); font-size: 1.5rem; transition: transform 0.3s; }
.acc-item[open] summary::after { content: '-'; transform: rotate(180deg); }
.acc-item p { padding-bottom: 1rem; color: var(--text-secondary); }

/* ================= 5. FOOTER ================= */
.footer-modern { padding: 6rem 1.5rem 2rem; max-width: 1300px; margin: 0 auto; position: relative; z-index: 10; }
.footer-cta {
    text-align: center; padding: 5rem 2rem; background: var(--bg-surface); border-radius: 24px;
    border: 1px solid var(--border-subtle); margin-bottom: 4rem; position: relative; overflow: hidden;
}
.footer-cta::before {
    content: ''; position: absolute; top: -50%; left: 50%; transform: translateX(-50%); width: 100%; height: 100%;
    background: radial-gradient(ellipse, rgba(124,58,237,0.1) 0%, transparent 70%); pointer-events: none;
}
.footer-cta h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.02em; position: relative; z-index: 1; }

.footer-data { display: grid; grid-template-columns: 1fr; gap: 3rem; padding-top: 3rem; }
@media (min-width: 768px) { .footer-data { grid-template-columns: 2fr 1fr 1fr; } }
.f-brand .logo { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.f-brand .logo span { color: var(--accent-main); }
.f-brand p { color: var(--text-secondary); font-size: 0.95rem; }

.f-links, .f-contact { display: flex; flex-direction: column; gap: 0.75rem; }
.f-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.f-links a:hover { color: var(--accent-main); }
.f-contact p { color: var(--text-secondary); font-size: 0.95rem; }