/* ============================================
   CENTRO TURING - LANDING PAGES
   Pruebas Nacionales 2026
   Brand Color Kit + Global Styles
   ============================================ */

/* Google Fonts - cargadas via <link> en el HTML, NO usar @import aqui */

/* ---- CSS Variables ---- */
:root {
  /* Brand Colors */
  --navy: #0F2041;
  --navy-light: #1a3060;
  --gold: #C5A059;
  --gold-hover: #D4AF37;
  --gold-light: #e8d5a8;
  --white: #FFFFFF;
  --gray-light: #F8F9FA;
  --gray: #6c757d;
  --gray-dark: #495057;
  --red: #CE1126;
  --green-success: #28a745;
  --blue-flag: #003DA5;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', 'Segoe UI', Arial, sans-serif;

  /* Spacing */
  --section-padding: 80px 0;
  --container-width: 1200px;
  --container-padding: 0 20px;

  /* Transitions */
  --transition: all 0.3s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

/* ---- Franja Patriotica (Bandera RD) ---- */
.flag-stripe {
  width: 100%;
  height: 4px;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

.flag-stripe span {
  flex: 1;
  height: 100%;
}

.flag-stripe .flag-blue {
  background: var(--blue-flag);
}

.flag-stripe .flag-white {
  background: var(--white);
}

.flag-stripe .flag-red {
  background: var(--red);
}

/* ---- Container ---- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

p {
  font-family: var(--font-body);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.text-gold { color: var(--gold); }
.text-red { color: var(--red); }
.text-navy { color: var(--navy); }
.text-white { color: var(--white); }
.text-gray { color: var(--gray-dark); }
.text-center { text-align: center; }

/* ---- Header / Navbar ---- */
.header {
  background: var(--navy);
  padding: 15px 0;
  margin-top: 4px; /* space for flag stripe */
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header .logo img,
.header .logo-text img {
  height: 45px;
  width: auto;
  mix-blend-mode: screen;
}

.footer .logo-text img {
  height: 40px;
  width: auto;
  mix-blend-mode: screen;
}

/* Quiz header logo (smaller) */
.quiz-header .logo-text img {
  height: 30px;
  width: auto;
  mix-blend-mode: screen;
}

.header .logo-text {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header .logo-text span {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
}

.header .tagline {
  font-family: var(--font-body);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---- Hero Section ---- */
.hero {
  background: var(--navy);
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(197, 160, 89, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  color: var(--white);
}

.hero .antetitulo {
  color: var(--red);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero .antetitulo::before {
  content: '⚠';
  font-size: 1.1rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 800;
}

.hero h1 span {
  color: var(--gold);
}

.hero .subtitulo {
  color: #b8c4d4;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 25px;
}

.hero .subtitulo strong {
  color: var(--white);
}

/* ---- Mockup del PDF ---- */
.mockup-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-book {
  width: 280px;
  height: 380px;
  background: linear-gradient(135deg, var(--navy-light) 0%, #0a1628 100%);
  border: 2px solid var(--gold);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  text-align: center;
  position: relative;
  box-shadow:
    15px 15px 30px rgba(0,0,0,0.4),
    -2px -2px 10px rgba(197,160,89,0.1);
  transform: perspective(800px) rotateY(-5deg);
  transition: var(--transition);
}

.mockup-book:hover {
  transform: perspective(800px) rotateY(0deg);
}

.mockup-book .book-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.65rem;
  padding: 6px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mockup-book .book-logo {
  width: 60px;
  height: 60px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold);
  font-size: 1.5rem;
}

.mockup-book h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.mockup-book p {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Mockup 3D Image */
.mockup-container .mockup-image {
  max-width: 420px;
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
  transition: transform 0.4s ease;
}

.mockup-container .mockup-image:hover {
  transform: scale(1.03);
}

/* ---- Formulario de Captura ---- */
.form-card {
  background: var(--white);
  border-radius: 12px;
  padding: 35px 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  border: 1px solid rgba(197,160,89,0.2);
}

.form-card h3 {
  color: var(--navy);
  font-size: 1.3rem;
  margin-bottom: 25px;
  text-align: center;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e4e8;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--gray-light);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197,160,89,0.15);
  background: var(--white);
}

.form-group input::placeholder {
  color: #a0a8b4;
}

/* ---- Botones ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.3;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hover) 100%);
  color: var(--navy);
  box-shadow: 0 4px 15px rgba(197,160,89,0.4);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-hover) 0%, #e6c348 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(197,160,89,0.5);
}

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

.btn-blue {
  background: linear-gradient(135deg, var(--blue-flag) 0%, var(--navy) 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(15,32,65,0.4);
}

.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(15,32,65,0.5);
}

.btn-full {
  width: 100%;
}

.btn-lg {
  padding: 20px 40px;
  font-size: 1.05rem;
}

.micro-text {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 12px;
  font-style: italic;
}

/* ---- Seccion de Beneficios / Cuerpo ---- */
.benefits {
  background: var(--white);
  padding: var(--section-padding);
}

.benefits h2 {
  text-align: center;
  color: var(--navy);
  margin-bottom: 50px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.benefit-card {
  padding: 30px 25px;
  border-radius: 12px;
  background: var(--gray-light);
  border: 1px solid #e8ecf0;
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(15,32,65,0.1);
  border-color: var(--gold);
}

.benefit-card .icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(15,32,65,0.2);
}

.benefit-card .icon i,
.benefit-card .icon svg,
.benefit-card .icon span {
  color: var(--gold);
  stroke: var(--gold);
  font-size: 1.4rem;
}

.benefit-card h3 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.benefit-card p {
  color: var(--gray-dark);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Checkmark list */
.check-list {
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  align-items: flex-start;
}

.check-list li .check-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 2px;
}

.check-list li strong {
  color: var(--navy);
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.check-list li p {
  color: var(--gray-dark);
  font-size: 0.9rem;
  margin: 0;
}

/* ---- Footer ---- */
.footer {
  background: var(--navy);
  padding: 40px 0;
  text-align: center;
  border-top: 2px solid rgba(197,160,89,0.2);
}

.footer .logo img {
  height: 45px;
  margin: 0 auto 15px;
}

.footer .logo-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.footer .logo-text span {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.footer .lema {
  color: #8899aa;
  font-size: 0.85rem;
  font-style: italic;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

.footer .lema strong {
  color: var(--gold);
}

/* ---- Thank You Page (Landing 2) ---- */
.thankyou-section {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  background: var(--gray-light);
}

.thankyou-card {
  background: var(--white);
  border-radius: 16px;
  padding: 50px 40px;
  max-width: 700px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(15,32,65,0.08);
  border: 1px solid #e8ecf0;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hover) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2.5rem;
  color: var(--navy);
  animation: pulseCheck 2s ease infinite;
}

@keyframes pulseCheck {
  0%, 100% { box-shadow: 0 0 0 0 rgba(197,160,89,0.4); }
  50% { box-shadow: 0 0 0 15px rgba(197,160,89,0); }
}

.steps-list {
  text-align: left;
  margin: 35px 0;
}

.step-item {
  display: flex;
  gap: 18px;
  padding: 20px;
  background: var(--gray-light);
  border-radius: 10px;
  margin-bottom: 15px;
  align-items: flex-start;
  border: 1px solid #e8ecf0;
  transition: var(--transition);
}

.step-item:hover {
  border-color: var(--gold);
}

.step-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(15,32,65,0.15);
}

.step-icon i,
.step-icon svg {
  color: var(--gold);
  stroke: var(--gold);
}

.step-item h4 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.step-item p {
  font-size: 0.85rem;
  color: var(--gray-dark);
  margin: 0;
}

.social-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ---- Upsell / Landing 4 ---- */
.confirmation-block {
  background: var(--white);
  padding: 60px 0;
  text-align: center;
}

.warning-box {
  max-width: 700px;
  margin: 0 auto;
  padding: 25px 30px;
  border: 2px solid var(--gold);
  border-radius: 12px;
  background: #fffdf5;
  text-align: center;
}

.warning-box .warning-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.warning-box .warning-icon i {
  color: var(--gold);
}

.success-icon i,
.success-icon svg {
  color: var(--navy);
  stroke: var(--navy);
}

.warning-box p {
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
  margin: 0;
  line-height: 1.6;
}

.upsell-block {
  background: var(--navy);
  padding: 80px 0 60px;
  text-align: center;
}

.upsell-block h2 {
  color: var(--gold);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  margin-bottom: 30px;
}

.upsell-block .description {
  color: var(--white);
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.price-anchor {
  margin-bottom: 30px;
}

.price-original {
  color: #8899aa;
  font-size: 1.1rem;
  text-decoration: line-through;
  margin-bottom: 10px;
}

.price-special {
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
}

.urgency-text {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 25px;
  opacity: 0.9;
}

/* ---- Landing 3 - DHAM ---- */
.dham-hero {
  background: var(--navy);
  padding: 60px 0 80px;
  min-height: 80vh;
}

.dham-hero .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}

.dham-content .antetitulo {
  color: var(--red);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.dham-content h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.dham-content h1 span {
  color: var(--gold);
}

.dham-content .not-exam {
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--gold);
  padding: 15px 20px;
  margin: 25px 0;
  border-radius: 0 8px 8px 0;
}

.dham-content .not-exam p {
  color: #b8c4d4;
  font-style: italic;
  font-size: 0.95rem;
  margin: 0;
}

.dham-benefits {
  margin-top: 30px;
}

.dham-benefits h3 {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.dham-benefit-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.dham-benefit-item .icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: rgba(197,160,89,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.dham-benefit-item .icon i,
.dham-benefit-item .icon svg {
  color: var(--gold);
  stroke: var(--gold);
}

.dham-benefit-item strong {
  color: var(--white);
  display: block;
  margin-bottom: 3px;
  font-size: 0.95rem;
}

.dham-benefit-item p {
  color: #8899aa;
  font-size: 0.85rem;
  margin: 0;
}

/* ---- Quiz / Evaluacion ---- */
.quiz-container {
  min-height: 100vh;
  background: var(--gray-light);
  display: flex;
  flex-direction: column;
}

.quiz-header {
  background: var(--navy);
  padding: 15px 0;
  margin-top: 4px;
}

.quiz-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quiz-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 20px;
}

.quiz-progress-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-hover));
  border-radius: 3px;
  transition: width 0.5s ease;
}

.quiz-timer {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.quiz-timer i,
.quiz-timer svg {
  color: var(--gold);
  stroke: var(--gold);
}

.quiz-timer.warning {
  color: var(--red);
}

.quiz-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.question-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  max-width: 700px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(15,32,65,0.08);
  border: 1px solid #e8ecf0;
}

.question-number {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.question-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 30px;
  line-height: 1.5;
}

.answer-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.answer-option {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  border: 2px solid #e0e4e8;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--navy);
}

.answer-option:hover {
  border-color: var(--gold);
  background: rgba(197,160,89,0.05);
}

.answer-option.selected {
  border-color: var(--gold);
  background: rgba(197,160,89,0.1);
}

.answer-option .option-letter {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.answer-option.selected .option-letter {
  background: var(--gold);
  color: var(--navy);
}

.quiz-nav {
  display: flex;
  justify-content: flex-end;
  margin-top: 25px;
}

/* ---- Results Page ---- */
.results-section {
  padding: 60px 0;
  background: var(--gray-light);
}

.result-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 10px 40px rgba(15,32,65,0.06);
  border: 1px solid #e8ecf0;
}

.result-card.unlocked {
  border-color: var(--green-success);
}

.result-card.locked {
  position: relative;
  overflow: hidden;
}

.result-card.locked .locked-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(248,249,250,0.85);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.lock-icon {
  width: 60px;
  height: 60px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.locked-overlay p {
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
}

.radar-chart-container {
  max-width: 400px;
  margin: 30px auto;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ---- Responsive ---- */

/* Tablet */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    text-align: center;
  }

  .hero .antetitulo {
    justify-content: center;
  }

  .mockup-container {
    order: -1;
  }

  .mockup-container .mockup-image {
    max-width: 320px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dham-hero .container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .dham-content {
    text-align: center;
  }

  .dham-content .not-exam {
    text-align: left;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-padding: 50px 0;
  }

  .header .tagline {
    display: none;
  }

  .hero {
    padding: 40px 0 60px;
  }

  .form-card {
    padding: 25px 20px;
  }

  .btn {
    padding: 14px 24px;
    font-size: 0.85rem;
  }

  .btn-lg {
    padding: 18px 30px;
    font-size: 0.95rem;
  }

  .thankyou-card {
    padding: 35px 25px;
  }

  .step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .social-buttons {
    flex-direction: column;
    align-items: center;
  }

  .social-buttons .btn {
    width: 100%;
    max-width: 350px;
  }

  .question-card {
    padding: 25px 20px;
  }

  .question-text {
    font-size: 1.1rem;
  }

  .upsell-block {
    padding: 60px 0 50px;
  }

  .result-card {
    padding: 25px 20px;
  }

  /* Quiz header: reorganizar para mobile */
  .quiz-header .container {
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 15px;
  }

  .quiz-header .logo-text span {
    display: none;
  }

  .quiz-progress-bar {
    order: 3;
    width: 100%;
    margin: 6px 0 0;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.3rem; }

  .mockup-container .mockup-image {
    max-width: 260px;
  }

  .form-card h3 {
    font-size: 1.1rem;
  }
}

/* (estilos de iconos ya definidos arriba, no duplicar) */

.social-buttons .btn i {
  font-size: 1.2rem;
}

/* ---- Utility Classes ---- */
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.hidden { display: none !important; }

/* ============================================
   DHAM® — Pantalla de Instrucciones
   ============================================ */
.instructions-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 30px 20px;
}

.instructions-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15,32,65,0.12);
  max-width: 680px;
  width: 100%;
  overflow: hidden;
}

.instructions-header {
  background: var(--navy);
  padding: 30px 30px 25px;
  text-align: center;
}

.instructions-header h1 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 5px;
  line-height: 1.3;
}

.instructions-subtitle {
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.instructions-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fef3cd;
  border-left: 4px solid var(--gold);
  padding: 15px 20px;
  margin: 0;
}

.instructions-alert svg {
  flex-shrink: 0;
  color: #856404;
  margin-top: 2px;
}

.instructions-alert p {
  color: #856404;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

.instructions-body {
  padding: 25px 30px 10px;
}

.instructions-body h3 {
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 15px;
}

.instructions-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.instructions-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--gray-dark);
  line-height: 1.5;
}

.instructions-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.instructions-footer {
  padding: 15px 30px 30px;
  text-align: center;
}

.instructions-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.btn-start-quiz {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 16px 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.btn-start-quiz:hover {
  background: #d4af5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(197,160,89,0.4);
}

/* ============================================
   DHAM® — Indicador de Fase
   ============================================ */
.phase-indicator {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
  background: rgba(197,160,89,0.15);
  padding: 4px 12px;
  border-radius: 20px;
}

.phase-header {
  text-align: center;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.question-subarea {
  text-align: center;
  color: var(--gray);
  font-size: 0.8rem;
  font-style: italic;
  margin: 0 0 5px;
}

/* ============================================
   DHAM® — Medidor Emocional
   ============================================ */
.emotional-meter {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  text-align: center;
}

.emotional-label {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 12px;
  font-weight: 500;
}

.emotional-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.emotion-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: #f8f9fa;
  border: 2px solid #e0e4e8;
  border-radius: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 90px;
}

.emotion-btn:hover {
  border-color: var(--gold);
  background: #fdf8ee;
}

.emotion-btn.active {
  border-color: var(--gold);
  background: #fdf8ee;
  box-shadow: 0 0 0 3px rgba(197,160,89,0.2);
}

.emotion-emoji {
  font-size: 1.8rem;
  line-height: 1;
}

.emotion-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
}

/* ============================================
   DHAM® — Semáforo Emocional (Resultados)
   ============================================ */
.semaforo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
}

.semaforo-item {
  text-align: center;
  padding: 15px 10px;
  background: var(--gray-light);
  border-radius: 10px;
}

.semaforo-dot {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 1.5rem;
  color: #fff;
}

.semaforo-area {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 3px;
}

.semaforo-label {
  font-size: 0.75rem;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   DHAM® — Informe Clínico (Resultados)
   ============================================ */
.clinical-block {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.clinical-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.clinical-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 15px;
}

.clinical-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 14px;
  border-radius: 10px;
  color: #fff;
  flex-shrink: 0;
}

.clinical-badge span {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}

.clinical-badge small {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.clinical-text {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--gray-dark);
  padding-left: 15px;
  margin: 0;
}

/* ============================================
   DHAM® — Stat Cards (Resultados)
   ============================================ */
.stat-card {
  text-align: center;
  padding: 20px 15px;
  background: var(--gray-light);
  border-radius: 10px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 5px;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray);
  margin: 0;
}

/* ============================================
   Responsive para nuevos componentes
   ============================================ */
@media (max-width: 600px) {
  .instructions-header { padding: 20px 15px; }
  .instructions-header h1 { font-size: 1.2rem; }
  .instructions-body { padding: 15px 15px 5px; }
  .instructions-footer { padding: 10px 15px 25px; }
  .btn-start-quiz { padding: 14px 25px; font-size: 0.95rem; }

  .emotional-buttons { gap: 8px; }
  .emotion-btn { padding: 10px 12px; min-width: 75px; }
  .emotion-emoji { font-size: 1.4rem; }

  .semaforo-grid { grid-template-columns: repeat(2, 1fr); }

  .clinical-header { flex-direction: column; align-items: flex-start; }

  .stat-value { font-size: 1.5rem; }

  /* --- Quiz Header Mobile: 2 filas para que el timer sea visible --- */
  .quiz-header {
    padding: 10px 0;
  }

  .quiz-header .container {
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 12px;
  }

  .quiz-header .logo-text {
    display: none; /* Ocultar logo en mobile para dar espacio */
  }

  .phase-indicator {
    font-size: 0.7rem;
    padding: 3px 10px;
    order: 1;
  }

  .quiz-progress-bar {
    order: 3;
    width: 100%;
    margin: 4px 0 0;
  }

  #questionCounter {
    order: 2;
    font-size: 0.8rem !important;
    margin-left: auto;
  }

  .quiz-timer {
    order: 2;
    font-size: 0.95rem;
    gap: 5px;
  }

  .quiz-timer svg {
    width: 15px;
    height: 15px;
  }

  /* --- Evitar overflow horizontal (espacio blanco a la derecha) --- */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .quiz-container {
    overflow-x: hidden;
  }

  .quiz-body {
    padding: 25px 12px;
  }

  .question-card {
    padding: 20px 15px;
    max-width: 100%;
  }

  /* --- Radar chart: más espacio y labels más cortos vía padding --- */
  .radar-chart-container {
    max-width: 100%;
    margin: 20px auto;
    padding: 0 5px;
  }

  /* --- Results page: evitar texto cortado --- */
  .result-card {
    padding: 20px 15px;
    overflow: hidden;
    word-wrap: break-word;
  }

  .result-card h2 {
    font-size: 1.2rem;
  }

  .result-card h3 {
    font-size: 1rem;
  }
}
