:root {
  --bg: #f7f4ef;
  --bg-alt: #efe9e0;
  --ink: #121418;
  --ink-2: #2a2d33;
  --muted: #5b5f68;
  --line: #e2dbd0;
  --brand: #1f4fd8;
  --accent: #ff5b2e;
  --accent-dk: #e8481c;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(18, 20, 24, .25);
  --head: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--head); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 7.5vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4.8vw, 2.7rem); font-weight: 800; max-width: 20ch; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--brand); }
a { color: inherit; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.eyebrow {
  font: 600 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 1rem;
}
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34ch; }
.micro { font-size: .88rem; color: var(--muted); margin: .8rem 0 0; }
.micro--light { color: rgba(255, 255, 255, .7); }

/* Botón (la única acción de la página) */
.btn {
  appearance: none; border: 0; cursor: pointer; font: 600 1rem/1.2 var(--body);
  background: var(--accent); color: var(--white); border-radius: 999px;
  padding: .9rem 1.4rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  box-shadow: 0 8px 20px -8px rgba(255, 91, 46, .7);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--accent-dk); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.btn--lg { font-size: 1.08rem; padding: 1.1rem 1.7rem; }
.btn--sm { font-size: .88rem; padding: .6rem 1rem; box-shadow: none; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: wait; }

/* Barra superior */
.top { position: sticky; top: 0; z-index: 20; background: rgba(247, 244, 239, .86); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { font: 800 1.45rem/1 var(--head); letter-spacing: -.03em; }
.logo__dot { color: var(--accent); }

/* Hero */
.hero { padding: 28px 0 56px; }
.hero__grid { display: grid; gap: 36px; align-items: center; }
.cta-block { margin-top: 1.6rem; }
.hero__photo { position: relative; margin: 0; justify-self: center; width: min(100%, 440px); }
.hero__photo img { border-radius: 28px; box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; width: 100%; }
.chip {
  position: absolute; background: var(--white); border-radius: 14px; padding: .65rem .9rem;
  box-shadow: var(--shadow); font-size: .85rem; line-height: 1.25; display: grid;
}
.chip strong { font: 800 1.35rem/1 var(--head); color: var(--ink); }
.chip span { color: var(--muted); font-size: .76rem; }
.chip--a { left: -10px; bottom: 26px; }
.chip--b { right: -10px; top: 26px; }
.chip--b strong { color: var(--brand); }

/* Franja de números */
.band { background: var(--ink); color: var(--white); padding: 44px 0; }
.band__grid { display: grid; grid-template-columns: 1fr; gap: 28px 20px; }
.stat strong { display: block; font: 800 clamp(1.9rem, 6vw, 2.6rem)/1 var(--head); color: var(--white); margin-bottom: .4rem; }
.stat strong { color: #ff8a66 !important; }
.stat span { font-size: .9rem; color: rgba(255, 255, 255, .72); line-height: 1.4; display: block; }

/* Secciones */
.section { padding: 76px 0; }
.section--alt { background: var(--bg-alt); }

.pains { display: grid; gap: 14px; margin: 28px 0; }
.pain { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.pain p { margin: 0; }
.pain__x { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #ffe5dc; color: var(--accent-dk); display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.punch { font: 700 clamp(1.25rem, 3.6vw, 1.6rem)/1.3 var(--head); margin: 8px 0 0; }
.punch strong { color: var(--brand); }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; counter-reset: s; }
.step { background: var(--white); border-radius: var(--radius); padding: 26px 24px; border: 1px solid var(--line); }
.step__n { font: 800 2.4rem/1 var(--head); color: var(--brand); opacity: .9; display: block; margin-bottom: 12px; }
.step p { color: var(--ink-2); margin: 0; }

.cases { display: grid; gap: 16px; margin-top: 32px; }
.case { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; }
.case p { color: var(--ink-2); }
.case__tag { font-size: .8rem; font-weight: 600; color: var(--muted) !important; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .6rem; }
.case__result { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink) !important; }
.case__result strong { color: var(--brand); }

.quote { margin: 0; max-width: 820px; }
.quote p { font: 700 clamp(1.35rem, 3.8vw, 2rem)/1.3 var(--head); letter-spacing: -.01em; }
.quote footer { color: var(--muted); }
.quote footer strong { color: var(--ink); }

.services { display: grid; gap: 16px; margin-top: 32px; }
.service { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; position: relative; }
.service p { color: var(--ink-2); }
.service ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.service li { padding-left: 26px; position: relative; font-size: .97rem; }
.service li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.service--main { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.service__badge { position: absolute; top: -13px; left: 22px; background: var(--brand); color: var(--white) !important; font-size: .75rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin: 0; }
.reach { margin: 28px 0 0; padding: 18px 20px; border-radius: var(--radius); background: #e6ecfd; color: var(--ink-2); }

.about { display: grid; gap: 32px; align-items: center; }
.about__img { border-radius: 28px; width: min(100%, 420px); box-shadow: var(--shadow); }
.about p { color: var(--ink-2); max-width: 56ch; }

.talk { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; counter-reset: t; }
.talk li { counter-increment: t; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 18px 66px; position: relative; }
.talk li::before { content: counter(t); position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--white); display: grid; place-items: center; font-weight: 700; }
.talk__note { margin: 20px 0 0; color: var(--muted); }

.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; max-width: 780px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 1.08rem; padding: 16px 40px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 0 0 18px; }
.faq h2 { margin-bottom: 24px; }

.final { background: var(--ink); color: var(--white); padding: 84px 0; text-align: center; }
.final__in { display: flex; flex-direction: column; align-items: center; }
.final h2 { max-width: 22ch; margin-bottom: 28px; }

.foot { padding: 28px 0 110px; font-size: .9rem; color: var(--muted); }
.foot__in { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.foot nav { display: flex; gap: 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* Botón fijo en celular */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(247, 244, 239, .98) 70%, rgba(247, 244, 239, 0));
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky.is-on { transform: none; }

/* Formulario */
.modal {
  border: 0; padding: 0; border-radius: 22px; width: min(100% - 24px, 460px); max-height: calc(100dvh - 24px);
  background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5);
}
.modal::backdrop { background: rgba(18, 20, 24, .6); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.form { padding: 28px 22px 22px; position: relative; }
.form h2 { font-size: 1.55rem; max-width: 16ch; margin-bottom: .3em; }
.form__sub { color: var(--muted); margin-bottom: 18px; }
.modal__close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg-alt); cursor: pointer; font-size: .95rem; color: var(--ink); }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input {
  width: 100%; font: 400 1rem/1.3 var(--body); padding: .85rem .95rem; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink); transition: border-color .15s;
}
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 79, 216, .15); }
.field.is-bad input { border-color: #d6362a; }
.hint { display: block; color: var(--muted); font-size: .8rem; margin-top: 5px; }
.err { display: block; color: #c42b20; font-size: .82rem; margin-top: 4px; min-height: 0; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { margin-top: 6px; }
.form__legal { font-size: .78rem; color: var(--muted); text-align: center; margin: 12px 0 0; }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .modal[open] { animation: none; }
}

/* Tablet y escritorio */
@media (min-width: 700px) {
  .band__grid { grid-template-columns: repeat(3, 1fr); }
  .pains { grid-template-columns: 1fr 1fr; }
  .steps, .services { grid-template-columns: repeat(3, 1fr); }
  .services { align-items: start; }
}
@media (min-width: 900px) {
  .hero { padding: 56px 0 88px; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .chip--a { left: -34px; }
  .chip--b { right: -24px; }
  .about { grid-template-columns: 420px 1fr; gap: 56px; }
  .section { padding: 104px 0; }
  .sticky { display: none; }
  .foot { padding-bottom: 28px; }
}

/* Página de privacidad */
a.logo { text-decoration: none; }
.legal { max-width: 760px; }
.legal h1 { font-size: 2.2rem; }
.legal h3 { margin-top: 1.6em; }

/* Tipo de caso */
.case__type { display: inline-block; align-self: flex-start; font-size: .75rem; font-weight: 600; color: var(--brand) !important; background: #e6ecfd; padding: 4px 12px; border-radius: 999px; margin-bottom: .9rem; }

/* ---------- v2: confianza, casos con imagen, para quién es ---------- */
.trust { margin: 1.4rem 0 0; font-size: .86rem; color: var(--muted); line-height: 1.5; }
.trust span { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .2rem; }

.cases { display: grid; gap: 20px; margin-top: 32px; }
.case { padding: 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); }
.case__body { padding: 26px 24px; display: flex; flex-direction: column; }
.case__body .case__result { margin-top: auto; }
.case__media { background: var(--bg-alt); padding: 24px; display: grid; place-items: center; }
.case--dark { background: var(--ink); color: var(--white); border: 0; }
.case--dark p { color: rgba(255, 255, 255, .8); }
.case--dark .case__tag { color: rgba(255, 255, 255, .55) !important; }
.case--dark .case__result { color: var(--white) !important; border-color: rgba(255, 255, 255, .15); }
.case--dark .case__result strong { color: #ff8a66; }
.case--dark .case__type { background: rgba(255, 138, 102, .16); color: #ff8a66 !important; }
.case--dark .case__media { background: #1c1f25; }
.case__shot { width: 100%; max-width: 340px; height: auto; border-radius: 18px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6); }

.panel { width: 100%; max-width: 380px; background: var(--white); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.panel__head { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; color: var(--muted); margin: 0 0 14px; }
.panel__dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.panel__big { font: 800 3rem/1 var(--head); color: var(--brand); margin: 0; letter-spacing: -.03em; }
.panel__label { color: var(--ink-2); font-size: .92rem; margin: 6px 0 16px; }
.panel__bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin-bottom: 16px; }
.panel__bars span { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(to top, var(--brand), #6b8ff0); }
.panel__bars span:nth-child(1) { height: 38%; } .panel__bars span:nth-child(2) { height: 52%; }
.panel__bars span:nth-child(3) { height: 47%; } .panel__bars span:nth-child(4) { height: 66%; }
.panel__bars span:nth-child(5) { height: 58%; } .panel__bars span:nth-child(6) { height: 81%; }
.panel__bars span:nth-child(7) { height: 74%; } .panel__bars span:nth-child(8) { height: 100%; }
.panel__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.panel__row strong { display: block; font: 800 1.35rem/1.1 var(--head); }
.panel__row span { font-size: .78rem; color: var(--muted); line-height: 1.3; display: block; }
.panel__src { font-size: .72rem; color: var(--muted); margin: 14px 0 0; }

.fit { display: grid; gap: 16px; margin-top: 30px; }
.fit__col { border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); background: var(--white); }
.fit__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.fit__col li { padding-left: 30px; position: relative; color: var(--ink-2); }
.fit__col li::before { position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 700; }
.fit__col--yes { border-color: rgba(31, 79, 216, .35); }
.fit__col--yes li::before { content: "✓"; background: #e6ecfd; color: var(--brand); }
.fit__col--no li::before { content: "✕"; background: #ffe5dc; color: var(--accent-dk); }

@media (min-width: 760px) {
  .case:has(.case__media) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .case:nth-child(even):has(.case__media) .case__media { order: -1; }
  .case__body { padding: 40px; justify-content: center; }
  .case__body .case__result { margin-top: 8px; }
  .case__media { padding: 36px; }
  .fit { grid-template-columns: 1fr 1fr; }
}

/* Clips de reels (se reproducen solos, sin sonido) */
.reels { grid-column: 1 / -1; min-width: 0; padding: 0 24px 26px; }
.reels__cap { font-size: .8rem; font-weight: 600; color: var(--muted) !important; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; }
.reels__track { position: relative; min-width: 0; }
.reels__row { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.reels__row::-webkit-scrollbar { display: none; }
.reel { margin: 0; scroll-snap-align: start; border-radius: 16px; overflow: hidden; background: var(--ink); aspect-ratio: 9 / 16; box-shadow: 0 12px 26px -14px rgba(18, 20, 24, .5); position: relative; }
.reel video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
/* Flechas del carrusel: indican que hay más clips al costado */
.reels__btn { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -25px; border: 0; border-radius: 50%; padding: 0; cursor: pointer;
  display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: 0 8px 22px -6px rgba(18, 20, 24, .45); transition: transform .15s, opacity .2s; }
.reels__btn[hidden] { display: none; }
.reels__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.reels__btn:hover { transform: scale(1.06); }
.reels__btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.reels__btn--prev { left: -8px; }
.reels__btn--next { right: -8px; }
.reels__btn--next.is-hint { animation: nudge 1.4s ease-in-out 2; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .reels__row { scroll-behavior: auto; } .reels__btn--next.is-hint { animation: none; } }
@media (min-width: 760px) {
  .reels { padding: 0 40px 40px; }
  .reels__row { grid-auto-columns: 210px; gap: 14px; }
  .reels__btn--prev { left: -18px; }
  .reels__btn--next { right: -18px; }
}
/* Botón de play cuando el clip está en pausa (por ejemplo, con "reducir movimiento" activado) */
.reel::after { content: ""; position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; pointer-events: none;
  background: rgba(18, 20, 24, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='white'/%3E%3C/svg%3E") center / 24px no-repeat; transition: opacity .2s; }
.reel.is-playing::after { opacity: 0; }
