/* ==========================================================================
   Santuario de meditación zen y ondas cerebrales - Estilos Canónicos
   ========================================================================== */

:root {
  --zen-bg: #07090e;
  --zen-card-bg: rgba(14, 18, 28, 0.85);
  --zen-card-border: rgba(255, 255, 255, 0.08);
  --zen-surface: #0f1420;
  --zen-surface-hover: #161c2c;
  --zen-text-primary: #f1f5f9;
  --zen-text-secondary: #94a3b8;
  --zen-text-muted: #64748b;
  --zen-gold: #d4af37;
  --zen-gold-hover: #e6c35c;
  --zen-gold-glow: rgba(212, 175, 55, 0.25);
  --zen-cyan: #06b6d4;
  --zen-cyan-glow: rgba(6, 182, 212, 0.25);
  --zen-indigo: #6366f1;
  --zen-indigo-glow: rgba(99, 102, 241, 0.25);
  --zen-emerald: #10b981;
  --zen-rose: #f43f5e;
  --zen-radius-sm: 8px;
  --zen-radius-md: 14px;
  --zen-radius-lg: 20px;
  --zen-radius-full: 9999px;
  --zen-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --zen-shadow-glow: 0 0 35px -5px rgba(212, 175, 55, 0.15);
  --zen-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --zen-font-heading: 'Outfit', sans-serif;
  --zen-font-mono: 'JetBrains Mono', monospace;
  --zen-select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

[data-theme="light"] {
  --zen-bg: #f8fafc;
  --zen-card-bg: rgba(255, 255, 255, 0.92);
  --zen-card-border: rgba(0, 0, 0, 0.08);
  --zen-surface: #ffffff;
  --zen-surface-hover: #f1f5f9;
  --zen-text-primary: #0f172a;
  --zen-text-secondary: #475569;
  --zen-text-muted: #64748b;
  --zen-gold: #b8860b;
  --zen-gold-hover: #996f08;
  --zen-gold-glow: rgba(184, 134, 11, 0.18);
  --zen-cyan: #0284c7;
  --zen-cyan-glow: rgba(2, 132, 199, 0.18);
  --zen-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  --zen-shadow-glow: 0 0 25px -5px rgba(184, 134, 11, 0.12);
  --zen-select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b8860b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* Reset básico y contención de layout */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--zen-font-sans);
  background-color: var(--zen-bg);
  color: var(--zen-text-primary);
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--zen-font-heading);
  color: var(--zen-text-primary);
  line-height: 1.25;
  margin-top: 0;
  font-weight: 700;
}

.mono-figure {
  font-family: var(--zen-font-mono);
  font-variant-numeric: tabular-nums;
}

/* Layout Canónico */
.main-wrapper.tool-layout {
  max-width: 1240px;
  width: 100%;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
  flex: 1 0 auto;
}

.tool-with-sidebar {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.tool-main-content {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
}

/* Sidebar de publicidad canónico */
.tool-ad-sidebar {
  width: 300px;
  flex-shrink: 0;
}

.ad-sticky-box {
  position: sticky;
  top: 80px;
}

@media (max-width: 1200px) {
  .tool-ad-sidebar {
    display: none;
  }
}

/* Hero y Encabezado de la Herramienta */
.zen-hero-header {
  margin-bottom: 2rem;
  text-align: center;
}

.zen-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--zen-radius-full);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--zen-gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.zen-title {
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--zen-text-primary) 30%, var(--zen-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.zen-subtitle {
  font-size: 1.05rem;
  color: var(--zen-text-secondary);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Panel Principal del Santuario (Canvas Inmersivo) */
.sanctuary-stage-card {
  position: relative;
  background: var(--zen-surface);
  border: 1px solid var(--zen-card-border);
  border-radius: var(--zen-radius-lg);
  overflow: hidden;
  box-shadow: var(--zen-shadow), var(--zen-shadow-glow);
  margin-bottom: 2rem;
}

.canvas-viewport-container {
  position: relative;
  width: 100%;
  height: 480px;
  background: #040508;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 640px) {
  .canvas-viewport-container {
    height: 380px;
  }
}

#zenCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Superposición de información en el canvas */
.canvas-hud-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  z-index: 10;
  transition: opacity 0.5s ease;
}

.hud-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.hud-badge-status {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--zen-radius-full);
  background: rgba(10, 14, 23, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  font-size: 0.8rem;
  font-weight: 500;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--zen-emerald);
  box-shadow: 0 0 10px var(--zen-emerald);
  animation: pulse-zen 2s infinite ease-in-out;
}

.pulse-dot.paused {
  background-color: var(--zen-gold);
  box-shadow: 0 0 10px var(--zen-gold);
  animation: none;
}

@keyframes pulse-zen {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hud-actions {
  pointer-events: auto;
  display: flex;
  gap: 0.5rem;
}

.hud-btn-icon {
  background: rgba(10, 14, 23, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.hud-btn-icon:hover {
  background: rgba(212, 175, 55, 0.3);
  border-color: var(--zen-gold);
  color: #ffffff;
  transform: translateY(-2px);
}

.hud-center-timer {
  text-align: center;
  pointer-events: auto;
}

.timer-digits {
  font-family: var(--zen-font-mono);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.4);
  letter-spacing: -0.03em;
  user-select: none;
}

.timer-caption {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: -0.25rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hud-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto;
}

.scene-indicator-pill {
  background: rgba(10, 14, 23, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.85rem;
  border-radius: var(--zen-radius-full);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Modo Pantalla Completa Inmersivo (Zen Fullscreen) */
body.zen-fullscreen-mode {
  overflow: hidden;
}

.sanctuary-stage-card.is-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  border-radius: 0;
  margin: 0;
  border: none;
}

.sanctuary-stage-card.is-fullscreen .canvas-viewport-container {
  height: 100vh;
}

.sanctuary-stage-card.is-fullscreen.hide-hud .canvas-hud-overlay {
  opacity: 0;
  pointer-events: none;
}

/* Barra de Controles Rápidos y Play/Pause */
.stage-control-bar {
  padding: 1.25rem 1.5rem;
  background: var(--zen-card-bg);
  border-top: 1px solid var(--zen-card-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.primary-playback-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 auto;
}

.btn-zen-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--zen-gold) 0%, #b8860b 100%);
  color: #0c0e14;
  border: none;
  border-radius: var(--zen-radius-full);
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--zen-font-sans);
  cursor: pointer;
  transition: all 0.25s ease;
  min-height: 48px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-zen-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
  background: linear-gradient(135deg, var(--zen-gold-hover) 0%, var(--zen-gold) 100%);
}

.btn-zen-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--zen-surface);
  color: var(--zen-text-primary);
  border: 1px solid var(--zen-card-border);
  border-radius: var(--zen-radius-full);
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
}

.btn-zen-secondary:hover {
  background: var(--zen-surface-hover);
  border-color: var(--zen-gold);
}

.btn-zen-icon-only {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--zen-surface);
  border: 1px solid var(--zen-card-border);
  color: var(--zen-text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-zen-icon-only:hover {
  color: var(--zen-gold);
  border-color: var(--zen-gold);
  background: var(--zen-surface-hover);
}

.stage-master-volume-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 180px;
}

.stage-master-volume-box svg {
  color: var(--zen-text-secondary);
}

/* Grid de Herramientas del Santuario */
.sanctuary-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .sanctuary-modules-grid {
    grid-template-columns: 1fr;
  }
}

.zen-card {
  background: var(--zen-card-bg);
  border: 1px solid var(--zen-card-border);
  border-radius: var(--zen-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--zen-shadow);
  display: flex;
  flex-direction: column;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--zen-card-border);
}

.card-title-row h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  margin: 0;
}

.card-title-icon {
  color: var(--zen-gold);
}

/* Visuales e Ilusiones Select */
.visual-mode-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.btn-scene-card {
  background: var(--zen-surface);
  border: 1px solid var(--zen-card-border);
  border-radius: var(--zen-radius-md);
  padding: 0.85rem 1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.btn-scene-card:hover {
  background: var(--zen-surface-hover);
  border-color: rgba(212, 175, 55, 0.4);
}

.btn-scene-card.active {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--zen-gold);
}

.scene-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--zen-text-primary);
}

.scene-desc {
  font-size: 0.75rem;
  color: var(--zen-text-muted);
}

/* Temporizador y Opciones de Meditación */
.timer-presets-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 540px) {
  .timer-presets-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.btn-timer-chip {
  background: var(--zen-surface);
  border: 1px solid var(--zen-card-border);
  color: var(--zen-text-secondary);
  border-radius: var(--zen-radius-sm);
  padding: 0.6rem 0.5rem;
  font-size: 0.85rem;
  font-family: var(--zen-font-mono);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  min-height: 40px;
}

.btn-timer-chip:hover {
  background: var(--zen-surface-hover);
  color: var(--zen-text-primary);
}

.btn-timer-chip.active {
  background: var(--zen-gold);
  border-color: var(--zen-gold);
  color: #0c0e14;
  font-weight: 700;
}

.form-group-compact {
  margin-bottom: 1rem;
}

.form-label-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--zen-text-secondary);
  margin-bottom: 0.4rem;
}

/* Desplegables Canónicos */
.zen-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  height: 44px;
  min-height: 44px;
  padding: 0.6rem 2.5rem 0.6rem 0.9rem;
  border-radius: var(--zen-radius-sm);
  font-family: var(--zen-font-sans);
  font-size: 0.9rem;
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--zen-surface);
  background-image: var(--zen-select-arrow);
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  color: var(--zen-text-primary);
  border: 1px solid var(--zen-card-border);
  color-scheme: dark;
  cursor: pointer;
  transition: border-color 0.2s;
}

[data-theme="light"] .zen-select {
  color-scheme: light;
}

.zen-select:focus {
  outline: none;
  border-color: var(--zen-gold);
}

.zen-select option, .zen-select optgroup {
  background-color: #0e121c;
  color: #f8fafc;
  padding: 0.6rem;
}

[data-theme="light"] .zen-select option,
[data-theme="light"] .zen-select optgroup {
  background-color: #ffffff;
  color: #0f172a;
}

/* Mezclador de Paisajes Sonoros (Soundscape Mixer) */
.soundscape-mixer-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.sound-track-row {
  background: var(--zen-surface);
  border: 1px solid var(--zen-card-border);
  border-radius: var(--zen-radius-md);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: border-color 0.2s ease;
}

.sound-track-row:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.sound-track-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 140px;
  flex-shrink: 0;
}

.sound-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--zen-radius-sm);
  background: rgba(212, 175, 55, 0.12);
  color: var(--zen-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sound-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--zen-text-primary);
  line-height: 1.2;
}

.sound-slider-wrapper {
  flex: 1 1 0%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.zen-range-slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.zen-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--zen-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.zen-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.zen-range-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--zen-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.volume-pct-tag {
  font-family: var(--zen-font-mono);
  font-size: 0.75rem;
  color: var(--zen-text-muted);
  width: 38px;
  text-align: right;
  flex-shrink: 0;
}

/* Afinador de Ondas Binaurales y Frecuencias Solfeggio */
.binaural-controls-box {
  background: var(--zen-surface);
  border: 1px solid var(--zen-card-border);
  border-radius: var(--zen-radius-md);
  padding: 1rem;
  margin-top: 1rem;
}

.brainwave-chips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 500px) {
  .brainwave-chips-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.btn-wave-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--zen-card-border);
  border-radius: var(--zen-radius-sm);
  padding: 0.5rem 0.4rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-wave-chip:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-wave-chip.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--zen-cyan);
}

.wave-name {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--zen-text-primary);
}

.wave-hz {
  font-family: var(--zen-font-mono);
  font-size: 0.72rem;
  color: var(--zen-cyan);
}

/* ==========================================================================
   SECCIÓN VIRAL: EL DISOLVEDOR DE PREOCUPACIONES (Thought Dissolver)
   ========================================================================== */
.thought-dissolver-section {
  position: relative;
  background: linear-gradient(180deg, var(--zen-surface) 0%, rgba(12, 16, 26, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--zen-radius-lg);
  padding: 2.2rem;
  box-shadow: var(--zen-shadow), 0 0 40px -10px rgba(212, 175, 55, 0.12);
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.dissolver-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 1.5rem;
}

.dissolver-header h2 {
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffffff 40%, var(--zen-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dissolver-header p {
  color: var(--zen-text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

.thought-input-wrapper {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.thought-textarea {
  width: 100%;
  min-height: 110px;
  background: rgba(8, 10, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--zen-radius-md);
  padding: 1rem 1.25rem;
  font-family: var(--zen-font-sans);
  font-size: 1.05rem;
  color: #ffffff;
  resize: vertical;
  transition: all 0.25s ease;
  line-height: 1.6;
}

.thought-textarea:focus {
  outline: none;
  border-color: var(--zen-gold);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.25);
}

.thought-textarea::placeholder {
  color: #64748b;
  font-style: italic;
}

.thought-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-dissolve-thought {
  background: linear-gradient(135deg, var(--zen-gold) 0%, #b8860b 100%);
  color: #0c0e14;
  border: none;
  border-radius: var(--zen-radius-full);
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--zen-font-sans);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  min-height: 48px;
}

.btn-dissolve-thought:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, var(--zen-gold-hover) 0%, var(--zen-gold) 100%);
}

.btn-dissolve-thought:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.thought-privacy-hint {
  font-size: 0.8rem;
  color: var(--zen-text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Lienzo especial de animación de disolución */
.dissolver-canvas-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
}

/* Mensaje y cita zen tras disolver */
.zen-reflection-card {
  display: none;
  background: rgba(14, 20, 32, 0.95);
  border: 1px solid var(--zen-gold);
  border-radius: var(--zen-radius-md);
  padding: 1.5rem;
  text-align: center;
  max-width: 680px;
  margin: 1.5rem auto 0;
  animation: fadeInZen 0.8s ease-out forwards;
}

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

.zen-quote-text {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--zen-gold);
  margin-bottom: 0.5rem;
}

.zen-quote-author {
  font-size: 0.85rem;
  color: var(--zen-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   MÓDULO: ESCANEO CORPORAL GUIADO (Body Scan)
   ========================================================================== */
.body-scan-card {
  background: var(--zen-card-bg);
  border: 1px solid var(--zen-card-border);
  border-radius: var(--zen-radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.body-scan-steps-track {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  scrollbar-width: thin;
}

.step-chip {
  flex: 0 0 auto;
  background: var(--zen-surface);
  border: 1px solid var(--zen-card-border);
  border-radius: var(--zen-radius-full);
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  color: var(--zen-text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.step-chip.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--zen-indigo);
  color: #ffffff;
  font-weight: 600;
}

.step-chip.completed {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--zen-emerald);
  color: var(--zen-emerald);
}

.body-scan-instruction-box {
  background: var(--zen-surface);
  border-left: 3px solid var(--zen-gold);
  padding: 1.25rem;
  border-radius: 0 var(--zen-radius-md) var(--zen-radius-md) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.body-scan-text h4 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  color: var(--zen-text-primary);
}

.body-scan-text p {
  margin: 0;
  color: var(--zen-text-secondary);
  font-size: 0.92rem;
}

/* ==========================================================================
   ESTADÍSTICAS Y RACHA ZEN (IndexedDB / LocalStorage)
   ========================================================================== */
.zen-stats-dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .zen-stats-dashboard {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-box {
  background: var(--zen-card-bg);
  border: 1px solid var(--zen-card-border);
  border-radius: var(--zen-radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
}

.stat-value {
  font-family: var(--zen-font-mono);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--zen-gold);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--zen-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* Botón de Compartir Tarjeta Zen */
.share-zen-card-box {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   GUÍA NEUROCIENTÍFICA Y FAQ (SEO DE ALTA AUTORIDAD)
   ========================================================================== */
.zen-editorial-section {
  background: var(--zen-card-bg);
  border: 1px solid var(--zen-card-border);
  border-radius: var(--zen-radius-lg);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
}

.zen-editorial-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--zen-text-primary);
}

.zen-editorial-section h3 {
  font-size: 1.35rem;
  margin-top: 1.8rem;
  margin-bottom: 0.65rem;
  color: var(--zen-gold);
}

.zen-editorial-section p {
  color: var(--zen-text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.editorial-callout {
  background: rgba(212, 175, 55, 0.08);
  border-left: 4px solid var(--zen-gold);
  border-radius: 0 var(--zen-radius-md) var(--zen-radius-md) 0;
  padding: 1.25rem;
  margin: 1.5rem 0;
  color: var(--zen-text-primary);
  font-size: 0.95rem;
}

/* Tabla Comparativa de Ondas Cerebrales */
.table-responsive-zen {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--zen-radius-md);
  border: 1px solid var(--zen-card-border);
}

.zen-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.zen-table th {
  background: var(--zen-surface);
  color: var(--zen-gold);
  font-family: var(--zen-font-heading);
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--zen-card-border);
}

.zen-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--zen-card-border);
  color: var(--zen-text-secondary);
}

.zen-table tr:last-child td {
  border-bottom: none;
}

.zen-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Acordeón FAQ */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.faq-item {
  background: var(--zen-surface);
  border: 1px solid var(--zen-card-border);
  border-radius: var(--zen-radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.15rem 1.25rem;
  text-align: left;
  background: transparent;
  border: none;
  font-family: var(--zen-font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--zen-text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--zen-gold);
}

.faq-chevron {
  transition: transform 0.25s ease;
  color: var(--zen-gold);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.25rem;
  color: var(--zen-text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   MODALES CANÓNICOS (ACCESIBLES Y SIN WINDOW.ALERT)
   ========================================================================== */
.zen-modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 6, 12, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.zen-modal-backdrop.is-open {
  display: flex;
}

.zen-modal-box {
  background: var(--zen-card-bg);
  border: 1px solid var(--zen-gold);
  border-radius: var(--zen-radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 2rem;
  box-shadow: var(--zen-shadow), 0 0 35px rgba(212, 175, 55, 0.25);
  position: relative;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.modal-header-row h3 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--zen-text-primary);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--zen-text-muted);
  cursor: pointer;
  padding: 0.3rem;
  border-radius: var(--zen-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: var(--zen-text-primary);
}

.modal-body-content {
  color: var(--zen-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.modal-actions-row {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* Tarjeta Gráfica Generada para Redes Sociales */
#shareCanvasCard {
  max-width: 100%;
  border-radius: var(--zen-radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
  display: block;
}

/* Adaptación táctil y móvil estricta */
@media (max-width: 768px) {
  .stage-control-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .primary-playback-group {
    width: 100%;
  }
  .btn-zen-primary {
    width: 100%;
  }
  .stage-master-volume-box {
    width: 100%;
  }
  .btn-dissolve-thought {
    width: 100%;
  }
  .sound-track-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }
  .sound-track-info {
    width: 100%;
  }
  .zen-editorial-section {
    padding: 1.5rem;
  }
}
