/* ============================================================
   La Vie Care · Test Metabólico
   Paleta: crema, verde salvia, dorado suave, blanco roto
   ============================================================ */

:root {
  --cream:      #F7F3EE;
  --cream-dark: #EDE5D8;
  --beige:      #D9CFC2;
  --sage:       #6B8F71;
  --sage-light: #8BAF91;
  --sage-dark:  #4A6B50;
  --gold:       #C8A96E;
  --gold-light: #E2C88F;
  --text-dark:  #2C2C2C;
  --text-mid:   #5A5A5A;
  --text-light: #8A8A8A;
  --white:      #FFFFFF;
  --red-soft:   #C47C6B;
  --yellow-soft:#C8A95A;

  --radius-sm:  10px;
  --radius-md:  18px;
  --radius-lg:  28px;
  --shadow:     0 4px 24px rgba(44, 44, 44, 0.08);
  --shadow-lg:  0 12px 48px rgba(44, 44, 44, 0.14);

  --font-display: 'DM Serif Display', serif;
  --font-body:    'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ── SCREENS ── */
.screen { display: none; min-height: 100dvh; }
.screen.active { display: flex; flex-direction: column; }

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════════════════════════════
   INTRO SCREEN
══════════════════════════════════════ */
#screen-intro {
  position: relative;
  align-items: center;
  justify-content: center;
  padding: 48px 0 60px;
  overflow: hidden;
}

.intro-bg-decoration {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sage-light) 0%, transparent 70%);
  opacity: 0.18;
  pointer-events: none;
}

.intro-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.brand-tag {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--sage);
  background: rgba(107, 143, 113, 0.12);
  border: 1px solid rgba(107, 143, 113, 0.25);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.intro-icon {
  font-size: 48px;
  margin-bottom: 20px;
  animation: pulse-icon 2.8s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.intro-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 8vw, 42px);
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.intro-title em {
  font-style: italic;
  color: var(--sage-dark);
}

.intro-subtitle {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-mid);
  max-width: 340px;
  margin-bottom: 28px;
}

.intro-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}

.pill {
  font-size: 12px;
  font-weight: 500;
  color: var(--sage-dark);
  background: var(--cream-dark);
  border: 1px solid var(--beige);
  padding: 5px 13px;
  border-radius: 100px;
}

.btn-primary {
  width: 100%;
  max-width: 320px;
  padding: 18px 32px;
  background: var(--sage);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease;
  box-shadow: 0 6px 28px rgba(107, 143, 113, 0.35);
  margin-bottom: 16px;
}

.btn-primary:hover {
  background: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(107, 143, 113, 0.42);
}

.btn-primary:active { transform: translateY(0); }

.intro-note {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.3px;
}

/* ══════════════════════════════════════
   QUESTION SCREEN
══════════════════════════════════════ */
#screen-question {
  flex-direction: column;
}

.top-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px 12px;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

.brand-small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--sage);
  white-space: nowrap;
  flex-shrink: 0;
}

.progress-wrap {
  flex: 1;
  height: 5px;
  background: var(--cream-dark);
  border-radius: 100px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--sage-light), var(--sage));
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.question-counter {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
  white-space: nowrap;
  flex-shrink: 0;
}

.question-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 32px;
  padding-bottom: 48px;
}

.question-number {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  animation: fadeInUp 0.4s ease both;
}

.question-text {
  font-family: var(--font-display);
  font-size: clamp(22px, 5.5vw, 28px);
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 36px;
  animation: fadeInUp 0.4s ease 0.08s both;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeInUp 0.4s ease 0.16s both;
}

.option-btn {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--beige);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.option-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--sage);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.option-btn:hover {
  border-color: var(--sage-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(107, 143, 113, 0.18);
}

.option-btn .opt-icon {
  font-size: 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.option-btn .opt-text {
  position: relative;
  z-index: 1;
  flex: 1;
  line-height: 1.4;
}

.option-btn.selected {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(107, 143, 113, 0.35);
}

/* ══════════════════════════════════════
   RESULT SCREEN
══════════════════════════════════════ */
#screen-result {
  align-items: center;
  padding: 40px 0 60px;
}

.result-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
}

/* Result Card */
.result-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--cream-dark);
  width: 100%;
  margin-bottom: 24px;
  animation: fadeInUp 0.5s ease both;
  position: relative;
  overflow: hidden;
}

.result-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-result, linear-gradient(90deg, var(--sage-light), var(--sage)));
}

.result-brand {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 24px;
  opacity: 0.8;
}

.score-wrap {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 6px;
}

.score-number {
  font-family: var(--font-display);
  font-size: 88px;
  line-height: 1;
  font-weight: 400;
  color: var(--score-color, var(--sage));
  transition: all 0.8s ease;
}

.score-max {
  font-size: 24px;
  color: var(--text-light);
  margin-bottom: 14px;
  font-weight: 300;
}

.score-category {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.score-divider {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 20px;
}

.score-message {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-mid);
}

/* Score Bars */
.indicators {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
  margin-bottom: 20px;
  animation: fadeInUp 0.5s ease 0.1s both;
}

.indicators h3 {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 20px;
}

.indicator-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.indicator-row:last-child { margin-bottom: 0; }

.indicator-label {
  font-size: 13px;
  color: var(--text-mid);
  width: 130px;
  flex-shrink: 0;
  line-height: 1.3;
}

.indicator-track {
  flex: 1;
  height: 7px;
  background: var(--cream-dark);
  border-radius: 100px;
  overflow: hidden;
}

.indicator-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--sage-light), var(--sage));
  transform-origin: left;
  animation: fillBar 1s cubic-bezier(0.4,0,0.2,1) 0.6s both;
}

@keyframes fillBar {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Insights */
.insights {
  width: 100%;
  margin-bottom: 24px;
  animation: fadeInUp 0.5s ease 0.2s both;
}

.insights h3 {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 14px;
}

.insight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}

.insight-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.insight-text { font-size: 14px; color: var(--text-mid); line-height: 1.55; }

/* CTA Block */
.cta-block {
  width: 100%;
  background: linear-gradient(135deg, var(--sage-dark) 0%, var(--sage) 100%);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  animation: fadeInUp 0.5s ease 0.3s both;
  position: relative;
  overflow: hidden;
}

.cta-block::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}

.cta-block h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.2;
}

.cta-block p {
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
  margin-bottom: 24px;
}

.btn-cta {
  display: inline-block;
  width: 100%;
  padding: 17px 28px;
  background: var(--white);
  color: var(--sage-dark);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  margin-bottom: 12px;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 28px;
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-share:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.btn-retry {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  background: transparent;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 13px;
  border: 1.5px solid var(--beige);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.18s ease;
  animation: fadeInUp 0.5s ease 0.4s both;
}

.btn-retry:hover {
  border-color: var(--sage-light);
  color: var(--sage-dark);
}

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.screen-enter {
  animation: fadeInUp 0.42s ease both;
}

/* ── MOBILE REFINEMENTS ── */
@media (max-width: 390px) {
  .score-number { font-size: 72px; }
  .intro-title  { font-size: 30px; }
  .container    { padding: 0 18px; }
  .result-card  { padding: 28px 20px; }
}

@media (min-height: 750px) {
  .question-container { padding-top: 48px; }
}

/* Tap highlight off */
* { -webkit-tap-highlight-color: transparent; }
button, a { -webkit-tap-highlight-color: transparent; }
