/* ============ Base ============ */
:root {
  --bg: #FBF7FA;
  --card: #FFFFFF;
  --accent: #8E5A92;      /* lila de marca oscurecido: legible sobre blanco */
  --brand: #B07AB4;       /* lila del logotipo */
  --brand-light: #C787BD; /* lila del triángulo */
  --brand-soft: #F2E5F0;  /* círculo del logo */
  --accent-dark: #744877;
  --text: #414352;
  --muted: #6C6878;
  --dark: #433548;
  --line: #EBDDEA;
  --error: #A3412E;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(65, 67, 82, .04), 0 8px 24px rgba(65, 67, 82, .07);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 9vw, 4.2rem); }
h2 { font-size: clamp(2rem, 7vw, 3rem); }
h3 { font-size: 1.6rem; }

p { margin: 0 0 1em; }

a { color: var(--accent); text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 22px; }
.container--wide { max-width: 1040px; }

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--dark { background: var(--dark); color: #F4ECF4; }
.section--dark h2, .section--dark h3 { color: #FFFFFF; }
.section--dark .muted { color: #D3C4D6; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: #E3B9DD; }

.muted { color: var(--muted); }
.center { text-align: center; }

/* ============ Botones ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn--block { width: 100%; }
.btn--light { background: #FFFFFF; color: var(--dark); }
.btn--light:hover { background: var(--brand-soft); }
.btn--ghost {
  background: transparent;
  color: var(--muted);
  min-height: 44px;
  padding: 10px 6px;
  font-weight: 500;
}
.btn--ghost:hover { background: transparent; color: var(--text); }

.cta-note { margin-top: 12px; font-size: .9rem; color: var(--muted); }

/* ============ Cabecera ============ */
.site-header { padding: 20px 0 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-block; line-height: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.brand span { color: var(--accent); }

/* ============ Hero ============ */
.hero { padding: 64px 0 72px; text-align: center; }
.hero h1 { margin-bottom: .45em; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 34ch; margin: 0 auto 32px; }

/* ============ ¿Te suena? ============ */
.list-check { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }
.list-check li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 18px 52px;
  position: relative;
}
.list-check li::before {
  content: "";
  position: absolute;
  left: 20px; top: 24px;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}
.list-check strong { display: block; font-weight: 600; }
.list-check em { color: var(--muted); font-size: .97rem; }

.closing-line {
  font-family: var(--serif);
  font-size: 1.8rem;
  text-align: center;
  font-style: italic;
  margin: 0;
}

/* ============ Cita ============ */
.quote {
  margin: 36px 0 0;
  padding: 28px 24px;
  border-left: 3px solid var(--accent);
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.quote p { font-family: var(--serif); font-size: 1.5rem; font-style: italic; line-height: 1.35; margin: 0 0 10px; }
.quote cite { font-style: normal; font-size: .9rem; color: var(--muted); }

/* ============ Tarjetas ============ */
.cards { display: grid; gap: 16px; margin: 28px 0 36px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--muted); }
.card .num { font-family: var(--serif); font-size: 1rem; color: var(--accent); letter-spacing: .1em; }

.features { display: grid; gap: 22px; margin-top: 28px; }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.feature .icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand-soft); color: var(--accent);
  display: grid; place-items: center;
}
.feature h3 { font-size: 1.35rem; margin-bottom: .2em; }
.feature p { margin: 0; color: var(--muted); }

/* ============ Sobre Cristina ============ */
.about-list { padding-left: 1.1em; margin: 0; }
.about-list li { margin-bottom: 8px; }
.about-list li::marker { color: var(--accent); }

/* ============ Libro ============ */
.book { display: grid; gap: 28px; align-items: center; }
.book-cover {
  width: 100%; max-width: 340px; height: auto; margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.book-subtitle { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: #E3B9DD; margin-top: -.3em; }

/* ============ Pie ============ */
.site-footer { padding: 36px 0 44px; font-size: .9rem; color: var(--muted); text-align: center; border-top: 1px solid var(--line); }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-bottom: 10px; }

/* ============ Test ============ */
.test-body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.test-main { flex: 1; padding: 28px 0 48px; }
.screen[hidden] { display: none !important; }
.screen { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.test-intro { text-align: center; padding-top: 28px; }
.test-intro h1 { font-size: clamp(2.3rem, 9vw, 3.4rem); }

.progress { margin-bottom: 28px; }
.progress-meta { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.progress-bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .35s ease; }

.question-title { font-size: clamp(1.9rem, 7vw, 2.5rem); margin-bottom: 24px; }
.options { display: grid; gap: 12px; margin-bottom: 20px; }
.option {
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  font: 400 1.02rem/1.45 var(--sans);
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.option:hover { border-color: var(--brand-light); }
.option.is-selected { border-color: var(--accent); background: #F8EEF7; }

.form { display: grid; gap: 16px; margin-top: 24px; }
.field label { display: block; font-size: .92rem; font-weight: 600; margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font: 400 1rem var(--sans); /* 16px+ evita el zoom en iOS */
  color: var(--text);
}
.field input:focus { outline: none; border-color: var(--accent); }
.field.has-error input { border-color: var(--error); }
.field-error { color: var(--error); font-size: .88rem; margin-top: 6px; min-height: 0; }
.field-error:empty { display: none; }

.field label.check { font-weight: 400; margin: 0; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .93rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-error {
  background: #F7E6E1; color: var(--error);
  border-radius: 10px; padding: 12px 14px; font-size: .93rem;
}
.form-error:empty { display: none; }

.gift-list { padding-left: 1.1em; margin: 0 0 6px; }
.gift-list li { margin-bottom: 4px; }
.gift-list li::marker { color: var(--accent); }

.result-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.result-card h1 { font-size: clamp(2.3rem, 9vw, 3.2rem); }
.result-heritage { font-family: var(--serif); font-size: 1.45rem; font-style: italic; line-height: 1.3; margin: 18px 0 0; }

.notice { border-radius: 12px; padding: 14px 16px; font-size: .93rem; margin: 20px 0; }
.notice--ok { background: #EEF0E4; color: #4B5233; }
.notice--warn { background: #FBEFE6; color: #7A4A2A; }

.cta-box { background: var(--dark); color: #F4ECF4; border-radius: var(--radius); padding: 28px 24px; margin-top: 20px; text-align: center; }
.cta-box p { color: #E6DAE8; }

/* ============ Texto legal ============ */
.legal h1 { font-size: clamp(2.2rem, 8vw, 3rem); }
.legal h2 { font-size: 1.6rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }

/* ============ Pantallas grandes ============ */
@media (min-width: 760px) {
  .section { padding: 104px 0; }
  .hero { padding: 104px 0 112px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(3, 1fr); }
  .feature { grid-template-columns: 1fr; }
  .book { grid-template-columns: 380px 1fr; gap: 56px; }
  .book-cover { max-width: 380px; }
  .btn--auto-md { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============ Marca e imágenes ============ */
.brand img { width: 220px; max-width: 62vw; height: auto; }
.hero-logo { width: 132px; height: 132px; margin: 0 auto 26px; }
.test-logo { width: 96px; height: 96px; margin: 0 auto 18px; }
.list-check li::before { border-color: var(--brand-light); }
.quote { border-left-color: var(--brand); }
.card .num { color: var(--brand); }

.about { display: grid; gap: 28px; align-items: center; }
.about-photo {
  width: 100%; max-width: 360px; margin: 0 auto;
  aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 30%;
  border-radius: 50% 50% 18px 18px;
  box-shadow: 0 0 0 8px var(--brand-soft), var(--shadow);
}
.closing-logo { width: 72px; height: 72px; margin: 0 auto 20px; opacity: .9; }

@media (min-width: 760px) {
  .about { grid-template-columns: 320px 1fr; gap: 56px; }
  .about-photo { max-width: 320px; }
  .brand img { width: 260px; }
}
