/* ============================================================
   YOUR VOICE STUDIO — Sistema de diseño unificado
   styles.css — incluir en todas las páginas
   ============================================================ */

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Paleta principal */
  --navy:        #0d1117;
  --navy2:       #161b22;
  --navy3:       #1c2333;
  --navy4:       #21262d;
  --teal:        #00d4b4;
  --teal2:       #00b89c;
  --teal-dim:    rgba(0, 212, 180, 0.12);
  --teal-glow:   rgba(0, 212, 180, 0.20);
  --amber:       #f5c842;
  --amber2:      #e0b52e;
  --amber-dim:   rgba(245, 200, 66, 0.12);
  --coral:       #ff6b6b;
  --coral2:      #e05555;
  --coral-dim:   rgba(255, 107, 107, 0.12);
  --green:       #3dd68c;
  --green-dim:   rgba(61, 214, 140, 0.12);

  /* Neutros */
  --white:       #ffffff;
  --gray1:       #e6edf3;
  --gray2:       #8b949e;
  --gray3:       #30363d;
  --border:      rgba(255, 255, 255, 0.08);
  --border-md:   rgba(255, 255, 255, 0.14);

  /* Tipografía */
  --font-display: 'Nunito', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Espaciado */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-teal: 0 0 32px rgba(0, 212, 180, 0.12);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);

  /* Transiciones */
  --transition: 0.2s ease;
}

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

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--gray1);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-body); }
ul, ol { list-style: none; }

/* ── TIPOGRAFÍA ───────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
}
h1 { font-size: clamp(28px, 4vw, 42px); }
h2 { font-size: clamp(22px, 3vw, 32px); }
h3 { font-size: clamp(16px, 2vw, 20px); }

.text-teal   { color: var(--teal); }
.text-amber  { color: var(--amber); }
.text-coral  { color: var(--coral); }
.text-muted  { color: var(--gray2); }
.text-white  { color: var(--white); }
.font-display{ font-family: var(--font-display); font-weight: 800; }

/* ── NAVBAR ───────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 64px;
  background: rgba(13, 17, 23, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 32px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.navbar-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.navbar-logo-text .logo-line1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--white);
}

.navbar-logo-text .logo-line2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--teal);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.navbar-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray2);
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
  white-space: nowrap;
  position: relative;
}

.navbar-links a:hover { color: var(--white); }

.navbar-links a.active {
  color: var(--white);
  border-bottom: 2px solid var(--teal);
  border-radius: 0;
  padding-bottom: 4px;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Avatar / nombre del usuario logueado */
.navbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--gray2);
}

.navbar-user-dot {
  width: 28px;
  height: 28px;
  background: var(--teal-dim);
  border: 1px solid var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  color: var(--teal);
}

.navbar-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--gray1);
  padding: 4px;
}

/* Menú móvil */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--navy2);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  flex-direction: column;
  gap: 3px;
  z-index: 199;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--gray2);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  transition: background var(--transition), color var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--teal-dim);
  color: var(--teal);
}

/* ── BARRA DE PROGRESO DE SECCIÓN ────────────────────────── */
.section-progress-strip {
  position: fixed;
  top: 64px; left: 0; right: 0;
  z-index: 199;
  background: rgba(13, 17, 23, 0.96);
  border-bottom: 1px solid var(--border);
  padding: 8px 40px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-progress-strip .sps-label {
  font-size: 12px;
  color: var(--gray2);
  white-space: nowrap;
}

.section-progress-strip .sps-bar {
  flex: 1;
  height: 6px;
  background: var(--navy4);
  border-radius: 3px;
  overflow: hidden;
}

.section-progress-strip .sps-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 3px;
  transition: width 0.6s ease;
}

.section-progress-strip .sps-pct {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  white-space: nowrap;
}

/* ── LAYOUT PRINCIPAL ─────────────────────────────────────── */
.page-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 138px 40px 80px;
}

.page-main.with-strip { padding-top: 138px; }
.page-main.no-strip   { padding-top: 90px; }

/* ── BREADCRUMB ───────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray2);
  margin-bottom: 28px;
}

.breadcrumb a {
  color: var(--gray2);
  transition: color var(--transition);
}

.breadcrumb a:hover { color: var(--teal); }
.breadcrumb .bc-current { color: var(--teal); font-weight: 600; }

/* ── SECTION HEADER ───────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.section-header-icon {
  width: 56px;
  height: 56px;
  background: var(--teal-dim);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-header h1 { margin-bottom: 4px; }
.section-header p  { font-size: 14px; color: var(--gray2); }

/* ── CARDS ────────────────────────────────────────────────── */
.card {
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
}

.card-teal   { border-top: 3px solid var(--teal); }
.card-amber  { border-top: 3px solid var(--amber); }
.card-coral  { border-top: 3px solid var(--coral); }
.card-green  { border-top: 3px solid var(--green); }

/* ── BOTONES ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--teal);
  color: var(--navy);
}
.btn-primary:hover { background: var(--teal2); transform: translateY(-1px); }

.btn-amber {
  background: var(--amber);
  color: var(--navy);
}
.btn-amber:hover { background: var(--amber2); }

.btn-coral {
  background: var(--coral);
  color: var(--white);
}
.btn-coral:hover { background: var(--coral2); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--teal);
  color: var(--teal);
}
.btn-outline:hover { background: var(--teal-dim); }

.btn-outline-amber {
  background: transparent;
  border: 1px solid var(--amber);
  color: var(--amber);
}
.btn-outline-amber:hover { background: var(--amber-dim); }

.btn-ghost {
  background: transparent;
  color: var(--gray2);
  border: 1px solid var(--gray3);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--radius-sm);
}

.btn-lg { font-size: 16px; padding: 14px 28px; }
.btn-sm { font-size: 14px; padding: 7px 14px; }

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

/* ── BADGES ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid;
}

.badge-easy   { background: var(--green-dim);  color: var(--green);  border-color: rgba(61,214,140,0.3); }
.badge-medium { background: var(--amber-dim);  color: var(--amber);  border-color: rgba(245,200,66,0.3); }
.badge-hard   { background: var(--coral-dim);  color: var(--coral);  border-color: rgba(255,107,107,0.3); }

/* ── BOTÓN DE PLAY (audio) ────────────────────────────────── */
.play-btn {
  width: 44px;
  height: 44px;
  background: var(--navy3);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.play-btn:hover {
  background: var(--teal-dim);
  border-color: var(--teal);
}

.play-btn.playing {
  background: var(--teal);
  color: var(--navy);
  border-color: var(--teal);
}

.play-btn-lg {
  width: 72px;
  height: 72px;
  background: var(--teal);
  border: none;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(0,212,180,0.12);
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.play-btn-lg:hover {
  background: var(--teal2);
  transform: scale(1.05);
  box-shadow: 0 0 0 12px rgba(0,212,180,0.15);
}

.play-btn-lg:active { transform: scale(0.96); }

.play-btn-lg.loading {
  animation: pulse-ring 1s infinite;
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 8px rgba(0,212,180,0.12); }
  50%       { box-shadow: 0 0 0 16px rgba(0,212,180,0.06); }
}

/* ── WORD CHIPS (palabras con botón de audio) ─────────────── */
.word-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--navy3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray1);
  cursor: pointer;
  transition: all var(--transition);
}

.word-chip:hover { border-color: var(--teal); color: var(--teal); }
.word-chip .chip-icon { color: var(--teal); flex-shrink: 0; }

/* ── DRAG AND DROP ────────────────────────────────────────── */
.dropzone {
  min-height: 120px;
  background: var(--navy3);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
  transition: border-color var(--transition), background var(--transition);
}

.dropzone.drag-over {
  border-color: var(--teal);
  background: var(--teal-dim);
}

.dropzone-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.draggable-word {
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--gray1);
  cursor: grab;
  transition: all var(--transition);
  user-select: none;
}

.draggable-word:active { cursor: grabbing; }

.draggable-word:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.draggable-word.dragging {
  opacity: 0.5;
  transform: scale(0.95);
}

.draggable-word.correct {
  border-color: var(--green);
  background: var(--green-dim);
  color: var(--green);
}

.draggable-word.incorrect {
  border-color: var(--coral);
  background: var(--coral-dim);
  color: var(--coral);
}

/* ── MAPA DE ETAPAS ───────────────────────────────────────── */
.stage-map {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.stage-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.stage-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  position: relative;
  flex-shrink: 0;
  cursor: default;
  transition: all var(--transition);
}

.stage-circle.done {
  background: var(--teal);
  color: var(--navy);
}

.stage-circle.active {
  background: var(--teal);
  color: var(--navy);
  box-shadow: 0 0 0 4px rgba(0, 212, 180, 0.2);
}

.stage-circle.locked {
  background: var(--navy3);
  color: var(--gray3);
  border: 1px solid var(--gray3);
}

.stage-lock-icon {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 16px;
  height: 16px;
  background: var(--navy2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray3);
}

.stage-label {
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.stage-label.done-label   { color: var(--gray2); }
.stage-label.active-label { color: var(--teal); }
.stage-label.locked-label { color: var(--gray3); }

.stage-connector {
  flex: 1;
  height: 2px;
  background: var(--gray3);
  margin: 0 4px;
  margin-bottom: 20px;
  max-width: 60px;
}

.stage-connector.done-conn { background: var(--teal); }

/* ── GRABADOR DE VOZ ──────────────────────────────────────── */
.recorder-widget {
  background: var(--navy3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.recorder-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--coral);
  background: transparent;
  color: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.recorder-btn:hover,
.recorder-btn.recording {
  background: var(--coral);
  color: var(--white);
}

.recorder-btn.recording {
  animation: pulse-record 1s infinite;
}

@keyframes pulse-record {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4); }
  50%       { box-shadow: 0 0 0 10px rgba(255, 107, 107, 0); }
}

.recorder-info {
  flex: 1;
  min-width: 0;
}

.recorder-status {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray2);
}

.recorder-status.recording-active { color: var(--coral); }
.recorder-timer { font-size: 12px; color: var(--gray2); margin-top: 2px; }

.recorder-playback {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── TRACKER DE PROGRESO SEMANAL ─────────────────────────── */
.progress-tracker { }

.tracker-table {
  width: 100%;
  border-collapse: collapse;
}

.tracker-table th {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gray2);
  text-align: center;
  padding: 0 6px 10px;
  letter-spacing: 0.03em;
}

.tracker-table th:first-child {
  text-align: left;
  width: 60px;
}

.tracker-table td {
  text-align: center;
  padding: 7px 6px;
}

.tracker-table td:first-child {
  text-align: left;
  font-size: 12px;
  color: var(--gray2);
  font-weight: 500;
  padding-left: 0;
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: transform var(--transition);
}

.status-dot:hover { transform: scale(1.3); }
.status-dot.dot-green  { background: var(--green); }
.status-dot.dot-amber  { background: var(--amber); }
.status-dot.dot-red    { background: var(--coral); }
.status-dot.dot-empty  { background: var(--navy4); border: 1px solid var(--gray3); }

.tracker-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--gray2);
}

/* ── BINGO GRID ───────────────────────────────────────────── */
.bingo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
}

.bingo-cell {
  background: var(--navy3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 12px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--gray1);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  user-select: none;
}

.bingo-cell:hover:not(.marked) { border-color: var(--teal-glow); }

.bingo-cell.marked {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--navy);
}

.bingo-cell.marked::after {
  content: '✓';
  position: absolute;
  top: 5px;
  right: 8px;
  font-size: 11px;
  font-weight: 900;
}

.bingo-cell.current {
  border: 2px dashed var(--amber);
  background: rgba(245, 200, 66, 0.1);
}

/* ── MEMORY CARDS ─────────────────────────────────────────── */
.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.memory-card {
  aspect-ratio: 1;
  position: relative;
  cursor: pointer;
  border-radius: var(--radius-md);
}

.memory-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
  border-radius: var(--radius-md);
}

.memory-card.flipped .memory-card-inner { transform: rotateY(180deg); }

.memory-card-front,
.memory-card-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.memory-card-front {
  background: var(--navy3);
  border: 1px solid var(--border);
}

.memory-card-back {
  background: var(--navy2);
  border: 1px solid var(--teal);
  transform: rotateY(180deg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
}

.memory-card.matched .memory-card-front,
.memory-card.matched .memory-card-back {
  border-color: var(--green);
  background: var(--green-dim);
}

/* ── FEEDBACK MESSAGES ────────────────────────────────────── */
.feedback {
  text-align: center;
  min-height: 28px;
  font-size: 15px;
  color: var(--gray3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: color var(--transition);
}

.feedback.correct { color: var(--green); }
.feedback.wrong   { color: var(--coral); }
.feedback.info    { color: var(--teal); }

/* ── CHECKLIST (Reading for Clarity) ─────────────────────── */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}

.checklist-item:hover { background: var(--navy3); }

.checklist-box {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray3);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.checklist-item.checked .checklist-box {
  background: var(--teal);
  border-color: var(--teal);
}

.checklist-label {
  font-size: 15px;
  color: var(--gray2);
  transition: color var(--transition);
}

.checklist-item.checked .checklist-label { color: var(--gray1); }

/* ── ANSWER BUTTONS ───────────────────────────────────────── */
.answer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.answer-btn {
  padding: 18px 24px;
  border-radius: var(--radius-lg);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  border: 2px solid;
}

.answer-btn.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--navy);
}

.answer-btn.secondary {
  background: var(--navy3);
  border-color: var(--teal);
  color: var(--gray1);
}

.answer-btn.correct {
  background: var(--green-dim);
  border-color: var(--green);
  color: var(--green);
}

.answer-btn.wrong {
  background: var(--coral-dim);
  border-color: var(--coral);
  color: var(--coral);
}

.answer-btn:hover:not(:disabled) { transform: translateY(-1px); }
.answer-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── SCORE BADGE ──────────────────────────────────────────── */
.score-badge {
  background: var(--amber-dim);
  border: 1px solid rgba(245, 200, 66, 0.3);
  border-radius: var(--radius-md);
  padding: 5px 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--amber);
}

/* ── TOAST / NOTIFICACIÓN ─────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray1);
  z-index: 500;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success { border-color: var(--teal);  color: var(--teal); }
.toast.error   { border-color: var(--coral); color: var(--coral); }
.toast.warning { border-color: var(--amber); color: var(--amber); }

/* ── MODAL ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--white);
}

.modal-close {
  background: none;
  border: none;
  color: var(--gray2);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition);
}

.modal-close:hover { color: var(--white); }

/* ── FORMULARIOS ──────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray2);
}

.form-input {
  background: var(--navy3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gray1);
  transition: border-color var(--transition);
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: var(--teal);
}

.form-input::placeholder { color: var(--gray3); }

.form-error {
  font-size: 14px;
  color: var(--coral);
  margin-top: 4px;
}

/* ── DIVIDER ──────────────────────────────────────────────── */
.divider { border-top: 1px solid var(--border); }

/* ── UTILIDADES ───────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }
.gap-8        { gap: 8px; }
.gap-12       { gap: 12px; }
.gap-16       { gap: 16px; }
.gap-20       { gap: 20px; }
.gap-24       { gap: 24px; }
.mt-8         { margin-top: 8px; }
.mt-16        { margin-top: 16px; }
.mt-24        { margin-top: 24px; }
.mb-16        { margin-bottom: 16px; }
.mb-24        { margin-bottom: 24px; }
.mb-32        { margin-bottom: 32px; }
.w-full       { width: 100%; }
.text-center  { text-align: center; }
.text-sm      { font-size: 14px; }
.text-xs      { font-size: 11.5px; }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--navy2);
  border-top: 1px solid var(--border);
  padding: 36px 40px;
  margin-top: 60px;
}

.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.footer-tagline { flex: 1; }
.footer-tagline p:first-child {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14.5px;
  color: var(--white);
}
.footer-tagline p:last-child { font-size: 14px; color: var(--teal); margin-top: 2px; }

.footer-uy {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.footer-uy p { font-size: 14px; color: var(--gray2); max-width: 230px; line-height: 1.5; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .navbar { padding: 0 24px; gap: 20px; }
  .page-main { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 20px; gap: 12px; }
  .navbar-links,
  .navbar-actions .btn { display: none; }
  .navbar-hamburger { display: flex; }
  .section-progress-strip { padding: 8px 20px; }
  .page-main { padding: 138px 20px 60px; }
  .page-main.no-strip { padding-top: 84px; }
  .stage-map { overflow-x: auto; padding: 16px 12px; }
  .stage-label { font-size: 10px; }
  .answer-grid { grid-template-columns: 1fr; }
  .memory-grid { grid-template-columns: repeat(3, 1fr); }
  .bingo-grid { max-width: 100%; }
  .bingo-cell { padding: 14px 8px; min-height: 60px; font-size: 14px; }
  .site-footer { padding: 28px 20px; }
  .site-footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
}

@media (max-width: 480px) {
  .memory-grid { grid-template-columns: repeat(3, 1fr); }
  .contrast-row { gap: 6px; }
}

/* ── REDUCED MOTION ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
