@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root { --bg-main: #121212; --accent-neon: #4DDBF3; --glow: rgba(77, 219, 243, 0.5); --container-bg: #1A1A1A; --input-bg: #1A1A1A; --text-light: #FFFFFF; --text-muted: #A0A0A0; }
body { margin: 0; background-color: #000; display: flex; justify-content: center; align-items: center; min-height: 100vh; font-family: 'Poppins', sans-serif; color: var(--text-light); }

.app-container { width: 100%; max-width: 400px; height: 800px; max-height: 100vh; background-color: var(--bg-main); position: relative; overflow-y: auto; overflow-x: hidden; box-shadow: 0 0 50px rgba(77, 219, 243, 0.05); border: 1px solid #222; border-radius: 30px; scrollbar-width: none; }
.app-container::-webkit-scrollbar { display: none; }

/* 📐 HEADER LUX: Simetría Axial */
.app-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 15px 20px; background: rgba(18,18,18,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(77,219,243,0.1); position: sticky; top: 0; z-index: 100; min-height: 45px; }
.header-left { flex: 1; display: flex; justify-content: flex-start; align-items: center; } 
.header-center { flex: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; } 
.header-right { flex: 1; display: flex; justify-content: flex-end; align-items: center; position: relative; }

.header-logo-neon { font-size: 1.6rem; font-weight: 700; color: var(--text-light); text-shadow: 0 0 10px var(--accent-neon); margin: 0 0 5px 0; letter-spacing: 2px; transition: opacity 0.5s ease; opacity: 1; }
.header-logo-neon.hidden { opacity: 0; display: none; }

/* ⚡ ACORDEÓN DE CRÉDITOS */
.credits-accordion-container { display: flex; flex-direction: column; align-items: center; width: 100%; }
.credits-accordion-container.hidden { display: none; }
.credits-header { cursor: pointer; color: var(--accent-neon); font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; gap: 5px; letter-spacing: 1px; user-select: none; }
.chevron { font-size: 0.6rem; transition: transform 0.3s ease; }
.credits-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; text-align: center; opacity: 0; }
.credits-body.open { max-height: 120px; margin-top: 10px; opacity: 1; }
.credits-desc-text { font-size: 0.75rem; color: var(--text-muted); margin: 0; line-height: 1.5; font-weight: 400; padding: 0 10px; }

/* BOTONES Y PERFIL */
.clean-select { background: transparent; border: none; color: var(--text-muted); font-family: 'Poppins'; outline: none; cursor: pointer; }
.login-btn-neon { background: transparent; color: var(--text-light); border: 1px solid var(--accent-neon); padding: 6px 16px; border-radius: 20px; font-family: 'Poppins'; font-weight: 500; cursor: pointer; box-shadow: 0 0 10px rgba(77,219,243,0.1); }
.profile-wrapper { position: relative; cursor: pointer; }
#user-avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--accent-neon); object-fit: cover; }
.glass-dropdown { position: absolute; right: 0; top: 50px; width: 160px; background: rgba(26,26,26,0.95); backdrop-filter: blur(20px); border: 1px solid rgba(77,219,243,0.2); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.8); z-index: 200; }
.dropdown-item { padding: 12px 15px; font-size: 0.85rem; color: var(--text-light); border-bottom: 1px solid rgba(255,255,255,0.05); transition: background 0.2s; cursor: pointer; }
.dropdown-item:hover { background: rgba(77,219,243,0.1); }
.dropdown-divider { height: 1px; background: rgba(255,255,255,0.1); }
.vip-text { color: var(--accent-neon); font-weight: 600; } .logout-text { color: #ff4d4d; } .logout-text:hover { background: rgba(255,0,0,0.1); }

/* 🧠 LOBBY PULSE */
@keyframes brainPulse { 0% { text-shadow: 0 0 10px var(--accent-neon), 0 0 20px var(--glow); transform: scale(1); } 50% { text-shadow: 0 0 25px var(--accent-neon), 0 0 50px var(--accent-neon); transform: scale(1.03); } 100% { text-shadow: 0 0 10px var(--accent-neon), 0 0 20px var(--glow); transform: scale(1); } }
.brain-pulse { animation: brainPulse 3.5s infinite ease-in-out; }
.screen { position: absolute; top: 0; left: 0; width: 100%; min-height: 100%; display: flex; flex-direction: column; transition: opacity 0.4s ease; padding: 30px 25px; box-sizing: border-box; margin-top: 60px; }
#landing-screen { margin-top: 0; justify-content: center; align-items: center; text-align: center; height: 100%; }
.screen.hidden { opacity: 0; pointer-events: none; } .screen.active { opacity: 1; pointer-events: all; }
.brand-container { display: flex; flex-direction: column; align-items: center; justify-content: center; flex-grow: 1; width: 100%; }
.logo-neon { font-size: 4.8rem; font-weight: 700; margin: 0; color: var(--text-light); text-shadow: 0 0 10px var(--accent-neon), 0 0 30px var(--glow); letter-spacing: 4px; }
.slogan { font-weight: 300; font-size: 1.1rem; color: var(--text-light); opacity: 0.75; margin-top: 15px; margin-bottom: 45px; padding: 0 20px; line-height: 1.6; letter-spacing: 0.5px; }

.dual-path-container { display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: 320px; }
.vip-badge-small { font-size: 0.65rem; background: rgba(77,219,243,0.15); padding: 4px 8px; border-radius: 6px; margin-left: 8px; vertical-align: middle; border: 1px solid rgba(77,219,243,0.3); letter-spacing: 1px; font-weight: 600; text-transform: uppercase;}

/* 🌟 TALLER Y LUX SPACING */
.protocol-switcher, .nexus-tabs-container { display: flex; background: var(--container-bg); border-radius: 12px; padding: 6px; border: 1px solid #2A2A2A; margin-bottom: 15px; box-sizing: border-box; width: 100%;}
.protocol-tab, .nexus-tab { flex: 1; text-align: center; padding: 12px 0; font-size: 0.9rem; font-weight: 600; color: var(--text-muted); cursor: pointer; border-radius: 8px; background: transparent; border: 1px solid transparent; font-family: 'Poppins'; transition: 0.3s; }
.protocol-tab.active, .nexus-tab.active { background: var(--bg-main); color: var(--text-light); border: 1px solid var(--accent-neon); box-shadow: 0 0 12px rgba(77,219,243,0.15); }
.vip-lock { color: #666; }

/* 🔴 Directiva FRAME: Espaciado de Lujo */
.taller-content.lux-spacing { display: flex; flex-direction: column; gap: 35px; padding-bottom: 120px; } 

#upload-wrapper, #story-context-wrapper { width: 100%; box-sizing: border-box; }
.upload-zone { border: 1.5px dashed #444; background: var(--container-bg); border-radius: 16px; padding: 45px 20px; text-align: center; cursor: pointer; box-sizing: border-box; width: 100%; transition: 0.3s; }
.upload-zone:hover { border-color: var(--accent-neon); background: rgba(77, 219, 243, 0.02); }
.camera-icon { width: 38px; height: 38px; color: var(--accent-neon); margin-bottom: 15px; }
.image-preview-container { position: relative; width: 100%; border-radius: 16px; overflow: hidden; border: 1px solid #333; box-sizing: border-box; }
#preview-image { width: 100%; display: block; object-fit: cover; }
.glass-btn-small { position: absolute; top: 12px; right: 12px; background: rgba(18, 18, 18, 0.7); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); color: var(--text-light); padding: 8px 15px; border-radius: 20px; font-size: 0.75rem; font-weight: 500; cursor: pointer; transition: 0.2s;}
.glass-btn-small:hover { border-color: var(--accent-neon); }

.custom-textarea { width: 100%; height: 110px; padding: 18px; background-color: var(--input-bg); border: 1px solid #333; color: var(--text-light); border-radius: 16px; font-family: 'Poppins', sans-serif; font-size: 0.95rem; outline: none; resize: none; box-sizing: border-box; margin: 0 auto; display: block; transition: 0.3s;}
.custom-textarea:focus { border-color: var(--accent-neon); box-shadow: 0 0 10px rgba(77,219,243,0.1); }
.custom-input { width: 100%; padding: 15px; background-color: var(--input-bg); border: 1px solid #333; color: var(--text-light); border-radius: 16px; font-family: 'Poppins'; outline: none; box-sizing: border-box; }

/* 🌸 ACENTO ROSA ESTRICTO */
.gender-selector-hightech { display: flex; justify-content: center; gap: 25px; }
.gender-btn-icon { width: 80px; height: 80px; background: #1E1E1E; border-radius: 20px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #555; border: 2px solid #2A2A2A; transition: 0.3s; }
.gender-btn-icon svg { width: 38px; height: 38px; }
.gender-btn-icon[data-gender="male"].active { background: rgba(77, 219, 243, 0.08); border-color: var(--accent-neon); color: #FFF; box-shadow: 0 0 25px rgba(77, 219, 243, 0.25); }
.gender-btn-icon[data-gender="female"].active { background: rgba(255, 0, 127, 0.08); border-color: #FF007F; color: #FFF !important; box-shadow: 0 0 25px rgba(255, 0, 127, 0.4); }

.settings-card { background: var(--container-bg); border-radius: 16px; padding: 30px 20px; border: 1px solid #2A2A2A; display: flex; flex-direction: column; gap: 25px; }
.input-group { display: flex; flex-direction: column; gap: 12px; width: 100%; box-sizing: border-box; }
.step-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.custom-select { width: 100%; padding: 18px 20px; background-color: var(--input-bg); border: 1px solid #333; color: var(--text-light); border-radius: 16px; font-family: 'Poppins'; font-size: 0.95rem; outline: none; appearance: none; box-sizing: border-box; transition: 0.3s; }
.custom-select:focus { border-color: var(--accent-neon); box-shadow: 0 0 10px rgba(77,219,243,0.1); }
.vip-option { color: var(--accent-neon); font-weight: 600; }

.main-action-btn { width: 100%; padding: 18px; background: var(--accent-neon); color: #000; border: none; border-radius: 14px; font-family: 'Poppins'; font-weight: 700; font-size: 1.05rem; cursor: pointer; box-shadow: 0 4px 15px rgba(77, 219, 243, 0.4); margin-top: 10px; box-sizing: border-box; transition: 0.2s;}
.main-action-btn:active { transform: scale(0.98); }
.neon-outline-btn { width: 100%; padding: 16px; background: transparent; color: var(--accent-neon); border: 1px solid var(--accent-neon); border-radius: 12px; font-weight: 600; cursor: pointer; font-family: 'Poppins'; box-sizing: border-box; transition: 0.3s; }
.neon-outline-btn:hover { background: rgba(77, 219, 243, 0.1); box-shadow: 0 0 20px var(--glow); }

/* ⚡ MICRO-INTERACCIÓN: FLASH CYAN AL COPIAR */
@keyframes flashCyan { 0% { background: var(--accent-neon); color: #000; transform: scale(0.95); box-shadow: 0 0 30px var(--accent-neon); } 100% { background: rgba(77, 219, 243, 0.1); color: var(--accent-neon); transform: scale(1); box-shadow: none; } }
.flash-active { animation: flashCyan 0.5s ease-out forwards !important; }
.glow-btn { width: 100%; padding: 15px; background: rgba(77, 219, 243, 0.1); border: 1px solid var(--accent-neon); border-radius: 12px; color: var(--accent-neon); font-weight: 600; cursor: pointer; margin-bottom: 25px; box-sizing: border-box; transition: 0.3s; font-family: 'Poppins'; }
.glow-btn:hover { background: rgba(77,219,243,0.15); }
.text-link-btn { background: none; border: none; color: var(--text-muted); font-family: 'Poppins'; font-size: 0.85rem; text-decoration: underline; cursor: pointer; width: 100%; padding: 10px; transition: 0.2s;}
.text-link-btn:hover { color: var(--text-light); }

/* MODALES */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: center; z-index: 9999; padding: 20px; box-sizing: border-box; }
.glass-modal { background: #1A1A1A; border: 1px solid var(--accent-neon); border-radius: 20px; padding: 30px 20px; width: 100%; max-width: 360px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.8); }
.vip-plans { display: flex; flex-direction: column; gap: 12px; margin-bottom: 25px; }
.vip-plan-btn { background: #222; border: 1px solid #333; color: white; padding: 16px; border-radius: 12px; display: flex; justify-content: space-between; font-family: 'Poppins'; cursor: pointer; transition: 0.3s;}
.vip-plan-btn.highlight { background: rgba(77, 219, 243, 0.1); border-color: var(--accent-neon); color: var(--accent-neon); font-weight: 700; box-shadow: 0 0 20px rgba(77, 219, 243, 0.2); }

.glass-card { background: rgba(26, 26, 26, 0.7); backdrop-filter: blur(15px); border: 1px solid rgba(77, 219, 243, 0.3); border-radius: 20px; padding: 35px 25px; box-shadow: 0 20px 40px rgba(0,0,0,0.6); margin-top: 15px; text-align: left; box-sizing: border-box;}
.result-text { font-size: 1.3rem; font-weight: 500; color: var(--text-light); margin-bottom: 25px; line-height: 1.5;}

/* ⚡ LOADER PULSO CIAN */
#loading-state { display: flex; flex-direction: column; align-items: center; padding: 50px 0; }
.loading-spinner { border: 3px solid rgba(77, 219, 243, 0.1); border-top: 3px solid var(--accent-neon); border-radius: 50%; width: 40px; height: 40px; animation: spinPulse 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite; margin-bottom: 20px; box-shadow: 0 0 15px var(--glow); }
@keyframes spinPulse { 0% { transform: rotate(0deg) scale(1); box-shadow: 0 0 10px var(--glow); } 50% { transform: rotate(180deg) scale(1.1); box-shadow: 0 0 25px var(--accent-neon); } 100% { transform: rotate(360deg) scale(1); box-shadow: 0 0 10px var(--glow); } }
.loading-text { color: var(--accent-neon); font-size: 0.95rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }

.hidden { display: none !important; }