/* ==========================================================================
   SISTEMA DE DISEÑO - RULETA PSICO & SOCIO UNCAUS
   Estilo: Ultra-Modern Dark Glassmorphism, Gradientes Vibrantes & Micro-animaciones
   ========================================================================== */

:root {
  /* Paleta Principal */
  --bg-main: #0a0e17;
  --bg-surface: rgba(18, 26, 43, 0.75);
  --bg-surface-elevated: rgba(28, 39, 64, 0.85);
  --bg-card-glass: rgba(15, 23, 42, 0.82);
  
  /* Acentos de Marca y Disciplinas */
  --psico-primary: #ec4899;      /* Rosa vibrante / Subjetividad */
  --psico-gradient: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  --psico-glow: rgba(236, 72, 153, 0.35);

  --socio-primary: #06b6d4;      /* Cyan eléctrico / Estructura social */
  --socio-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --socio-glow: rgba(6, 182, 212, 0.35);

  --uncaus-green: #10b981;
  --uncaus-accent: #f59e0b;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glass-glow: rgba(255, 255, 255, 0.25);
  
  /* Sombras y Luces */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 35px rgba(6, 182, 212, 0.25);

  /* Tipografías */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-full: 9999px;

  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Fondos Luminosos de Ambiente */
.background-glows {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  animation: floatGlow 14s ease-in-out infinite alternate;
}

.glow-1 {
  top: -10%;
  left: 10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #3b82f6, transparent);
}

.glow-2 {
  bottom: 5%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #ec4899, transparent);
  animation-delay: -5s;
}

.glow-3 {
  top: 45%;
  left: 30%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #10b981, transparent);
  animation-delay: -10s;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.15); }
  100% { transform: translate(-30px, 30px) scale(0.9); }
}

/* Contenedor Principal */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 1.2rem 1.2rem 2.5rem;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  background: var(--bg-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.uncaus-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.expo-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--uncaus-green);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.main-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.gradient-text-psico {
  background: var(--psico-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-socio {
  background: var(--socio-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-controls {
  display: flex;
  gap: 0.5rem;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Intro */
.intro-section {
  text-align: center;
  margin: 1rem 0 0.8rem;
}

.subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

.subtitle strong {
  color: var(--text-primary);
}

/* Sección de la Ruleta */
.wheel-main-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.5rem 0 1.5rem;
}

.wheel-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.2rem;
}

.canvas-wrapper {
  position: relative;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(6, 182, 212, 0.2), 0 0 0 8px rgba(255, 255, 255, 0.05);
}

#wheelCanvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  cursor: pointer;
}

/* Puntero Superior */
.wheel-pointer-container {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.wheel-pointer {
  width: 34px;
  height: 42px;
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
  transform-origin: 50% 10%;
  transition: transform 0.08s ease-out;
}

.wheel-pointer.tick {
  transform: scale(1.15) rotate(12deg);
}

/* Centro de la Ruleta */
.wheel-center-cap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: radial-gradient(circle, #1e293b 0%, #0f172a 100%);
  border: 3px solid #38bdf8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
  pointer-events: none;
  z-index: 5;
}

.center-cap-icon {
  font-size: 1.5rem;
}

/* Botón de Giro */
.wheel-controls {
  margin-top: 1.2rem;
  width: 100%;
  max-width: 320px;
}

.btn-spin {
  position: relative;
  width: 100%;
  padding: 1rem 1.8rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #ec4899 100%);
  background-size: 200% auto;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transition: var(--transition-smooth);
  overflow: hidden;
}

.btn-spin:hover:not(:disabled) {
  background-position: right center;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.btn-spin:active:not(:disabled) {
  transform: translateY(1px) scale(0.98);
}

.btn-spin:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.fa-spin-hover {
  margin-right: 0.4rem;
}

/* Acciones Rápidas */
.quick-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.4rem;
  width: 100%;
  max-width: 520px;
  justify-content: center;
  flex-wrap: wrap;
}

.quick-btn {
  flex: 1 1 200px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
}

.quick-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-glass-glow);
  transform: translateY(-2px);
}

.quiz-btn:hover {
  box-shadow: 0 4px 20px var(--psico-glow);
}

.info-btn:hover {
  box-shadow: 0 4px 20px var(--socio-glow);
}

/* Footer */
.app-footer {
  text-align: center;
  padding: 1.2rem 0 0;
  font-size: 0.76rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   MODALES (Glassmorphism Overlay & Cards)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 7, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  background: var(--bg-card-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), 0 0 60px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.8rem;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  transform: rotate(90deg);
}

/* ==========================================================================
   MODAL DE TÓPICO / DOBLE LENTE
   ========================================================================== */

.topic-header {
  margin-bottom: 1rem;
  padding-right: 2.5rem;
}

.topic-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 0.4rem;
}

.topic-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
}

/* Caja de Disparador Cotidiano */
.topic-trigger-box {
  display: flex;
  gap: 0.9rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.3rem;
  align-items: flex-start;
}

.trigger-icon {
  font-size: 1.2rem;
  color: #f59e0b;
  margin-top: 2px;
}

.trigger-text {
  font-size: 0.92rem;
  color: #fef3c7;
  line-height: 1.45;
}

/* Conmutador de Lentes */
.lens-switcher {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.3rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  margin-bottom: 1.2rem;
  gap: 0.3rem;
}

.lens-tab {
  flex: 1;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.lens-tab.active[data-lens="socio"] {
  background: var(--socio-gradient);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--socio-glow);
}

.lens-tab.active[data-lens="psico"] {
  background: var(--psico-gradient);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--psico-glow);
}

/* Panel de Contenido de los Lentes */
.lens-content-area {
  margin-bottom: 1.3rem;
}

.lens-panel {
  display: none;
  animation: fadeIn 0.3s ease;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.lens-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.lens-badge {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.socio-badge { color: #38bdf8; }
.psico-badge { color: #f472b6; }

.lens-lead {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.lens-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bullet-item {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  line-height: 1.4;
}

.bullet-item i {
  color: #10b981;
  margin-top: 4px;
  font-size: 0.78rem;
}

/* Caja de Debate */
.debate-box {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  margin-bottom: 1.3rem;
}

.debate-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #a78bfa;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.debate-question {
  font-size: 0.98rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.9rem;
  line-height: 1.35;
}

.reaction-buttons {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.reaction-btn {
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.reaction-btn:hover, .reaction-btn.selected {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: #38bdf8;
  transform: translateY(-1px);
}

/* Acciones Sociales en Modal */
.modal-social-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.action-btn {
  flex: 1 1 150px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.story-btn {
  background: linear-gradient(135deg, #ec4899 0%, #f43f5e 50%, #f97316 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.story-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.45);
}

.whatsapp-btn {
  background: #25d366;
  color: #072e14;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  background: #22bf5b;
}

.share-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.share-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* ==========================================================================
   MODAL DE HISTORIA DE INSTAGRAM (9:16)
   ========================================================================== */

.story-card {
  max-width: 440px;
  text-align: center;
}

.story-preview-header {
  margin-bottom: 1.2rem;
}

.story-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #ec4899;
  background: rgba(236, 72, 153, 0.12);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 0.35rem;
}

.story-preview-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
}

.story-preview-header p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.story-canvas-container {
  width: 100%;
  max-width: 270px;
  height: 480px;
  margin: 0 auto 1.3rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(255, 255, 255, 0.15);
  background: #000;
}

#storyCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.story-download-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.btn-primary-action {
  width: 100%;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: none;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.btn-secondary-action {
  width: 100%;
  padding: 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary-action:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   MODAL DE MINI-TEST VOCACIONAL
   ========================================================================== */

.quiz-card {
  max-width: 520px;
}

.quiz-step-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.quiz-question-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1.2rem;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-option-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.quiz-option-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #38bdf8;
  transform: translateX(4px);
}

.quiz-option-icon {
  font-size: 1.2rem;
  margin-top: 2px;
}

.quiz-option-text {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Resultados del Quiz */
.quiz-result-header {
  text-align: center;
  margin-bottom: 1.3rem;
}

.result-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #f59e0b;
  margin-bottom: 0.4rem;
  display: inline-block;
}

#quizResultTitle {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #06b6d4 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.affinity-meter {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  margin-bottom: 1.2rem;
}

.meter-bar {
  height: 14px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  display: flex;
  overflow: hidden;
  margin-bottom: 0.8rem;
}

.meter-fill-socio {
  background: var(--socio-gradient);
  transition: width 1s ease-out;
}

.meter-fill-psico {
  background: var(--psico-gradient);
  transition: width 1s ease-out;
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 600;
}

.socio-label { color: #38bdf8; }
.psico-label { color: #f472b6; }

.quiz-result-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.3rem;
  text-align: center;
}

.quiz-result-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.restart-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.restart-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   MODAL DE INFORMACIÓN DE CARRERAS UNCAUS
   ========================================================================== */

.info-card {
  max-width: 680px;
}

.carreras-header {
  text-align: center;
  margin-bottom: 1.4rem;
}

.carreras-uncaus-logo {
  height: 52px;
  margin-bottom: 0.6rem;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.carreras-header h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
}

.carreras-header p {
  font-size: 0.85rem;
  color: var(--uncaus-green);
  font-weight: 600;
}

.carreras-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.carrera-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
}

.carrera-psico {
  border-top: 3px solid var(--psico-primary);
}

.carrera-socio {
  border-top: 3px solid var(--socio-primary);
}

.carrera-icon {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.carrera-psico .carrera-icon { color: var(--psico-primary); }
.carrera-socio .carrera-icon { color: var(--socio-primary); }

.carrera-box h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.carrera-duration {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  display: block;
}

.carrera-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 0.9rem;
}

.carrera-fields {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-primary);
  margin-top: auto;
}

.carrera-fields li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  line-height: 1.3;
}

.carrera-fields li i {
  color: #10b981;
  font-size: 0.7rem;
  margin-top: 3px;
}

.uncaus-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Canvas Confetti */
#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2000;
}

/* ==========================================================================
   RESPONSIVIDAD (Celulares & Pantallas Grandes)
   ========================================================================== */

@media (max-width: 640px) {
  .app-container {
    padding: 0.8rem 0.8rem 1.8rem;
  }

  .canvas-wrapper {
    width: 310px;
    height: 310px;
  }

  .main-title {
    font-size: 1.15rem;
  }

  .uncaus-logo {
    height: 38px;
  }

  .carreras-grid {
    grid-template-columns: 1fr;
  }

  .modal-card {
    padding: 1.3rem;
  }

  .topic-title {
    font-size: 1.25rem;
  }

  .lens-tab {
    font-size: 0.78rem;
    padding: 0.55rem 0.6rem;
  }
}
