:root {
    /* Alias para mantener compatibilidad */
    --primary-color: #99232e;
    --secondary-color: #ffffff;
    --primary-dark: #5c1419;

    --primary-red: #99232e;
    --secondary-red: #7a1c24;
    --light-red: #f8d7da;
    --dark-red: #5c1419;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
    --primary-blue: #007bff;
    
    /* Gradientes */
    --gradient-red: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #000000 50%, var(--primary-color) 100%);
    
    
    --bg: #f5f3ee;
    --surface: #ffffff;
    --surface-alt: #edeae3;
    --accent: #99232e;
    --accent-light: #f8d7da;
    --accent-dark: #5c1419;
    --text: #1a1714;
    --text-mid: #4a4540;
    --text-soft: #8a837a;
    --border: #ddd8d0;
    --sidebar-w: 280px;
    --badge-enviada: #e8f4fd;
    --badge-enviada-text: #1a6fa0;
    --badge-preseleccionado: #fff8e1;
    --badge-preseleccionado-text: #9a6c00;
    --badge-seleccionado: #e8f5e9;
    --badge-seleccionado-text: #2e7d32;
    --badge-descartado: #fce4e4;
    --badge-descartado-text: #b71c1c;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
}

/* ── SIDEBAR ── */
.sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--surface);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    padding: 0 0 40px;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    padding: 28px 24px 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-brand .label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 4px;
}

.sidebar-brand .name {
    font-family: 'DM Serif Display', serif;
    font-size: 18px;
    color: var(--text);
    line-height: 1.2;
}

.sidebar-brand .name span {
    color: var(--accent);
}

.sidebar-section-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-soft);
    padding: 24px 24px 8px;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-mid);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all .15s ease;
}

.sidebar nav a .icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar nav a:hover {
    color: var(--accent);
    background: var(--accent-light);
    border-left-color: var(--accent);
}

.sidebar nav a.active {
    color: var(--accent);
    background: var(--accent-light);
    border-left-color: var(--accent);
    font-weight: 600;
}

.sidebar-footer {
    margin-top: auto;
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-soft);
}

/* ── MAIN ── */
.main {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
}

/* ── HERO ── */
.hero {
    background: var(--text);
    color: white;
    padding: 72px 60px 64px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(231, 25, 25, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

.hero .tag {
    display: inline-block;
    background: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 2px;
    margin-bottom: 20px;
}

.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 46px;
    line-height: 1.1;
    margin-bottom: 16px;
    max-width: 600px;
}

.hero p {
    font-size: 17px;
    color: rgba(255,255,255,.65);
    max-width: 520px;
    line-height: 1.6;
}

.hero-meta {
    display: flex;
    gap: 32px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,.12);
}

.hero-meta .item {
    font-size: 13px;
    color: rgba(255,255,255,.5);
}

.hero-meta .item strong {
    display: block;
    font-size: 15px;
    color: rgba(255,255,255,.85);
    font-weight: 500;
    margin-bottom: 2px;
}

/* ── CONTENT AREA ── */
.content {
    max-width: 820px;
    padding: 64px 60px 100px;
}

/* ── SECTION ── */
.section {
    margin-bottom: 80px;
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    background: var(--accent);
    color: white;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 16px;
}

.section h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 30px;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.2;
}

.section .section-intro {
    font-size: 16px;
    color: var(--text-mid);
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

/* ── SCREENSHOT PLACEHOLDER ── */
.screenshot {
    margin: 28px 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
}

.screenshot-bar {
    background: var(--surface-alt);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.screenshot-bar .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.screenshot-bar .dot.red   { background: #ff5f56; }
.screenshot-bar .dot.amber { background: #ffbd2e; }
.screenshot-bar .dot.green { background: #27c93f; }

.screenshot-bar .url {
    margin-left: 8px;
    font-size: 12px;
    color: var(--text-soft);
    font-family: monospace;
}

.screenshot img {
    display: block;
    width: 100%;
    height: auto;
}

.screenshot-placeholder {
    background: var(--surface-alt);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-soft);
    font-size: 14px;
}

.screenshot-placeholder .ph-icon {
    font-size: 32px;
    opacity: .4;
}

.screenshot-caption {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-soft);
    background: var(--surface);
    font-style: italic;
    border-top: 1px solid var(--border);
}

/* ── STEPS ── */
.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 28px 0;
}

.step {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.step:last-child { border-bottom: none; }

.step-num {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.step-body h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.step-body p {
    font-size: 14px;
    color: var(--text-mid);
}

/* ── CALLOUT ── */
.callout {
    border-radius: 8px;
    padding: 18px 20px;
    margin: 24px 0;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.callout.info {
    background: #e8f4fd;
    border-left: 4px solid #1a6fa0;
}

.callout.warning {
    background: #fff8e1;
    border-left: 4px solid #f0a500;
}

.callout.success {
    background: #e8f5e9;
    border-left: 4px solid #2e7d32;
}

.callout .callout-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

.callout-body { font-size: 14px; color: var(--text); line-height: 1.6; }
.callout-body strong { display: block; margin-bottom: 3px; font-size: 14px; }

/* ── STATUS BADGES ── */
.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 28px 0;
}

.status-card {
    border-radius: 8px;
    padding: 18px 20px;
    border: 1px solid var(--border);
}

.status-card .badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.status-card.enviada   { background: var(--badge-enviada); }
.status-card.enviada .badge { background: var(--badge-enviada-text); color: white; }

.status-card.preseleccionado { background: var(--badge-preseleccionado); }
.status-card.preseleccionado .badge { background: var(--badge-preseleccionado-text); color: white; }

.status-card.seleccionado { background: var(--badge-seleccionado); }
.status-card.seleccionado .badge { background: var(--badge-seleccionado-text); color: white; }

.status-card.descartado { background: var(--badge-descartado); }
.status-card.descartado .badge { background: var(--badge-descartado-text); color: white; }

.status-card h4 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.status-card p  { font-size: 13px; color: var(--text-mid); line-height: 1.5; }

/* ── MENU MAP ── */
.menu-map {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 24px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color .15s;
}

.menu-item:hover { border-color: var(--accent); }

.menu-item .mi-icon {
    font-size: 20px;
    width: 36px; height: 36px;
    background: var(--accent-light);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
}

.menu-item h4 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.menu-item p  { font-size: 13px; color: var(--text-soft); }

/* ── URL CHIP ── */
.url-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 14px;
    font-family: monospace;
    font-size: 14px;
    color: var(--accent);
    margin: 12px 0 24px;
}

/* ── DIVIDER ── */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 60px 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .sidebar { display: none; }
    .main { margin-left: 0; }
    .hero { padding: 48px 28px 40px; }
    .hero h1 { font-size: 32px; }
    .content { padding: 40px 28px 80px; }
    .status-grid { grid-template-columns: 1fr; }
}