/* ============================================================
   SISTEMA FUEGO 360 — Estilos base compartidos (14 slides)
   Evento: El Asado de Carne Más Grande del Mundo Colombia 2026
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; width: 100%; overflow: hidden; font-family: 'Open Sans', sans-serif; }
body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    color: #e8e8e8;
}

/* ---------- Partículas de fuego ---------- */
.fire-particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 1; pointer-events: none; }
.particle { position: absolute; width: 3px; height: 3px; background: radial-gradient(circle, #ff6b35 0%, transparent 70%); border-radius: 50%; animation: float-up 5s infinite ease-in; opacity: 0.4; }
@keyframes float-up {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.25; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ---------- Barra de progreso ---------- */
.progress-bar { position: fixed; top: 0; left: 0; height: 4px; background: linear-gradient(90deg, #ff6b35, #ffd700); z-index: 100; transition: width 0.3s ease; }

/* ---------- Contenedor principal ----------
   padding-bottom reserva el espacio de la barra de navegación
   para que los botones NUNCA se monten sobre el contenido. */
.main-container { display: flex; flex-direction: column; height: 100%; width: 100%; position: relative; z-index: 2; padding-bottom: 62px; }

/* ---------- Encabezado ---------- */
.header { flex: 0 0 auto; padding: clamp(0.8rem, 2vw, 1.5rem) clamp(1rem, 3vw, 3rem) clamp(0.4rem, 1vw, 0.8rem); text-align: center; }
.slide-title { font-family: 'Montserrat', sans-serif; font-size: clamp(1.4rem, 3.6vw, 2.5rem); font-weight: 800; color: #ffffff; letter-spacing: clamp(1px, 0.3vw, 2px); line-height: 1.2; }
.title-highlight { color: #ff6b35; }
.subtitle { font-size: clamp(0.72rem, 1.35vw, 0.95rem); color: #a0a0a0; margin-top: 0.35rem; font-weight: 400; letter-spacing: 0.5px; }

/* ---------- Pie de página ---------- */
.footer { flex: 0 0 auto; padding: clamp(0.5rem, 1.1vw, 0.8rem) clamp(1rem, 2vw, 1.5rem); text-align: center; background: rgba(0, 0, 0, 0.3); border-top: 1px solid rgba(255, 107, 53, 0.2); }
.footer-text { font-family: 'Montserrat', sans-serif; color: #808080; font-size: clamp(0.6rem, 1.15vw, 0.78rem); font-weight: 500; }

/* ---------- Navegación (inyectada por nav.js) ---------- */
.nav-controls { position: fixed; bottom: 0.7rem; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 1rem; z-index: 100; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(10px); padding: 0.45rem 1.1rem; border-radius: 30px; border: 1px solid rgba(255, 107, 53, 0.3); }
.nav-btn { background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%); border: none; color: white; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; font-weight: bold; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; }
.nav-btn:hover { transform: scale(1.15); box-shadow: 0 5px 20px rgba(255, 107, 53, 0.5); }
.slide-indicator { color: #ff6b35; font-family: 'Montserrat', sans-serif; font-size: 0.82rem; font-weight: 600; min-width: 56px; text-align: center; }

/* ---------- Utilidades compartidas ---------- */
.glass-card { background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(10px); border: 1px solid rgba(255, 107, 53, 0.25); border-radius: 13px; transition: all 0.4s ease; position: relative; overflow: hidden; }
.glass-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(255, 107, 53, 0.22); border-color: rgba(255, 107, 53, 0.55); background: rgba(255, 107, 53, 0.08); }
.highlight-text { color: #ffd700; font-weight: 600; }

/* Foto real integrada en tarjeta */
.photo-card { border-radius: 13px; overflow: hidden; border: 2px solid rgba(255, 107, 53, 0.4); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45); position: relative; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.45rem 0.7rem; background: linear-gradient(0deg, rgba(10, 10, 20, 0.88) 0%, transparent 100%); color: #fff; font-size: clamp(0.6rem, 1.1vw, 0.75rem); font-weight: 600; font-family: 'Montserrat', sans-serif; letter-spacing: 0.4px; }

/* Fondo de foto con overlay (portada / cierre) */
.hero-photo-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero-photo-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26, 26, 46, 0.93) 0%, rgba(22, 33, 62, 0.88) 50%, rgba(15, 52, 96, 0.9) 100%); }

/* Scrollbars discretos */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: rgba(255, 107, 53, 0.35); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 768px) {
    .main-container { padding-bottom: 56px; }
    .nav-controls { bottom: 0.55rem; padding: 0.4rem 0.9rem; }
    .nav-btn { width: 30px; height: 30px; font-size: 0.9rem; }
}

/* ============================================================
   MÓVIL — la página scrollea y NADA se recorta
   (antes: body 100vh + overflow hidden => texto cortado)
   ============================================================ */
@media (max-width: 900px), (max-height: 620px) {
    html, body { height: auto !important; min-height: 100%; overflow-x: hidden !important; overflow-y: auto !important; }
    body { display: block !important; }

    /* espacio suficiente para que la barra de botones no tape texto */
    .main-container { height: auto !important; min-height: 100vh; padding-bottom: 92px !important; }

    /* el contenido fluye: nada con altura forzada */
    .content-area, .content-wrapper { overflow: visible !important; height: auto !important; min-height: 0 !important; }

    /* las tarjetas crecen con su contenido */
    .glass-card, .impact-card, .objective-card, .avatar-card, .tech-card,
    .platform-card, .funnel-stage, .phase-card, .phase-kpi-card,
    .risk-card, .flow-card, .scenario-card, .includes-section,
    .deliverables-section, .budget-table-container {
        height: auto !important; min-height: 0 !important; flex: 0 0 auto !important; overflow: visible !important;
    }

    /* las listas internas ya no scrollean: se muestran completas */
    .objectives-list, .tech-list, .content-list, .kpi-list, .timeline-list,
    .flow-steps, .content-section, .stage-content, .includes-grid, .deliverables-list {
        overflow: visible !important; max-height: none !important; flex: 0 0 auto !important;
    }

    /* fondos fotográficos: que acompañen el scroll */
    .hero-photo-bg { position: absolute !important; height: 100% !important; }
    .fire-particles { position: absolute !important; }
}

/* ============================================================
   EXPORTACIÓN A PDF — página 1600x900 (16:9) para que el texto
   salga grande y con el layout de escritorio
   ============================================================ */
@media print {
    @page { size: 1600px 900px; margin: 0; }
    html, body {
        width: 1600px !important; height: 900px !important;
        overflow: hidden !important; display: flex !important;
    }
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
    .nav-controls, .progress-bar, .fire-particles { display: none !important; }
    .main-container { height: 100% !important; padding-bottom: 0 !important; }
    .hero-photo-bg { position: absolute !important; }
    .funnel-stage, .phase-card, .phase-kpi-card, .platform-card, .risk-card,
    .tech-card, .objective-card, .impact-card, .flow-card, .avatar-card { break-inside: avoid; }
    .content-area, .content-wrapper { overflow: hidden !important; }
}
