/* ==========================================================
   BREEZE QUIZ DESIGN SYSTEM - 100% FIEL Y OPTIMIZADO
   ========================================================== */

:root {
  --breeze-background-primary: #0a0d17;
  --breeze-background-surface: #171b2c;
  --breeze-background-secondary: #121624;
  --breeze-background-input: #121624;
  --breeze-options-default-background: #181e32;
  --breeze-options-hovered: #232a44;
  --breeze-options-selected-bg: #1f223f;
  --breeze-options-selected-border: #6366f1;
  --breeze-button-primary-background: #6366f1;
  --breeze-button-primary-background-hover: #4f46e5;
  --breeze-button-primary-text: #ffffff;
  --breeze-button-secondary-background: #252b3d;
  --breeze-button-secondary-text: #fff;
  --breeze-text-primary: #ffffff;
  --breeze-text-secondary: #9da3b4;
  --breeze-text-muted: #6c7285;
  --breeze-text-brand-primary: #818cf8;
  --breeze-text-brand-secondary: #14b8a6;
  --breeze-border-color: #273048;
  --breeze-border-radius: 18px;
  --breeze-button-border-radius: 32px;
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-content-width: 520px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font-primary);
}

body {
  background-color: var(--breeze-background-primary);
  color: var(--breeze-text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* APP SHELL */
#app-container {
  width: 100%;
  max-width: var(--max-content-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16px 20px 32px 20px;
  position: relative;
  z-index: 2;
}

/* HEADER */
.quiz-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  width: 100%;
}

.header-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--breeze-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background-color 0.2s, color 0.2s;
}

.nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-btn:disabled {
  opacity: 0;
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sound-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--breeze-border-color);
  color: var(--breeze-text-secondary);
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.sound-toggle-btn:hover {
  border-color: var(--breeze-text-brand-primary);
  color: var(--breeze-text-brand-primary);
}

.sound-toggle-btn.active {
  color: var(--breeze-text-brand-primary);
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--breeze-text-brand-primary);
}

/* PROGRESS BAR POR ETAPAS (BREEZE STYLE) */
.progress-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.progress-categories {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--breeze-text-muted);
}

.progress-category-label {
  transition: color 0.3s ease;
}

.progress-category-label.active {
  color: var(--breeze-text-brand-primary);
  font-weight: 600;
}

.progress-tracks {
  display: flex;
  gap: 6px;
  width: 100%;
  height: 6px;
}

.track-segment {
  flex: 1;
  background-color: #1e2638;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.track-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4f46e5, #818cf8);
  border-radius: 4px;
  transition: width 0.35s ease;
}

/* MAIN STEP CONTAINER */
.step-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  animation: fadeInStep 0.25s cubic-bezier(0.2, 0, 0, 1);
}

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

/* HEADING ELEMENTS */
.step-heading-image {
  max-width: 110px;
  max-height: 110px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.step-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  color: #fff;
  margin-bottom: 8px;
  white-space: pre-line;
}

.step-subtitle {
  font-size: 15px;
  color: var(--breeze-text-secondary);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 24px;
  max-width: 440px;
}

.step-subtitle .highlight,
.step-title .highlight {
  color: var(--breeze-text-brand-primary);
  font-weight: 600;
}

/* WHY WE ASK MODAL BUTTON */
.why-we-ask-btn {
  background: transparent;
  border: none;
  color: var(--breeze-text-brand-primary);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin-bottom: 20px;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.why-we-ask-btn:hover {
  background: rgba(99, 102, 241, 0.12);
}

/* OPTIONS & ANSWERS GRID */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.option-btn {
  background-color: var(--breeze-options-default-background);
  border: 1.5px solid transparent;
  border-radius: var(--breeze-border-radius);
  color: var(--breeze-text-primary);
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.option-btn:hover {
  background-color: var(--breeze-options-hovered);
  transform: translateY(-1px);
}

.option-btn:active {
  transform: scale(0.985);
}

.option-btn.selected {
  background-color: var(--breeze-options-selected-bg);
  border-color: var(--breeze-options-selected-border);
  color: #fff;
}

.option-btn .checkbox-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--breeze-border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.option-btn.selected .checkbox-circle {
  background-color: var(--breeze-text-brand-primary);
  border-color: var(--breeze-text-brand-primary);
}

.option-btn.selected .checkbox-circle svg {
  display: block;
  stroke: #ffffff;
}

.checkbox-circle svg {
  display: none;
}

/* TILE LAYOUT (FOR GENDER & WEATHER SCALES) */
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  margin-bottom: 24px;
}

.tile-card {
  background-color: var(--breeze-options-default-background);
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.tile-card:hover {
  background-color: var(--breeze-options-hovered);
  transform: translateY(-2px);
}

.tile-card:active {
  transform: scale(0.97);
}

.tile-card.selected {
  background-color: var(--breeze-options-selected-bg);
  border-color: var(--breeze-options-selected-border);
}

.tile-media {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.tile-label {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

/* WEATHER SCALE TILES (4 TILES) */
.weather-tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  width: 100%;
  margin-bottom: 20px;
}

.weather-card {
  background: var(--breeze-options-default-background);
  border: 1.5px solid transparent;
  border-radius: 16px;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.weather-card:hover {
  background: var(--breeze-options-hovered);
}

.weather-card.selected {
  background: var(--breeze-options-selected-bg);
  border-color: var(--breeze-options-selected-border);
}

.weather-card img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.weather-card span {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

/* VIDEO ILLUSION STEP */
.video-container {
  width: 100%;
  max-width: 380px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
}

/* IMAGE ILLUSION STEP */
.image-illusion-container {
  width: 100%;
  max-width: 360px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.image-illusion-container img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* AUDIO WAVE VISUALIZER / QUESTION */
.audio-box {
  background: var(--breeze-background-surface);
  border: 1px solid var(--breeze-border-color);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.audio-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--breeze-button-primary-background);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.audio-play-btn:hover {
  transform: scale(1.06);
  background: var(--breeze-button-primary-background-hover);
}

.soundwave {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 36px;
}

.wave-bar {
  width: 4px;
  height: 12px;
  background: var(--breeze-text-brand-primary);
  border-radius: 3px;
  transition: height 0.2s ease;
}

.soundwave.playing .wave-bar {
  animation: waveAnim 0.8s ease-in-out infinite alternate;
}

.soundwave.playing .wave-bar:nth-child(2) { animation-delay: 0.15s; }
.soundwave.playing .wave-bar:nth-child(3) { animation-delay: 0.3s; }
.soundwave.playing .wave-bar:nth-child(4) { animation-delay: 0.45s; }
.soundwave.playing .wave-bar:nth-child(5) { animation-delay: 0.2s; }
.soundwave.playing .wave-bar:nth-child(6) { animation-delay: 0.35s; }

@keyframes waveAnim {
  0% { height: 8px; }
  100% { height: 32px; }
}

/* PRIMARY CTA BUTTON (BREEZE PILL BUTTON) */
.primary-cta-btn {
  background-color: var(--breeze-button-primary-background);
  color: var(--breeze-button-primary-text);
  border: none;
  border-radius: var(--breeze-button-border-radius);
  padding: 18px 32px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.28);
  margin-top: 24px;
}

.primary-cta-btn:hover {
  background-color: var(--breeze-button-primary-background-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.40);
}

.primary-cta-btn:active {
  transform: scale(0.98);
}

.secondary-skip-btn {
  background: transparent;
  border: none;
  color: var(--breeze-text-muted);
  font-size: 14px;
  cursor: pointer;
  margin-top: 14px;
  padding: 8px 16px;
  text-decoration: underline;
  transition: color 0.2s;
}

.secondary-skip-btn:hover {
  color: var(--breeze-text-secondary);
}

/* BREATHE PAUSE ANIMATION */
.breathe-circle-container {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
}

.breathe-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(99, 102, 241, 0.04) 70%, transparent 100%);
  border: 1.5px solid rgba(99, 102, 241, 0.35);
  animation: breatheCycle 8s ease-in-out infinite;
}

.breathe-inner-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #6366f1;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  box-shadow: 0 0 35px rgba(99, 102, 241, 0.45);
  z-index: 2;
  transition: all 0.5s ease;
}

@keyframes breatheCycle {
  0%, 100% {
    transform: scale(0.85);
    opacity: 0.5;
  }
  40%, 60% {
    transform: scale(1.25);
    opacity: 1;
    border-color: rgba(99, 102, 241, 0.7);
  }
}

/* CALCULATING RESULTS CHECKLIST */
.calc-progress-bar-container {
  width: 100%;
  height: 10px;
  background: #1e2638;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}

.calc-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #14b8a6);
  border-radius: 10px;
  transition: width 0.1s linear;
}

.calc-percent {
  font-size: 40px;
  font-weight: 800;
  color: var(--breeze-text-brand-primary);
  margin-bottom: 24px;
  text-align: center;
}

.calc-checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.calc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--breeze-text-secondary);
  transition: color 0.3s;
}

.calc-item.done {
  color: #fff;
  font-weight: 500;
}

.calc-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--breeze-border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

.calc-item.done .calc-check-icon {
  background: var(--breeze-text-brand-primary);
  border-color: var(--breeze-text-brand-primary);
  color: #0b0f1a;
}

/* INPUT STEP (NAME / EMAIL) */
.input-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.breeze-input {
  background: var(--breeze-background-input);
  border: 1.5px solid var(--breeze-border-color);
  border-radius: 16px;
  color: #fff;
  padding: 18px 20px;
  font-size: 16px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.breeze-input:focus {
  border-color: var(--breeze-text-brand-primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.input-error {
  color: #ff5c5c;
  font-size: 13px;
  padding-left: 6px;
  display: none;
}

/* GRAPH CHILDHOOD (BEFORE VS AFTER) */
.graph-card {
  background: var(--breeze-background-surface);
  border: 1px solid var(--breeze-border-color);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  margin-bottom: 20px;
}

.graph-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  font-size: 13px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--breeze-text-secondary);
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend-color.before { background: #ff7676; }
.legend-color.after { background: #14b8a6; }

.metrics-bars-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.metric-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
}

.metric-double-bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-bar-bg {
  height: 10px;
  background: #252e42;
  border-radius: 6px;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 1s cubic-bezier(0.2, 0, 0, 1);
}

.metric-bar-fill.before { background: #ff7676; }
.metric-bar-fill.after { background: #14b8a6; }

/* BEFORE / AFTER CARDS SCREEN */
.before-after-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  margin-bottom: 20px;
}

.status-card {
  border-radius: 18px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.status-card.before {
  background: rgba(255, 82, 44, 0.08);
  border: 1px solid rgba(255, 82, 44, 0.25);
}

.status-card.after {
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.3);
}

.status-card img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}

.status-card-content h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.status-card.before h4 { color: #ff856c; }
.status-card.after h4 { color: #14b8a6; }

.status-card-content p {
  font-size: 14px;
  color: var(--breeze-text-secondary);
  line-height: 1.4;
}

/* FINAL RESULTS REPORT DASHBOARD */
.report-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(20, 184, 166, 0.16));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  width: 100%;
  margin-bottom: 20px;
}

.report-badge {
  display: inline-block;
  background: #6366f1;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.pattern-tag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-bottom: 24px;
}

.pattern-card {
  background: var(--breeze-background-surface);
  border: 1px solid var(--breeze-border-color);
  border-radius: 16px;
  padding: 16px;
  text-align: left;
}

.pattern-card.high {
  border-left: 4px solid #ff7676;
}

.pattern-card.medium {
  border-left: 4px solid #f6b26b;
}

.pattern-card.low {
  border-left: 4px solid #14b8a6;
}

.pattern-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.pattern-status {
  font-size: 12px;
  color: var(--breeze-text-muted);
}

/* TESTIMONIAL CARD */
.testimonial-card {
  background: var(--breeze-background-surface);
  border: 1px solid var(--breeze-border-color);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-quote {
  font-size: 15px;
  line-height: 1.55;
  color: #e2e5ef;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--breeze-text-brand-primary);
}

.author-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.author-info p {
  font-size: 12px;
  color: var(--breeze-text-secondary);
}

/* MODAL WHY WE ASK */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
  animation: fadeInModal 0.2s ease;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--breeze-background-surface);
  border: 1px solid var(--breeze-border-color);
  border-radius: 24px;
  padding: 28px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--breeze-text-muted);
  cursor: pointer;
  padding: 4px;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.modal-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--breeze-text-secondary);
  margin-bottom: 24px;
}

/* FOOTER */
.quiz-footer {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--breeze-text-muted);
  width: 100%;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  color: var(--breeze-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--breeze-text-secondary);
}

.disclaimer-text {
  font-size: 11px;
  line-height: 1.4;
  color: var(--breeze-text-muted);
  max-width: 440px;
  margin-top: 8px;
}
