:root {
    --bg-deep: #050414;
    --bg-nebula: #1a0b2e;
    --cyan: #00f2ff;
    --purple: #6d28d9;
    --glass: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', sans-serif;
    background: radial-gradient(circle at center, var(--bg-nebula) 0%, var(--bg-deep) 100%);
    background-attachment: fixed;
    color: white;
    overflow-x: hidden;
}

#stars-container { position: fixed; inset: 0; z-index: -1; }

/* NAVBAR */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(5, 4, 20, 0.8); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}
.nav-container {
    max-width: 1300px; margin: 0 auto; padding: 1.2rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { display: flex; align-items: center; gap: 12px; font-family: 'Fredoka', sans-serif; font-size: 1.8rem; }
.logo-img { width: 45px; }
.nav-menu { display: flex; align-items: center; gap: 3rem; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { text-decoration: none; color: white; opacity: 0.7; font-weight: 700; transition: 0.3s; }
.nav-links a:hover { opacity: 1; color: var(--cyan); }
.nav-download-btn {
    background: var(--purple); color: white; text-decoration: none; padding: 10px 25px; 
    border-radius: 100px; font-weight: 700; box-shadow: 0 4px 15px rgba(109, 40, 217, 0.4);
}

/* HERO SECTION */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 100px 2rem; }
.hero-content {
    max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr;
    align-items: center; gap: 4rem;
}
.hero-visual { display: flex; justify-content: center; }
.astronaut-huge { width: 100%; max-width: 500px; filter: drop-shadow(0 0 50px rgba(0, 242, 255, 0.3)); }
.hero-title { font-family: 'Fredoka', sans-serif; font-size: 8rem; line-height: 0.9; margin-bottom: 2rem; }
.hero-tagline { font-size: 2rem; opacity: 0.9; margin-bottom: 3rem; max-width: 600px; line-height: 1.4; }

.app-store-btn {
    display: inline-flex; align-items: center; gap: 15px; 
    background: var(--purple); color: white; padding: 18px 45px;
    border-radius: 100px; text-decoration: none; font-weight: 700; font-size: 1.4rem;
    box-shadow: 0 10px 40px rgba(109, 40, 217, 0.5); transition: 0.3s;
}
.app-store-btn svg { width: 30px; }

/* MISIÓN */
.mission-section { padding: 120px 2rem; }
.mission-container {
    max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr;
    align-items: center; gap: 6rem;
}
.devices-img { width: 100%; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5)); }
.section-heading { font-family: 'Fredoka', sans-serif; font-size: 4rem; color: var(--cyan); margin-bottom: 2rem; }
.section-heading.centered { text-align: center; margin-bottom: 5rem; }
.mission-text p { font-size: 1.4rem; line-height: 1.8; opacity: 0.8; }
.mini-stats { display: flex; gap: 3rem; margin-top: 3rem; }
.stat-item span { font-family: 'Fredoka', sans-serif; font-size: 3rem; color: var(--cyan); display: block; }
.stat-item p { font-weight: 700; opacity: 0.6; }

/* PLANETAS (SCROLL HORIZONTAL) */
.planets-section { padding: 120px 0; }
.planets-scroll-wrapper { overflow-x: auto; padding: 20px 10%; scrollbar-width: none; }
.planets-scroll-wrapper::-webkit-scrollbar { display: none; }
.planets-container { display: flex; gap: 2.5rem; width: max-content; padding: 20px; }

.flip-card { background-color: transparent; width: 300px; height: 420px; perspective: 1000px; cursor: pointer; }
.flip-card-inner { position: relative; width: 100%; height: 100%; text-align: center; transition: transform 0.8s; transform-style: preserve-3d; }
.flip-card.active .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back { position: absolute; width: 100%; height: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 40px; border: 1px solid var(--glass-border); padding: 2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.flip-card-front { background: var(--glass); backdrop-filter: blur(10px); }
.flip-card-back { background: var(--purple); color: white; transform: rotateY(180deg); text-align: center; padding: 20px; }
.flip-card-front img { width: 140px; margin-bottom: 1.5rem; }
.flip-card-front h3 { font-family: 'Fredoka', sans-serif; font-size: 1.8rem; }
.tap-hint { margin-top: 15px; font-size: 0.8rem; color: var(--cyan); font-weight: bold; }

/* TERAPIA PADRES (REVISADA) */
.therapy-section { padding: 120px 2rem; }
.therapy-container {
    max-width: 1200px; margin: 0 auto; background: var(--glass);
    border-radius: 60px; padding: 5rem; border: 1px solid var(--glass-border);
    display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 5rem;
    backdrop-filter: blur(15px);
}
.robi-special-img { width: 100%; border-radius: 30px; filter: drop-shadow(0 0 30px var(--cyan)); }
.feature-list { margin-top: 2rem; list-style: none; }
.feature-list li { 
    padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.1); 
    font-size: 1.2rem; font-weight: bold; color: var(--cyan);
}

/* FAQ CON BORDE */
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--glass); border-radius: 20px; margin-bottom: 1.5rem; border: 1px solid var(--glass-border); transition: border-color 0.4s; }
.faq-item[open] { border-color: var(--cyan); }
summary { padding: 2rem; font-weight: 700; font-size: 1.3rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
details p { padding: 0 2rem 2rem; opacity: 0.7; line-height: 1.6; }

/* FOOTER */
.footer { background: rgba(0,0,0,0.5); padding: 100px 2rem 50px; border-top: 1px solid var(--glass-border); margin-top: 100px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; }
.footer-col h4 { color: var(--cyan); font-family: 'Fredoka', sans-serif; margin-bottom: 1.5rem; font-size: 1.4rem; }
.footer-col a { display: block; color: white; opacity: 0.6; text-decoration: none; margin-bottom: 10px; }
.footer-col a:hover { opacity: 1; color: var(--cyan); }
.social-icons { display: flex; gap: 15px; margin-top: 20px; }
.footer-copyright { text-align: center; margin-top: 80px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); opacity: 0.4; }

/* ANIMACIONES */
.floating { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-30px); } }

@media (max-width: 1000px) {
    .hero-content, .mission-container, .therapy-container, .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-title { font-size: 5rem; }
    .nav-menu { display: none; }
    .hero-visual { order: -1; }
    .mini-stats { justify-content: center; }
}