:root {
  --bg-base: #05070a;
  --panel-bg: #0d1117;
  --panel-bg-2: #141b24;
  --accent-cyan: #43d9ff;
  --accent-cyan-glow: rgba(67, 217, 255, 0.3);
  --accent-green: #6cffb3;
  --accent-purple: #9d7cff;
  --text-main: #f3f8ff;
  --text-muted: #9fb0c3;
  --border-color: rgba(154, 219, 255, 0.16);
  --font-main: 'Outfit', sans-serif;
}

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

body { font-family: var(--font-main); background-color: var(--bg-base); color: var(--text-main); height: 100vh; overflow: hidden; }

/* Fondos */
.cyber-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; background: radial-gradient(circle at 72% 12%, rgba(67, 217, 255, 0.14), transparent 30%), radial-gradient(circle at 20% 36%, rgba(157, 124, 255, 0.11), transparent 28%), radial-gradient(circle at 50% 88%, rgba(108, 255, 179, 0.08), transparent 34%), var(--bg-base); }
.grid-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; background-image: linear-gradient(var(--border-color) 1px, transparent 1px), linear-gradient(90deg, var(--border-color) 1px, transparent 1px); background-size: 40px 40px; opacity: 0.2; }

/* Layout */
.command-center { display: flex; height: 100vh; width: 100vw; }

/* Panel Izquierdo */
.ai-panel { width: 40%; background: linear-gradient(180deg, rgba(13,17,23,0.92) 0%, rgba(5,7,10,0.96) 100%); border-right: 1px solid var(--border-color); padding: 3rem; display: flex; flex-direction: column; justify-content: center; position: relative; box-shadow: 18px 0 60px rgba(0,0,0,0.32); }
.brand { position: absolute; top: 2rem; left: 3rem; display: flex; align-items: center; gap: 1rem; }
.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: 2px; color: var(--text-main); }
.version { font-size: 0.7rem; color: var(--accent-green); border: 1px solid rgba(108, 255, 179, 0.38); padding: 2px 6px; border-radius: 4px; letter-spacing: 1px; background: rgba(108, 255, 179, 0.07);}
.journey-chip { position: absolute; top: 5rem; left: 3rem; color: var(--text-muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--border-color); border-radius: 6px; padding: 0.45rem 0.7rem; background: rgba(255,255,255,0.035); }

.ai-core-container { display: flex; flex-direction: column; align-items: center; margin-bottom: 3rem; }
.ai-orb { width: 80px; height: 80px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #ffffff, var(--accent-cyan)); box-shadow: 0 0 30px var(--accent-cyan-glow), 0 0 60px rgba(108,255,179,0.12), inset 0 0 20px rgba(255,255,255,0.5); animation: breathe 4s ease-in-out infinite; }
.ai-status { margin-top: 1rem; font-size: 0.75rem; letter-spacing: 2px; color: var(--accent-cyan); text-transform: uppercase; }

@keyframes breathe { 0%, 100% { transform: scale(1); box-shadow: 0 0 30px var(--accent-cyan-glow); } 50% { transform: scale(1.05); box-shadow: 0 0 50px rgba(0, 242, 255, 0.5); } }
.ai-orb.speaking { animation: speakPulse 0.5s infinite alternate; box-shadow: 0 0 40px var(--accent-purple), inset 0 0 20px #fff; background: radial-gradient(circle at 30% 30%, #ffffff, var(--accent-purple)); }
@keyframes speakPulse { from { transform: scale(1); } to { transform: scale(1.15); } }

/* Micrófono y Blueprint */
.mic-status { margin-top: 0.5rem; font-size: 0.75rem; color: #ff0055; letter-spacing: 2px; display: flex; align-items: center; gap: 5px; animation: pulseMic 1.5s infinite; }
.recording-dot { width: 8px; height: 8px; background: #ff0055; border-radius: 50%; }
@keyframes pulseMic { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }

.live-blueprint { margin-top: 2rem; border-top: 1px solid var(--border-color); padding-top: 1.5rem; width: 100%; }
.blueprint-title { font-size: 0.7rem; color: var(--accent-cyan); letter-spacing: 2px; margin-bottom: 1rem; }
.blueprint-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.blueprint-item { font-family: monospace; font-size: 0.85rem; color: var(--text-muted); background: rgba(0, 242, 255, 0.05); padding: 0.5rem; border-left: 2px solid var(--accent-cyan); animation: slideIn 0.3s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }

.dialogue-box { min-height: 150px; }
.typewriter { font-size: 1.8rem; font-weight: 400; line-height: 1.4; display: inline; }
.cursor { font-size: 1.8rem; color: var(--accent-cyan); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.progress-track { position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: rgba(255,255,255,0.05); }
.progress-fill { height: 100%; width: 0%; background: var(--accent-cyan); transition: width 0.5s ease; box-shadow: 0 0 10px var(--accent-cyan); }

/* Panel Derecho */
.interaction-panel { width: 60%; padding: 4rem; display: flex; align-items: center; justify-content: center; position: relative; }
.view-section { display: none; width: 100%; max-width: 700px; animation: fadeUp 0.5s ease forwards; }
.view-section.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.glass-panel { background: linear-gradient(180deg, rgba(20,27,36,0.72), rgba(13,17,23,0.78)); border: 1px solid var(--border-color); padding: 3rem; border-radius: 10px; backdrop-filter: blur(14px); box-shadow: 0 24px 70px rgba(0,0,0,0.34); }
.panel-title { font-size: 1.5rem; margin-bottom: 1rem; color: var(--text-main); }
.panel-kicker { color: var(--accent-green); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.75rem; }
.panel-desc { color: var(--text-muted); line-height: 1.6; margin-bottom: 2rem; }
.demo-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.demo-step { min-height: 92px; border: 1px solid var(--border-color); border-radius: 8px; padding: 0.9rem; background: rgba(67, 217, 255, 0.045); display: flex; flex-direction: column; justify-content: space-between; gap: 0.65rem; }
.demo-step span { color: var(--accent-cyan); font-size: 0.72rem; letter-spacing: 0.1em; font-weight: 700; }
.demo-step strong { color: var(--text-main); font-size: 0.92rem; line-height: 1.25; font-weight: 600; }

.options-layout { display: flex; flex-direction: column; gap: 1rem; }
.cyber-option { background: rgba(13, 17, 23, 0.86); border: 1px solid var(--border-color); padding: 1.5rem; border-radius: 10px; color: var(--text-main); font-family: var(--font-main); font-size: 1.05rem; line-height: 1.5; text-align: left; cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden; }
.cyber-option:hover { border-color: var(--accent-cyan); background: rgba(0, 242, 255, 0.05); transform: translateX(10px); box-shadow: -5px 0 20px rgba(0, 242, 255, 0.1); }
.cyber-option::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 3px; background: var(--accent-cyan); transform: scaleY(0); transition: transform 0.3s ease; }
.cyber-option:hover::before { transform: scaleY(1); }

.google-btn { display: flex; align-items: center; justify-content: center; gap: 12px; background: #fff; color: #000; border: none; padding: 1rem 2rem; border-radius: 8px; font-family: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; transition: 0.2s; }
.google-btn:hover { background: #f0f0f0; }
.google-btn img { width: 24px; }

.input-group { display: flex; flex-direction: column; gap: 1rem; }
.cyber-input { background: rgba(0,0,0,0.5); border: 1px solid var(--border-color); padding: 1.2rem; border-radius: 8px; color: #fff; font-family: inherit; font-size: 1.1rem; outline: none; }
.cyber-input:focus { border-color: var(--accent-cyan); }
.cyber-btn { background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green)); color: #031018; border: none; padding: 1.2rem; border-radius: 8px; font-family: inherit; font-weight: 700; font-size: 1.1rem; cursor: pointer; transition: 0.3s; }
.cyber-btn:hover { box-shadow: 0 0 20px var(--accent-cyan-glow); }

.terminal-text { font-family: monospace; color: var(--text-muted); font-size: 0.85rem; }
.mt-2 { margin-top: 1rem; }

.processing-container { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; }
.spinner { width: 40px; height: 40px; border: 2px solid var(--border-color); border-top-color: var(--accent-cyan); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Ajustes Teléfono Internacional */
.iti { width: 100%; }
.iti__flag-container { padding-left: 10px; }
.iti__selected-flag { background: rgba(0,0,0,0.5) !important; border-radius: 8px 0 0 8px; border: 1px solid var(--border-color); border-right: none; }
.iti__country-list { background: #111; color: #fff; border: 1px solid var(--accent-cyan); border-radius: 8px; }
.iti__country:hover { background: rgba(0, 242, 255, 0.2); }

/* Responsive */
@media (max-width: 900px) {
  .command-center { flex-direction: column; overflow-y: auto; }
  .ai-panel { width: 100%; height: 42vh; padding: 2rem; border-right: none; border-bottom: 1px solid var(--border-color); }
  .interaction-panel { width: 100%; height: 60vh; padding: 2rem; align-items: flex-start; }
  .typewriter { font-size: 1.3rem; }
  .ai-orb { width: 50px; height: 50px; }
  .journey-chip { top: 4.6rem; left: 2rem; font-size: 0.68rem; }
  .demo-steps { grid-template-columns: 1fr; }
  .demo-step { min-height: 72px; }
}
