/* ROOT VARIABLES - Crimson Cyber-Elegance */
:root {
    --bg-base: #0a0a0c;
    --bg-surface: #141418;
    --bg-surface-light: #1c1c22;
    
    --color-crimson: #ff2a4b;
    --color-orange: #ff7b00;
    
    --text-main: #e2e8f0;
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    --border-gray: rgba(255, 255, 255, 0.1);
    --shadow-red: 0 10px 30px rgba(255, 42, 75, 0.15);
    
    --transition: all 0.3s ease;
}

/* Reset & Setup */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

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

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--text-white); text-transform: uppercase; line-height: 1.2; margin-bottom: 1rem; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: 1px; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: 0.5px; }
h3 { font-size: 1.4rem; letter-spacing: 0.5px; }
p { margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin-bottom: 1rem; }

/* Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-pad { padding: 80px 0; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-800 { max-width: 800px; }
.mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; } .mb-5 { margin-bottom: 3rem; }
.p-4 { padding: 2rem; } .p-5 { padding: 3rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.align-start { align-items: start; }
.align-center { align-items: center; }

/* Colors & Backgrounds */
.bg-base { background-color: var(--bg-base); }
.bg-surface { background-color: var(--bg-surface); }
.bg-dark-gradient { background: linear-gradient(135deg, #0a0a0c, #141418); }
.text-crimson { color: var(--color-crimson); }
.text-orange { color: var(--color-orange); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.9rem; }
.text-xs { font-size: 0.8rem; }
.text-gradient { background: linear-gradient(90deg, var(--color-crimson), var(--color-orange)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Buttons & Tags */
.btn-solid {
    display: inline-block; padding: 14px 35px; background: linear-gradient(90deg, var(--color-crimson), var(--color-orange));
    color: #fff; font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    border-radius: 2px; cursor: pointer; transition: var(--transition);
}
.btn-solid:hover { transform: translateY(-3px); box-shadow: var(--shadow-red); }
.cyber-tag {
    display: inline-block; padding: 5px 12px; border: 1px solid var(--color-crimson); color: var(--color-crimson);
    font-size: 0.85rem; font-family: var(--font-heading); letter-spacing: 1px; margin-bottom: 1rem; background: rgba(255, 42, 75, 0.05);
}

/* Header */
.crimson-header {
    position: fixed; top: 0; width: 100%; z-index: 1000; padding: 15px 0;
    background: rgba(10, 10, 12, 0.8); backdrop-filter: blur(15px); border-bottom: 1px solid var(--border-gray);
    transition: var(--transition);
}
.crimson-header.scrolled { padding: 10px 0; background: rgba(10, 10, 12, 0.95); }
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 40px; }
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { font-family: var(--font-heading); font-size: 1rem; letter-spacing: 1px; text-transform: uppercase; }
.nav-links a:hover { color: var(--color-crimson); }

/* Mobile Menu Toggle */
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 1001; }
.mobile-toggle .line { width: 30px; height: 2px; background: var(--text-white); transition: var(--transition); }
.mobile-toggle.active .line:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--color-crimson); }
.mobile-toggle.active .line:nth-child(2) { opacity: 0; }
.mobile-toggle.active .line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--color-crimson); }

/* Hero Section */
.hero-section { position: relative; padding: 160px 0 80px; min-height: 95vh; display: flex; align-items: center; }
.hero-section::before {
    content: ''; position: absolute; right: 0; top: 0; width: 50%; height: 100%;
    background: radial-gradient(ellipse at center, rgba(255,42,75,0.1) 0%, transparent 70%); z-index: -1;
}
.image-wrapper img { filter: drop-shadow(0 20px 40px rgba(0,0,0,0.8)); border-radius: 12px; }

/* Data Matrix (Overview) */
.data-matrix { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2px; background: #222; border: 1px solid #222; }
.matrix-item { background: var(--bg-base); padding: 25px; display: flex; flex-direction: column; justify-content: center; }
.matrix-item.full-width { grid-column: 1 / -1; }
.m-label { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); margin-bottom: 5px; letter-spacing: 1px; }
.m-value { font-family: var(--font-heading); font-size: 1.1rem; color: var(--text-white); letter-spacing: 0.5px; }

/* Lists & Boxes */
.brutal-list, .check-list, .dot-list, .dash-list, .num-list, .cross-list { list-style: none; padding-left: 0; }
.brutal-list li, .check-list li, .dot-list li, .dash-list li, .num-list li, .cross-list li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.brutal-list li::before { content: '►'; position: absolute; left: 0; color: var(--color-crimson); font-family: var(--font-heading); font-weight: bold; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: #00ff88; font-weight: bold; }
.cross-list li::before { content: '✕'; position: absolute; left: 0; color: var(--color-crimson); font-weight: bold; }
.dot-list li::before { content: '■'; position: absolute; left: 0; color: var(--color-orange); font-size: 0.8rem; top: 4px; }
.dash-list li::before { content: '—'; position: absolute; left: 0; color: var(--color-crimson); font-weight: bold; }

.alert-box { border-left: 4px solid var(--color-crimson); padding: 15px; background: rgba(255,42,75,0.05); font-size: 0.9rem; }
.critical-box { border: 1px solid var(--color-orange); border-radius: 2px; background: rgba(255, 123, 0, 0.03); }
.border-solid { border: 1px solid var(--border-gray); }
.border-top-orange { border-top: 4px solid var(--color-orange); }
.border-top-crimson { border-top: 4px solid var(--color-crimson); }
.border-top-gray { border-top: 1px solid var(--border-gray); }
.shadow-red { box-shadow: var(--shadow-red); }

.brutal-img { border-radius: 4px; border: 1px solid var(--border-gray); padding: 10px; background: var(--bg-base); }
.inline-img { max-width: 80%; border-radius: 8px; filter: drop-shadow(0 15px 25px rgba(0,0,0,0.5)); }

/* Timeline (Pagos) */
.timeline-container { position: relative; padding: 2rem 0; }
.timeline-container::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
    background: var(--border-gray); transform: translateX(-50%);
}
.timeline-block { display: flex; justify-content: flex-end; padding-right: 50%; position: relative; margin-bottom: 2rem; width: 100%; }
.timeline-block.reverse { justify-content: flex-start; padding-right: 0; padding-left: 50%; }
.timeline-icon {
    position: absolute; left: 50%; top: 20px; width: 40px; height: 40px; border-radius: 50%;
    transform: translateX(-50%); display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-size: 1.2rem; color: #fff; z-index: 2;
}
.bg-orange { background: var(--color-orange); }
.bg-crimson { background: var(--color-crimson); }
.timeline-content { width: 90%; padding: 30px; border: 1px solid var(--border-gray); border-radius: 4px; position: relative; }

/* Progress Grid (Evaluación) */
.progress-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.p-labels { display: flex; justify-content: space-between; font-family: var(--font-heading); text-transform: uppercase; font-size: 0.95rem; margin-bottom: 8px; }
.p-bar-bg { width: 100%; height: 8px; background: #222; border-radius: 4px; overflow: hidden; }
.p-bar-fill { height: 100%; background: linear-gradient(90deg, var(--color-crimson), var(--color-orange)); width: 0; transition: width 1.5s ease-out; }

/* Accordion FAQ */
.accordion { border-top: 1px solid var(--border-gray); }
.acc-item { border-bottom: 1px solid var(--border-gray); }
.acc-header {
    width: 100%; padding: 20px 0; background: transparent; border: none; text-align: left;
    color: var(--text-white); font-family: var(--font-heading); font-size: 1.1rem;
    cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: var(--transition);
}
.acc-header:hover { color: var(--color-orange); }
.acc-icon { font-family: var(--font-body); font-size: 1.2rem; transition: transform 0.3s; color: var(--color-crimson); }
.acc-item.active .acc-icon { transform: rotate(180deg); }
.acc-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.acc-item.active .acc-content { padding-bottom: 20px; }

/* Footer */
.site-footer { border-top: 1px solid #222; }
.footer-logo { height: 40px; opacity: 0.3; filter: grayscale(100%); transition: var(--transition); }
.footer-logo:hover { opacity: 1; filter: none; }

/* JS Reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.7s cubic-bezier(0.25, 0.8, 0.25, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }

/* Responsive */
@media (max-width: 992px) {
    .grid-2 { grid-template-columns: 1fr; gap: 3rem; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-image { max-width: 80%; margin: 0 auto; }
    .reverse-mobile .image-wrapper { order: 2; }
    .reverse-mobile .text-block { order: 1; }
    
    .timeline-container::before { left: 20px; }
    .timeline-block, .timeline-block.reverse { justify-content: flex-start; padding-left: 60px; padding-right: 0; }
    .timeline-icon { left: 20px; transform: translateX(-50%); }
    .timeline-content { width: 100%; }
}

@media (max-width: 768px) {
    .desktop-nav {
        position: fixed; top: 70px; left: -100%; width: 100%; height: calc(100vh - 70px);
        background: rgba(10, 10, 12, 0.98); flex-direction: column; justify-content: center;
        align-items: center; transition: var(--transition);
    }
    .desktop-nav.active { left: 0; }
    .nav-links { flex-direction: column; text-align: center; gap: 2rem; }
    .nav-links a { font-size: 1.3rem; }
    .mobile-toggle { display: flex; }
    
    h1 { font-size: 2rem; }
    .section-pad { padding: 60px 0; }
    .p-4, .p-5 { padding: 1.5rem; }
    .hero-section::before { display: none; }
}