:root {
    --color-background: #1a1a1a;
    --color-text: #f0f0f0;
    --color-primary: #FFC300; /* Golden Yellow */
    --color-accent: #DAA520; /* Darker Gold */
    --color-danger: #FF4500; /* Fiery Orange */
    --color-sonar-bg: rgba(20, 60, 80, 0.2);
    --color-sonar-line: #00FF7F; /* SpringGreen */
    --font-headline: 'Anton', sans-serif;
    --font-body: 'Lato', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-body);
    overflow-x: hidden;
    text-align: center;
}

body.combo-view-active {
    background: #1a1a1a;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 195, 0, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(255, 69, 0, 0.1) 0%, transparent 30%);
    animation: energy-pulse 15s linear infinite;
}

/* --- PRELOADER --- */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--color-background); z-index: 1000; display: flex; justify-content: center; align-items: center; transition: opacity 0.5s ease, visibility 0.5s ease; }
.loader-text { font-family: var(--font-headline); font-size: 2rem; color: var(--color-primary); text-transform: uppercase; }

/* --- VIDEO DE FONDO --- */
#video-background { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; transition: opacity 0.8s ease; }
#video-background.hidden { opacity: 0; }
#video-background video { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.3) contrast(1.1); }

/* --- HEADER --- */
header { position: fixed; top: 0; left: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; z-index: 100; background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent); }
.logo-container #logo-svg { height: 60px; width: auto; animation: fadeInDown 1.5s ease-out; }

/* --- ESTRUCTURA PRINCIPAL --- */
main { width: 100%; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2rem 1rem; }
section { width: 100%; max-width: 1200px; margin: auto; padding: 2rem 1rem; display: none; animation: fadeIn 0.8s ease-in-out; }

/* --- SECCIÓN 1: HOME & SONAR --- */
.main-headline { font-family: var(--font-headline); font-size: clamp(2rem, 6vw, 3.5rem); text-transform: uppercase; max-width: 800px; margin: 0 auto 2rem auto; line-height: 1.2; }
.main-headline strong { color: var(--color-primary); }

#sonar-container { width: 250px; height: 250px; position: relative; margin: 1rem auto; }
.sonar-scanner { width: 100%; height: 100%; border-radius: 50%; background: var(--color-sonar-bg); border: 2px solid rgba(0, 255, 127, 0.3); position: relative; overflow: hidden; }
.sonar-scanner::before, .sonar-scanner::after { content: ''; position: absolute; top: 50%; left: 50%; border: 1px solid rgba(0, 255, 127, 0.2); border-radius: 50%; transform: translate(-50%, -50%); }
.sonar-scanner::before { width: 33%; height: 33%; }
.sonar-scanner::after { width: 66%; height: 66%; }
.sonar-sweep { width: 50%; height: 50%; background: linear-gradient(to top, rgba(0, 255, 127, 0.4) 0%, transparent 100%); position: absolute; top: 0; left: 50%; transform-origin: bottom right; animation: sweep 2.5s linear infinite; border-top-left-radius: 125px; }
.sonar-blip { position: absolute; font-size: 1.8rem; opacity: 0; animation: blip-fade 2.5s infinite; text-shadow: 0 0 5px #fff; }

#scanner-title { font-family: var(--font-headline); font-size: 1.5rem; color: var(--color-sonar-line); letter-spacing: 2px; margin-bottom: 2rem; }
.question-title { font-family: var(--font-headline); font-size: clamp(1.5rem, 6vw, 2.5rem); margin-bottom: 2rem; }
.button-container { display: flex; flex-direction: column; gap: 1.5rem; width: 100%; max-width: 400px; margin: auto; }
.hunger-btn { background: transparent; border: 3px solid var(--color-primary); color: var(--color-primary); padding: 1.2rem; font-family: var(--font-headline); font-size: clamp(1.5rem, 5vw, 1.8rem); cursor: pointer; transition: all 0.3s ease; }
.hunger-btn:hover { background: var(--color-primary); color: var(--color-background); transform: scale(1.05); box-shadow: 0 0 25px var(--color-primary); }
.apocalipsis { border-color: var(--color-danger); color: var(--color-danger); animation: pulse-orange 2s infinite; }
.apocalipsis:hover { background: var(--color-danger); color: var(--color-background); box-shadow: 0 0 25px var(--color-danger); }

/* --- SECCIÓN 2: COMBO DISPLAY --- */
#back-to-scanner-btn { background: none; border: 2px solid var(--color-text); color: var(--color-text); padding: 0.8rem 1.5rem; font-family: var(--font-headline); font-size: 1.2rem; cursor: pointer; margin-bottom: 2rem; transition: all 0.3s ease; }
#back-to-scanner-btn:hover { background: var(--color-text); color: var(--color-background); }
#combo-details-container { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; max-width: 900px; margin: auto; }
.combo-image img { width: 100%; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.combo-info h2 {
    font-family: var(--font-headline);
    font-size: clamp(3rem, 10vw, 5rem);
    text-transform: uppercase;
    background: linear-gradient(45deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}
.combo-info .price {
    font-family: var(--font-headline);
    font-size: 3rem;
    color: var(--color-background);
    background-color: var(--color-primary);
    padding: 0.5rem 1.5rem;
    display: inline-block;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(255,195,0,0.4);
}
.combo-info ul { list-style: none; text-align: left; margin: 0 0 2rem 1rem; font-size: 1.2rem; line-height: 1.8; }
.combo-info li { margin-bottom: 1rem; opacity: 0; animation: slideInFromLeft 0.5s ease-out forwards; }

.review-card { background: #2a2a2a; border-radius: 10px; padding: 1.5rem; margin-top: 2rem; border: 1px solid #444; text-align: left; }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.review-source { font-weight: bold; }
.stars { color: #ffb400; font-size: 1.2rem; }
.review-body p { font-style: italic; margin-bottom: 0.5rem; }
.review-body span { font-size: 0.9rem; color: #aaa; }

.main-cta-btn { background: linear-gradient(45deg, var(--color-danger), #ff7e52); color: var(--color-text); border: none; padding: 1.5rem; font-family: var(--font-headline); font-size: 2rem; cursor: pointer; width: 100%; animation: pulse-orange 2s infinite; }

/* --- MODAL FORMULARIO --- */
#mission-data-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); z-index: 200; display: none; justify-content: center; align-items: center; animation: fadeIn 0.5s ease; }
#mission-data-modal.active { display: flex; }
.modal-content-form { background: #111; padding: 2rem; border: 2px solid var(--color-primary); max-width: 500px; width: 90%; text-align: left; position: relative; }
.close-modal-btn { position: absolute; top: 10px; right: 20px; background: none; border: none; color: #fff; font-size: 2.5rem; cursor: pointer; }
.form-title { font-family: var(--font-headline); font-size: 2rem; color: var(--color-primary); text-align: center; margin-bottom: 2rem; }
#welcome-back-message { padding: 1rem; background: rgba(255, 195, 0, 0.1); border-left: 4px solid var(--color-primary); margin-bottom: 1.5rem; border-radius: 5px; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 1.1rem; margin-bottom: 0.5rem; }
.form-group input { width: 100%; padding: 1rem; background: #222; border: 1px solid #444; color: var(--color-text); font-size: 1.1rem; }
#confirm-and-launch-btn { background: var(--color-danger); color: var(--color-text); border: none; padding: 1.2rem; font-family: var(--font-headline); font-size: 1.5rem; cursor: pointer; width: 100%; margin-top: 1rem; }

/* --- MODAL BARRA DE PROGRESO (MEJORADO) --- */
#progress-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.95); z-index: 300; display: none; justify-content: center; align-items: center; flex-direction: column; }
.progress-container { width: 90%; max-width: 600px; text-align: center; }
#progress-icon { font-size: 4rem; color: var(--color-primary); margin-bottom: 1.5rem; animation: icon-pop-in 0.5s ease-out; }
#progress-text { font-family: var(--font-headline); font-size: 2rem; color: var(--color-text); margin-bottom: 1.5rem; }
.progress-bar { width: 100%; height: 25px; background-color: #333; border-radius: 10px; overflow: hidden; border: 2px solid #555; }
#progress-bar-inner { width: 0%; height: 100%; background: linear-gradient(90deg, var(--color-accent), var(--color-primary)); transition: width 1.5s cubic-bezier(0.65, 0, 0.35, 1); background-size: 200% 200%; animation: loading-shimmer 2s linear infinite; }

/* --- FOOTER --- */
footer { width: 100%; padding: 2rem; background: #111; z-index: 100; text-align: center; color: #888; }
.social-media-footer { margin-bottom: 1rem; }
.social-media-footer a { color: #aaa; margin: 0 1rem; transition: color 0.3s ease, transform 0.3s ease; text-decoration: none; }
.social-media-footer a svg { width: 28px; height: 28px; fill: currentColor; }
.social-media-footer a:hover { color: var(--color-primary); transform: translateY(-5px); }
.red-sapien-credit { font-size: 0.9rem; margin-top: 1rem; }
.red-sapien-credit strong { color: var(--color-text); }

/* --- ANIMACIONES --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sweep { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes blip-fade { 0%, 100% { opacity: 0; transform: scale(0.5); } 50% { opacity: 1; transform: scale(1); } }
@keyframes pulse-orange { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 69, 0, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(255, 69, 0, 0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 69, 0, 0); } }
@keyframes icon-pop-in { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes slideInFromLeft { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes shockwave-anim { 0% { transform: translate(-50%, -50%) scale(0); opacity: 0.8; } 100% { transform: translate(-50%, -50%) scale(30); opacity: 0; } }
@keyframes energy-pulse { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes loading-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* --- MEDIA QUERIES --- */
@media (min-width: 992px) { #combo-details-container { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { main { padding-top: 2rem; } }
