/* Paleta heredada de los carruseles: crema, tinta casi negra, coral y teal */
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #F5F2ED;
  --cream-2: #EDE8E0;
  --white: #FFFFFF;
  --ink: #0E0E10;
  --ink-soft: #55555B;
  --coral: #FF6A4D;
  --teal: #17A398;
  --teal-deep: #0E7C73;   /* teal más oscuro para texto blanco legible */
  --teal-deeper: #0A655E;
  --line: rgba(14, 14, 16, 0.12);
  --radius: 20px;
  --shadow: 0 18px 50px rgba(14, 14, 16, 0.10);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

/* Marcadores de contenido pendiente (se quitan antes de publicar) */
.ph { background: rgba(255, 196, 0, 0.28); border-radius: 4px; padding: 0 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Cabecera */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(245, 242, 237, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 800; letter-spacing: -0.02em; font-size: 16px; }
.brand__tag { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-deep); font-weight: 700; }

/* Botones */
.btn {
  display: inline-block; text-align: center; text-decoration: none; cursor: pointer;
  background: var(--teal-deep); color: #fff; border: 0; border-radius: 999px;
  padding: 16px 30px; font: 700 16px/1 "Montserrat", sans-serif; letter-spacing: -0.01em;
  box-shadow: 0 10px 26px rgba(14, 124, 115, 0.30);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--teal-deeper); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.btn--sm { padding: 11px 18px; font-size: 14px; box-shadow: none; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: wait; transform: none; }
.link-arrow { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--coral); padding-bottom: 2px; }
.link-arrow:hover { color: var(--teal-deep); }

/* Hero */
.hero {
  background:
    radial-gradient(60% 55% at 0% 0%, rgba(255, 106, 77, 0.20), transparent 70%),
    radial-gradient(60% 60% at 100% 100%, rgba(23, 163, 152, 0.22), transparent 70%),
    var(--cream);
  padding: 36px 0 56px;
  overflow: hidden;
}
.hero__grid { display: grid; gap: 36px; align-items: center; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 14px; }
.hero h1 { font-size: clamp(32px, 6.6vw, 56px); font-weight: 800; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--coral); }
.lead { font-size: clamp(17px, 2.4vw, 20px); color: var(--ink-soft); max-width: 36em; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin: 28px 0; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; }
.hero__photo { position: relative; justify-self: center; width: min(420px, 100%); }
.hero__photo::before { content: ""; position: absolute; inset: 22px -14px -14px 22px; border-radius: 28px; background: linear-gradient(135deg, var(--coral), var(--teal)); opacity: .9; }
.hero__photo img { position: relative; border-radius: 28px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 850 / 1100; object-fit: cover; object-position: 50% 12%; }

/* Secciones */
.section { padding: 72px 0; }
.section--tint { background: var(--cream-2); }
.section h2 { font-size: clamp(27px, 4.4vw, 40px); font-weight: 800; margin-bottom: 18px; }
.section__sub { color: var(--ink-soft); max-width: 44em; margin-bottom: 36px; }
#casos h2 { margin-bottom: 36px; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 32px 0 0; }
.facts > div { background: var(--white); border-radius: 16px; padding: 18px 14px; text-align: center; border: 1px solid var(--line); }
.facts dt { font-weight: 800; font-size: 22px; color: var(--teal-deep); }
.facts dd { margin: 4px 0 0; font-size: 13px; color: var(--ink-soft); line-height: 1.35; }

/* Tarjetas */
.cards { display: grid; gap: 16px; }
.card { background: var(--white); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.card__n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--coral); color: var(--coral); font-weight: 800; margin-bottom: 14px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.forwho { margin-top: 36px; background: var(--ink); color: #F5F3EF; border-radius: var(--radius); padding: 28px; }
.forwho h3 { font-size: 20px; margin-bottom: 14px; }
.forwho ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.forwho li { padding-left: 28px; position: relative; }
.forwho li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }

/* Casos */
.cases { display: grid; gap: 28px; }
.case { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; box-shadow: 0 6px 24px rgba(14,14,16,.05); }
.case__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.case__imgs figure { margin: 0; position: relative; }
.imgph { aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: 8px; font-size: 13px; font-weight: 700; color: var(--ink-soft); background: repeating-linear-gradient(45deg, #ECE7DF, #ECE7DF 12px, #E4DED4 12px, #E4DED4 24px); }
.case__imgs img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.case__imgs figcaption { position: absolute; left: 10px; top: 10px; background: rgba(14,14,16,.82); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
/* Comparador antes / después */
.ba { position: relative; --pos: 50%; overflow: hidden; background: var(--line); aspect-ratio: 4 / 3; user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: ew-resize; }
.ba__layer { position: absolute; inset: 0; }
.ba__layer img, .ba__layer .imgph { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; min-height: 0; }
.ba__after { clip-path: inset(0 0 0 var(--pos)); }
.imgph--after { background: repeating-linear-gradient(45deg, #D9EDEA, #D9EDEA 12px, #CBE4E0 12px, #CBE4E0 24px); }
.ba__tag { position: absolute; top: 12px; background: rgba(14,14,16,.82); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; pointer-events: none; }
.ba__tag--l { left: 12px; }
.ba__tag--r { right: 12px; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(14,14,16,.25), 0 2px 12px rgba(0,0,0,.3); pointer-events: none; }
.ba__knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 17px; letter-spacing: -1px; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.ba__range:focus-visible + .ba__line .ba__knob { outline: 3px solid var(--coral); outline-offset: 2px; }
.ba__hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); background: rgba(14,14,16,.82); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; pointer-events: none; white-space: nowrap; transition: opacity .3s ease; }
.ba.used .ba__hint { opacity: 0; }

.case__body { padding: 24px 24px 12px; }
.case__body h3 { font-size: 21px; margin-bottom: 14px; }
.case__body dl { margin: 0; display: grid; gap: 4px; }
.case__body dt { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); margin-top: 10px; }
.case__body dd { margin: 0 0 6px; color: var(--ink-soft); font-size: 16px; }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 18px; background: var(--white); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); align-items: flex-start; }
.steps__n { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--teal-deep); color: #fff; font-weight: 800; }
.steps h3 { font-size: 19px; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* FAQ */
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--coral); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-soft); padding: 0 0 20px; margin: 0; }

/* Formulario */
.section--form {
  background:
    radial-gradient(60% 60% at 100% 0%, rgba(23, 163, 152, 0.22), transparent 70%),
    radial-gradient(60% 60% at 0% 100%, rgba(255, 106, 77, 0.16), transparent 70%),
    var(--cream);
}
.form__grid { display: grid; gap: 36px; align-items: start; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 600; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal-deep); font-weight: 800; }
.form__card { background: var(--white); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); border: 1px solid var(--line); }
[hidden] { display: none !important; }

/* Cuestionario por pasos */
.quiz__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; font-weight: 700; color: var(--ink-soft); letter-spacing: .02em; }
.quiz__bar { height: 6px; background: var(--cream-2); border-radius: 999px; overflow: hidden; margin-bottom: 24px; }
.quiz__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--coral), var(--teal)); border-radius: 999px; transition: width .3s ease; }
.qstep { border: 0; padding: 0; margin: 0; min-width: 0; }
.qstep legend, .qstep__title { display: block; width: 100%; padding: 0; margin: 0 0 18px; font-size: clamp(20px, 3.2vw, 24px); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.qstep legend:focus, .qstep__title:focus { outline: none; }
.qopts { display: grid; gap: 10px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt span { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border: 1.5px solid #CFC9BF; border-radius: 14px; background: #FBFAF8; font-weight: 600; font-size: 16px; line-height: 1.3; transition: border-color .15s ease, background .15s ease; }
.opt span::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #B9B2A6; background: #fff; }
.opt:hover span { border-color: var(--teal-deep); }
.opt input:checked + span { border-color: var(--teal-deep); background: rgba(23, 163, 152, 0.10); }
.opt input:checked + span::before { border-color: var(--teal-deep); background: radial-gradient(circle, var(--teal-deep) 0 5px, #fff 6px); }
.opt input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.quiz__nav { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.quiz__nav .btn { flex: 1; }
.quiz__back { flex: none; background: none; border: 0; padding: 10px 4px; font: 700 14px "Montserrat", sans-serif; color: var(--ink-soft); text-decoration: underline; cursor: pointer; }
.btn[disabled] { cursor: not-allowed; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.opt { font-weight: 500; color: var(--ink-soft); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; font: 500 16px/1.4 "Montserrat", sans-serif; /* 16px evita el zoom en iPhone */
  color: var(--ink); background: #FBFAF8; border: 1.5px solid #CFC9BF; border-radius: 12px; padding: 14px;
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(23,163,152,.35); border-color: var(--teal-deep); }
.field--check { display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; align-items: start; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--teal-deep); }
.field--check label { font-weight: 500; font-size: 13.5px; line-height: 1.5; margin: 0; color: var(--ink-soft); }
.field--check .err { grid-column: 1 / -1; }
.err { display: none; color: #B3261E; font-size: 13px; font-weight: 600; margin: 6px 0 0; }
.field.invalid .err { display: block; }
.field.invalid input[type="text"], .field.invalid input[type="tel"], .field.invalid input[type="email"], .field.invalid select { border-color: #B3261E; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 14px 0 0; font-size: 14px; font-weight: 600; color: #B3261E; min-height: 1.2em; }
.thanks { text-align: center; padding: 18px 6px; }
.thanks[hidden] { display: none; }
.thanks__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--teal-deep); color: #fff; display: grid; place-items: center; font-size: 30px; font-weight: 800; margin: 0 auto 16px; }
.thanks h3 { font-size: 22px; margin-bottom: 8px; }
.demo-note { margin-top: 14px; font-size: 13px; background: rgba(255,196,0,.28); border-radius: 8px; padding: 8px 12px; }

/* Pie */
.footer { background: var(--ink); color: #C9C6BE; padding: 44px 0 36px; font-size: 14px; }
.footer p { margin: 0 0 6px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.footer__name { font-weight: 800; font-size: 18px; color: #F5F3EF; }
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a { color: #F5F3EF; }
.legal-off { cursor: default; }
.footer__links .legal-off { color: #F5F3EF; }
.footer__note { border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; font-size: 12.5px; color: #9B9890; }

/* Páginas legales */
.legal { padding: 44px 0 80px; }
.legal h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; margin-bottom: 8px; }
.legal__date { color: var(--ink-soft); font-size: 14px; margin-bottom: 24px; }
.legal h2 { font-size: 21px; font-weight: 800; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 16px; }
.legal ul { padding-left: 22px; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--teal-deep); font-weight: 600; }
.legal strong { color: var(--ink); }
.draft { background: rgba(255, 196, 0, 0.22); border: 1px solid rgba(180, 130, 0, 0.45); border-radius: 12px; padding: 14px 18px; font-size: 14px; line-height: 1.5; margin: 0 0 28px; color: var(--ink); }
.back { display: inline-block; margin-bottom: 20px; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--coral); }

/* Móvil estrecho */
@media (max-width: 559px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 18px; }
  .facts dt { flex: none; min-width: 84px; font-size: 20px; }
  .facts dd { margin: 0; font-size: 14px; }
  .brand__name { font-size: 14px; white-space: nowrap; }
  .brand__tag { font-size: 10px; }
  .btn--sm { padding: 10px 14px; font-size: 13px; white-space: nowrap; }
}

/* Escritorio */
@media (min-width: 860px) {
  body { font-size: 18px; }
  .hero { padding: 64px 0 88px; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 64px; }
  .section { padding: 104px 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cases { gap: 36px; }
  .case { display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; }
  .ba { aspect-ratio: auto; min-height: 360px; }
  .case__body { padding: 32px 32px 20px; align-self: center; }
  .form__grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .form__intro { position: sticky; top: 110px; }
  .form__card { padding: 36px; }
  .footer__links { flex-direction: row; gap: 22px; }
}

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

/* Precios orientativos (pregunta 3) */
.prices { list-style: none; margin: 0 0 8px; padding: 0; border: 1.5px solid var(--line, rgba(14,14,16,.15)); border-radius: 14px; background: #fff; }
.prices li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 16px; font-size: 15px; }
.prices li + li { border-top: 1px solid var(--line, rgba(14,14,16,.12)); }
.prices strong { font-weight: 800; white-space: nowrap; }
.prices__note { margin: 0 0 18px; font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.section__sub--lead { color: var(--ink); font-weight: 600; font-size: 1.12em; margin-bottom: 14px; }
.cases__note { margin: 24px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); max-width: 46em; }
