

:root {
  --bg: #050814;
  --bg-2: #0c1130;
  --bg-3: #131a44;
  --text: #f3f7ff;
  --text-muted: #b8c3e6;
  --text-dim: #8d9abf;
  --accent: #3174ff;
  --accent-2: #68a0ff;
  --accent-glow: rgba(49, 116, 255, 0.35);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(49, 116, 255, 0.4);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 0 30px var(--accent-glow);
  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }


.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 70% 30%, rgba(49, 116, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(49, 116, 255, 0.08), transparent 70%),
    linear-gradient(180deg, #050814 0%, #081034 50%, #050814 100%);
}

/* ===== Header ===== */
.site-header {
  position: relative;
  padding: 24px 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.brand-monogram {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text);
  line-height: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--text);
  margin-top: 4px;
}
.brand-tag {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 6px;
}

/* ===== Hero / Landing ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 80px;
  min-height: calc(100vh - 120px);
}
.hero-content { max-width: 520px; }
.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero h1 .accent {
  color: var(--accent);
  font-style: italic;
}
.hero p.lead {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-cta-text {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
  font-weight: 600;
}
.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image-wrap::before {
  content: "";
  position: absolute;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(40px);
  z-index: 0;
}
.hero-image-wrap img {
  position: relative;
  z-index: 1;
  max-height: 800px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
}

/* ===== Botón ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 38px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: uppercase;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #f3f7ff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: rgba(49, 116, 255, 0.08); }

/* ===== Sección "Sobre el Doctor" ===== */
.about {
  background: var(--bg-2);
  padding: 100px 32px;
  border-top: 1px solid var(--border);
}
.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: center;
}
.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}
.about-photo img { aspect-ratio: 1/1; object-fit: cover; }
.about h2 {
  font-family: var(--font-display);
  font-size: 40px;
  margin-bottom: 20px;
  line-height: 1.1;
}
.about p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 16px;
}

/* ===== Beneficios ===== */
.benefits {
  padding: 100px 32px;
  text-align: center;
}
.benefits h2 {
  font-family: var(--font-display);
  font-size: 40px;
  margin-bottom: 16px;
}
.benefits .subtitle {
  color: var(--text-muted);
  margin-bottom: 60px;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.benefit-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: left;
  transition: all 0.25s ease;
}
.benefit-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}
.benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #f3f7ff;
  margin-bottom: 20px;
}
.benefit-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 10px;
}
.benefit-card p { color: var(--text-muted); font-size: 15px; }

/* ===== CTA Final ===== */
.cta-final {
  text-align: center;
  padding: 100px 32px;
  background: linear-gradient(180deg, transparent, rgba(49, 116, 255, 0.08));
}
.cta-final h2 {
  font-family: var(--font-display);
  font-size: 44px;
  margin-bottom: 20px;
}
.cta-final p { color: var(--text-muted); margin-bottom: 32px; font-size: 17px; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 32px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  padding-bottom: 56.25%; /* Ratio 16:9 */
  margin: 2rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sound-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: 1px solid rgba(49, 116, 255, 0.65);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  z-index: 10;
}

.sound-btn:hover {
  background: rgba(49, 116, 255, 0.9);
  color: #000;
  transform: scale(1.05);
}

.sound-btn svg {
  flex-shrink: 0;
}

/* Móvil: botón más compacto */
@media (max-width: 600px) {
  .video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Ratio 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px; /* opcional, el que tengas */
}

  .sound-btn {
    bottom: 10px;
    right: 10px;
    padding: 8px 12px;
    font-size: 12px;
  }
  .sound-label {
    display: none; /* solo ícono en móvil */
  }
}


/* ============================================
   QUIZ PAGE
   ============================================ */
.quiz-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 60px;
}
.quiz-progress-wrap {
  width: 100%;
  max-width: 720px;
  margin-bottom: 40px;
}
.quiz-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.quiz-progress-text strong { color: var(--accent); }
.quiz-progress-bar {
  height: 6px;
  background: var(--bg-3);
  border-radius: 999px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px var(--accent-glow);
}

.quiz-card {
  width: 100%;
  max-width: 720px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  box-shadow: var(--shadow-soft);
  animation: fadeSlide 0.4s ease;
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-question-num {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.quiz-question {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.3;
  margin-bottom: 32px;
}
.quiz-options { display: flex; flex-direction: column; gap: 14px; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--bg-3);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  width: 100%;
}
.quiz-option:hover {
  border-color: var(--border-strong);
  background: rgba(49, 116, 255, 0.08);
  transform: translateX(4px);
}
.quiz-option.selected {
  border-color: var(--accent);
  background: rgba(49, 116, 255, 0.14);
}
.quiz-option-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
}
.quiz-back {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
  padding: 8px 12px;
  font-family: inherit;
}
.quiz-back:hover { color: var(--text); }
.quiz-back:disabled { opacity: 0.3; cursor: not-allowed; }

/* Form fields step */
.form-field { margin-bottom: 22px; }
.form-field label {
  display: block;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.form-error {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #f5a3a8;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-size: 14px;
  display: none;
}
.form-error.visible { display: block; }

/* ============================================
   GRACIAS / CONFIRMACIÓN
   ============================================ */
.timer-banner {
  background: var(--bg-2);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1100px;
  margin: 24px auto;
  box-shadow: var(--shadow-accent);
}
.timer-banner-text { font-size: 14px; color: var(--text-muted); max-width: 60%; }
.timer-banner-text strong { color: var(--accent); letter-spacing: 1px; }
.timer-display {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #000;
  padding: 14px 22px;
  border-radius: 999px;
  border: 0px solid var(--accent);
}
.timer-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.timer-clock {
  font-family: "Courier New", monospace;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
}

.gracias-hero {
  text-align: center;
  padding: 60px 32px 40px;
}
.gracias-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 14px;
}
.gracias-hero p { color: var(--text-muted); font-size: 18px; }
.gracias-result {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 22px;
  background: rgba(49, 116, 255, 0.14);
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1px;
}

.video-section {
  max-width: 720px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}
.video-section h2 {
  font-family: var(--font-display);
  font-size: 32px;
  margin-bottom: 24px;
}
.video-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #10152d, #1d2a56);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
}
.video-placeholder::after {
  content: "▶";
  position: absolute;
  font-size: 60px;
  color: var(--accent);
  opacity: 0.7;
}

.next-step {
  text-align: center;
  padding: 40px 32px 20px;
}
.next-step h3 {
  font-family: var(--font-display);
  font-size: 26px;
  margin-bottom: 22px;
}
.next-step h3 strong { color: var(--accent); }

.gracias-info-card {
  max-width: 720px;
  margin: 40px auto;
  background: var(--bg-2);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-accent);
}
.gracias-info-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--accent);
}
.gracias-info-card p { color: var(--text-muted); margin-bottom: 12px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 20px; min-height: auto; }
  .hero-content { margin-top: -170px; }
  .hero-image-wrap { order: -1; }
  .hero-image-wrap img { max-height: 580px; }
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 320px; margin: 0 auto; }
  .benefits-grid { grid-template-columns: 1fr; }
  .quiz-card { padding: 32px 22px; }
  .timer-banner { flex-direction: column; text-align: center; }
  .timer-banner-text { max-width: 100%; }
}

@media (max-width: 480px) {
  .site-header { padding: 18px; }
  .brand-monogram { font-size: 30px; }
  .hero { padding: 20px 18px 60px; }
  .btn { padding: 14px 28px; font-size: 13px; }
  .quiz-shell { padding: 24px 14px 40px; }
  .quiz-card { padding: 28px 18px; }
  .form-row { grid-template-columns: 100px 1fr; }
}
