/*
  Paleta (psicología del color):
  - Marfil cálido de fondo: cercanía y calma; el blanco puro se siente clínico.
  - Verde pino como color de marca: estabilidad, crecimiento y dinero bien cuidado.
    Transmite la confianza del azul sin parecerse a ninguna aseguradora.
  - Terracota solo para acciones: es el complementario del verde, así que el botón
    es lo único cálido de la página y el ojo va directo a él (efecto de aislamiento).
  - Tinta casi negra con subtono verde: legible sin la dureza del negro puro.
*/
:root {
  color-scheme: light;
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f2eee6;
  --line: #e5dfd4;
  --text: #1c2a27;
  --muted: #56625f;
  --brand: #14524b;
  --brand-soft: #e4efec;
  --cta: #bf4d2a;
  --cta-hover: #a3401f;
  --no: #8b918e;
  --err: #b3261e;
  --radius: 18px;
  --gutter: 20px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 96px;
}
a { color: inherit; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }
section { padding: 72px 0; }
h2 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 7.4vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0 0 28px;
}
p { margin: 0 0 18px; }
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.accent { color: var(--brand); font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 16px 28px;
  border: 0; border-radius: 999px;
  background: var(--cta);
  color: #fff;
  font: inherit; font-weight: 700; font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(191,77,42,.25);
  transition: background .2s, transform .1s;
}
.btn:hover { background: var(--cta-hover); }
.btn:active { transform: scale(.98); }
.btn:focus-visible, .chip input:focus-visible + span, input:focus-visible {
  outline: 3px solid var(--brand); outline-offset: 3px;
}
.btn-ghost { background: transparent; border: 1.5px solid var(--brand); color: var(--brand); box-shadow: none; }
.btn-ghost:hover { background: var(--brand-soft); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 48px 0 72px;
  background:
    radial-gradient(90% 55% at 100% 0%, #dcebe7, transparent 65%),
    radial-gradient(70% 45% at 0% 100%, #f3e6dc, transparent 65%);
}
.byline { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.byline .avatar { width: 52px; height: 52px; font-size: 1.05rem; }
.byline strong { display: block; font-size: 1rem; line-height: 1.3; }
.byline span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.3; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 12.5vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 22px;
}
.hero h1 .line { display: block; white-space: nowrap; }
.rot {
  display: inline-block;
  color: var(--brand);
  font-style: italic;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .45s ease;
  will-change: transform, opacity;
}
.rot.out { transform: translateY(-40%); opacity: 0; }
.rot.pre { transform: translateY(40%); opacity: 0; transition: none; }
.tagline {
  font-size: clamp(1.15rem, 4.6vw, 1.45rem);
  font-weight: 700;
  margin: 0 0 16px;
}
.hero .sub { color: var(--muted); font-size: 1.08rem; max-width: 34em; margin-bottom: 32px; }
.reassure {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px;
  margin: 16px 0 0; padding: 0; list-style: none;
  color: var(--muted); font-size: .92rem;
}
.reassure li { display: flex; align-items: center; gap: 6px; }
.reassure svg { width: 16px; height: 16px; color: var(--brand); flex: none; }

/* ---------- ¿Ya tienes seguro? ---------- */
.have { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.qa { list-style: none; margin: 0 0 28px; padding: 0; }
.qa li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.qa li:first-child { padding-top: 0; }
.qa .q { font-size: 1.15rem; font-weight: 700; line-height: 1.4; margin: 0 0 6px; }
.qa .a { color: var(--brand); font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.25rem; margin: 0; }
.qa .a span { color: var(--muted); font-family: "Manrope", system-ui, sans-serif; font-style: normal; font-weight: 500; font-size: 1rem; }
.promise {
  font-size: 1rem; margin-bottom: 24px;
  background: var(--brand-soft); border-radius: 14px; padding: 16px 18px;
}

/* ---------- Story ---------- */
.me { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.avatar {
  width: 72px; height: 72px; border-radius: 50%;
  flex: none;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  font-weight: 800; font-size: 1.4rem; letter-spacing: .02em;
  overflow: hidden;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--line);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.me strong { display: block; font-size: 1.05rem; }
.me span { color: var(--muted); font-size: .92rem; line-height: 1.4; display: block; }
.story p { font-size: 1.1rem; }
.story .pull {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 5.8vw, 1.8rem);
  font-weight: 600; line-height: 1.3;
  border-left: 4px solid var(--brand);
  padding: 4px 0 4px 18px;
  margin: 30px 0;
}

/* ---------- Lists ---------- */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.list li {
  display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  font-size: 1.05rem; line-height: 1.5;
}
.ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.ico svg { width: 18px; height: 18px; }
.yes .ico { background: var(--brand-soft); color: var(--brand); }
/* Filtro en gris: honesto, sin tono de alarma */
.no .list li { background: transparent; }
.no .ico  { background: var(--surface-2); color: var(--no); }
.no h2 .accent { color: var(--muted); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 14px; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.step .n {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--brand); color: #fff;
  font-weight: 800; margin-bottom: 14px;
}
.step h3 { font-size: 1.25rem; margin: 0 0 6px; letter-spacing: -0.01em; }
.step p { color: var(--muted); margin: 0; font-size: 1.02rem; }
.callout {
  margin-top: 26px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  font-family: var(--serif);
  font-size: 1.3rem; font-weight: 600; line-height: 1.4;
}

/* ---------- Honesty ---------- */
.honest { background: var(--brand-soft); }
.truths { list-style: none; margin: 0; padding: 0; }
.truths li {
  counter-increment: t;
  position: relative;
  padding: 20px 0 20px 56px;
  border-bottom: 1px solid rgba(20,82,75,.15);
  font-size: 1.08rem;
}
.truths li:last-child { border-bottom: 0; }
.truths li::before {
  content: counter(t, decimal-leading-zero);
  position: absolute; left: 0; top: 18px;
  font-family: var(--serif); font-weight: 600; color: var(--brand); font-size: 1.3rem;
}
.truths strong { display: block; font-size: 1.15rem; margin-bottom: 2px; }
.truths span { color: var(--muted); }

/* ---------- Form ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px 18px;
  box-shadow: 0 20px 50px rgba(28,42,39,.08);
}
.field { margin-bottom: 26px; border: 0; padding: 0; min-width: 0; }
.field > label, .field legend {
  display: block; font-weight: 700; font-size: 1.02rem; line-height: 1.4;
  margin-bottom: 10px; padding: 0;
}
input[type=text], input[type=tel] {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit; font-size: 1.05rem;
}
input::placeholder { color: #8d948f; }
.chips { display: grid; gap: 10px; }
.chips.two { grid-template-columns: 1fr 1fr; }
.chip { position: relative; display: block; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: flex; align-items: center;
  min-height: 54px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  font-size: 1rem; line-height: 1.35;
  transition: border-color .15s, background .15s;
}
.chips.two .chip span { justify-content: center; }
.chip input:checked + span {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
}
.field.invalid input[type=text], .field.invalid input[type=tel], .field.invalid .chip span { border-color: var(--err); }
.err { display: none; color: var(--err); font-size: .92rem; margin-top: 8px; }
.field.invalid .err { display: block; }
.explore {
  display: none;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--brand-soft);
}
.explore p { font-size: 1.05rem; }
.explore.show { display: block; animation: fade .35s ease; }
.fine { color: var(--muted); font-size: .88rem; text-align: center; margin: 14px 0 0; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
footer { padding: 40px 0 24px; color: var(--muted); font-size: .9rem; text-align: center; border-top: 1px solid var(--line); }
footer p { margin: 0 0 6px; }

/* ---------- Floating CTA ---------- */
.float-cta {
  position: fixed; z-index: 50;
  left: var(--gutter); right: var(--gutter);
  bottom: calc(14px + env(safe-area-inset-bottom));
  width: auto;
  box-shadow: 0 10px 28px rgba(28,42,39,.22);
  transition: transform .3s ease, opacity .3s ease, background .2s;
}
.float-cta.hide { transform: translateY(140%); opacity: 0; pointer-events: none; }

@media (min-width: 760px) {
  body { font-size: 19px; padding-bottom: 0; }
  section { padding: 104px 0; }
  .btn { width: auto; }
  .hero .btn { min-width: 320px; }
  .reassure { justify-content: flex-start; }
  .form-card { padding: 36px; }
  .form-card .btn { width: 100%; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .float-cta { left: auto; right: 28px; bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rot, .rot.out, .rot.pre { transform: none; }
  .rot { transition: opacity .3s ease; }
}

/* ---------- Landings por prospecto ---------- */
.kicker {
  display: inline-block;
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 16px;
}
.lead { color: var(--muted); font-size: 1.08rem; margin-top: -12px; margin-bottom: 28px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.facts strong { display: block; font-size: 1.1rem; margin-bottom: 4px; color: var(--brand); }
.facts span { display: block; color: var(--muted); font-size: 1.02rem; line-height: 1.5; }
@media (min-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
}

/* ---------- Aviso de privacidad ---------- */
.fine a, footer a { color: var(--brand); }
.legal { padding-top: 48px; }
.legal h1 {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em;
  font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1.1; margin: 0 0 12px;
}
.legal .updated { color: var(--muted); font-size: .95rem; margin-bottom: 32px; }
.legal h2 { font-size: clamp(1.35rem, 5.4vw, 1.7rem); margin: 40px 0 14px; }
.legal p, .legal li { font-size: 1.02rem; }
.legal ul { padding-left: 22px; margin: 0 0 18px; }
.legal li { margin-bottom: 8px; }
.legal .summary { background: var(--brand-soft); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 8px; }
.legal .summary p:last-child { margin-bottom: 0; }
.legal .pending { background: #fff3cd; padding: 0 4px; border-radius: 4px; }

/* ---------- Paso 2: calendario ---------- */
.booking[hidden], .form-card[hidden] { display: none; }
.booking { padding-left: 12px; padding-right: 12px; }
.booking .step { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin: 0 0 8px; padding: 0 6px; }
.booking h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.2; margin: 0 0 8px; padding: 0 6px; }
.booking-lead { color: var(--muted); font-size: 1rem; padding: 0 6px; }
.cal-inline { min-height: 560px; width: 100%; overflow: auto; border-radius: 14px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); text-decoration: underline; cursor: pointer; }
.companion { font-size: 1rem; padding: 12px 14px; margin: 0 6px 18px; background: var(--brand-soft); border-radius: 12px; }
