/* Matías Aranda · web v3 — formal y clara */
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Anton"; src: url("../fonts/anton.woff") format("woff"); font-weight: 400; font-display: swap; }

:root {
  --bg: #F2F0EA;        /* fondo claro */
  --card: #E2DED2;      /* tarjetas (caqui de la marca) */
  --field: #F7F5EF;     /* campos de formulario sobre caqui */
  --blue: #102B9C;      /* color de marca */
  --ink: #0C1E6E;       /* texto largo */
  --green: #8EE0A8;     /* solo resaltado */
  --line: rgba(16, 43, 156, .14);
  --soft: rgba(16, 43, 156, .06);
  --khaki: #E2DED2;
  /* Papel propio (generado con ChatGPT, con el contraste ajustado). Empalma solo al repetirse hacia abajo. */
  --paper-tex: url("../img/papel.webp") 0 0 / max(100%, 1100px) auto repeat-y;
  --gut: 22px;
  --max: 1152px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --pad: 88px;                                   /* aire arriba y abajo de cada sección */
  --ah: clamp(56px, 10vw, 200px);                /* profundidad de la curva entre secciones */
  --bw: max(980px, 104vw);                       /* ancho de la banda curva */
  --bh: calc(var(--bw) * 240 / 1440);            /* alto de la banda (misma proporción que su dibujo) */
  --pull: calc(var(--bh) * -.2);                 /* cuánto sube Servicios para que la banda toque la portada */
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper-tex), var(--bg); color: var(--blue); font: 500 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
p, li { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--blue); color: var(--bg); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding-inline: var(--gut); }

/* ---------- Tipografía ---------- */
.h1, .h2 { font-weight: 800; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
.h1 { font-size: clamp(40px, 10.6vw, 72px); }
.h2 { font-size: clamp(32px, 8vw, 52px); letter-spacing: -.03em; }
.h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.mark { background: linear-gradient(transparent 62%, var(--green) 62%, var(--green) 92%, transparent 92%); padding-inline: .04em; }
.lead { font-size: 19px; line-height: 1.5; color: var(--ink); max-width: 34em; }
.kick { font-size: 15px; font-weight: 700; color: var(--ink); opacity: .7; }
.muted { opacity: .72; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px;
  padding: 14px 24px; border-radius: 10px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 16px; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--main { background: var(--blue); color: var(--bg); }
.btn--main:hover { background: var(--ink); }
.btn--line { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--line:hover { background: var(--soft); }
.btn--light { background: var(--bg); color: var(--blue); }
.btn--light:hover { background: var(--green); }
.btn--sm { min-height: 42px; padding: 11px 18px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Menú ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(242, 240, 234, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.is-scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; }
.top__name { font-weight: 800; font-size: 18px; letter-spacing: -.01em; text-decoration: none; }
.top__links { display: none; gap: 32px; font-size: 15px; }
.top__links a { text-decoration: none; padding-block: 6px; border-bottom: 1.5px solid transparent; transition: border-color .2s; }
.top__links a:hover { border-bottom-color: currentColor; }

/* ---------- Portada ---------- */
.hero { overflow: hidden; }
.hero .wrap { display: grid; gap: 36px; padding-top: 36px; }
.hero__text { align-self: center; }
.hero .h1 { margin-top: 0; }
.hero .lead { margin-top: 22px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin-top: 40px; }
.stats li { padding-right: 24px; margin-right: 24px; border-right: 1px solid var(--line); }
.stats li:last-child { padding: 0; margin: 0; border: 0; }
.stats b { display: block; white-space: nowrap; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stats li > span { display: block; font-size: 14px; line-height: 1.35; opacity: .8; margin-top: 4px; }
.count { display: inline-block; font-variant-numeric: tabular-nums; text-align: left; }
.cue { display: inline-flex; align-items: center; gap: 10px; margin-top: 44px; padding: 10px 16px 10px 14px; border-radius: 999px; background: var(--card); box-shadow: 0 0 0 1px var(--line); font-size: 15px; font-weight: 700; cursor: default; user-select: none; }
.cue__arrow { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green); animation: cue 1.8s var(--ease) infinite; }
.cue__arrow svg { width: 14px; height: 14px; }
@keyframes cue { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }
.hero__photo { align-self: end; justify-self: center; width: min(100%, 440px); padding-bottom: 28px; }
.hero__photo img { margin-inline: auto; }
.hero__photo img { width: 100%; }

/* ---------- Secciones ---------- */
.sec { position: relative; padding-block: var(--pad); background: var(--paper-tex), var(--bg); }
/* Si la que sigue entra con curva, esta deja lugar para la panza de la curva (sin aire de más) */
.sec:has(+ .arc) { padding-bottom: calc(var(--pad) * .7 + var(--ah) * .7); }
.sec__head { max-width: 40em; }
.sec__head .lead { margin-top: 16px; }
.sec--blue { background: var(--paper-tex), var(--blue); color: var(--bg); }
.sec--blue .lead, .sec--blue .kick { color: var(--bg); }
.sec--blue .mark { color: var(--blue); }
.sec--blue .service, .sec--blue .price { color: var(--blue); }
.sec--blue .offer__list li { color: var(--bg); border-bottom-color: rgba(242, 240, 234, .22); }

/* Cortes entre secciones: la de arriba termina en una curva que entra en la de abajo */
.arc {
  margin-top: calc(-1 * var(--ah)); padding-top: calc(var(--pad) + var(--ah));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath d='M0 0Q720 400 1440 0V200H0Z'/%3E%3C/svg%3E") 0 0 / 100% var(--ah) no-repeat, linear-gradient(#000, #000) 0 calc(var(--ah) - 1px) / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath d='M0 0Q720 400 1440 0V200H0Z'/%3E%3C/svg%3E") 0 0 / 100% var(--ah) no-repeat, linear-gradient(#000, #000) 0 calc(var(--ah) - 1px) / 100% 100% no-repeat;
}
/* Primer corte: la banda ondulada. Servicios arranca siguiendo exactamente la curva de la banda */
.cut-band {
  margin-top: var(--pull); padding-top: calc(var(--bh) * .95 + 24px);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 240' preserveAspectRatio='none'%3E%3Cpath d='M-260 170C120 250 420 40 760 110S1320 210 1700 60L1700 300L-260 300Z'/%3E%3C/svg%3E") 50% 0 / var(--bw) var(--bh) no-repeat, linear-gradient(#000, #000) 0 calc(var(--bh) - 1px) / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 240' preserveAspectRatio='none'%3E%3Cpath d='M-260 170C120 250 420 40 760 110S1320 210 1700 60L1700 300L-260 300Z'/%3E%3C/svg%3E") 50% 0 / var(--bw) var(--bh) no-repeat, linear-gradient(#000, #000) 0 calc(var(--bh) - 1px) / 100% 100% no-repeat;
}
.band { position: relative; z-index: 5; height: 0; pointer-events: none; }
.band svg { position: absolute; left: 50%; top: var(--pull); width: var(--bw); height: var(--bh); transform: translateX(-50%); overflow: visible; }
.band__road { fill: none; stroke: var(--green); stroke-width: 92; }
.band__txt { font-family: "Anton", var(--font); font-size: 58px; text-transform: uppercase; fill: var(--blue); letter-spacing: .01em; }

/* Servicios: lista de 4, separada por líneas */
.services { display: grid; gap: 16px; margin-top: 44px; }
.service { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; border-radius: 16px; background: var(--card); }
.service p { color: var(--ink); max-width: 36em; }
.service__price { margin-top: auto; padding-top: 10px; font-size: 15px; color: var(--ink); }
.service__price b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--blue); }
.service .btn { margin-top: 6px; }

/* Recursos */
.res-grid { display: grid; gap: 16px; margin-top: 44px; }
.res-card {
  display: grid; grid-template-rows: auto 1fr auto; gap: 12px; text-align: left; width: 100%;
  padding: 24px; border-radius: 16px; border: 0; background: var(--card); color: var(--blue);
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s;
}
.res-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1.5px var(--blue); }
.res-card__type { justify-self: start; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 6px; background: var(--green); }
.res-card p { color: var(--ink); font-size: 16px; }
.res-card__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.res-card--soon { background: transparent; cursor: default; box-shadow: inset 0 0 0 1.5px var(--line); }
.res-card--soon:hover { transform: none; box-shadow: inset 0 0 0 1.5px var(--line); }
.res-card--soon .res-card__type { background: var(--soft); }
.res-card--soon p { opacity: .8; }

/* Asesoría (resumen en el inicio) */
.offer { display: grid; gap: 36px; margin-top: 44px; }
.offer__list li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); color: var(--ink); }
.offer__list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 20px; height: 20px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102B9C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
.price { padding: 28px; border-radius: 16px; background: var(--card); align-self: start; }
.price__num { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price__note { font-size: 15px; color: var(--ink); opacity: .8; margin-top: 10px; }
.price .btn { width: 100%; margin-top: 22px; }

/* Caso real */
.case { display: grid; gap: 28px; margin-top: 48px; }
.case__nums { display: grid; gap: 16px; align-content: start; }
.case__num { padding: 24px; border-radius: 16px; background: var(--card); }
.case__label { font-size: 15px; font-weight: 700; opacity: .75; }
.case__jump { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 14px; margin-top: 8px; }
.case__before { font-size: 22px; font-weight: 700; opacity: .5; text-decoration: line-through; text-decoration-thickness: 2px; }
.case__after { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.case__pct { font-size: 15px; font-weight: 800; padding: 5px 10px; border-radius: 6px; background: var(--green); }
.case__extra { font-size: 15px; color: var(--ink); margin-top: 10px; }
.case__shot { display: block; text-decoration: none; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 24px 40px -28px rgba(12, 30, 110, .5); background: var(--card); }
.case__shot figcaption { font-size: 14px; padding: 12px 16px; color: var(--ink); opacity: .8; }

/* Historia */
.story { display: grid; gap: 48px; }
.story__text { display: grid; gap: 18px; color: var(--ink); max-width: 34em; font-size: 19px; }
.story__text .h2 { color: var(--blue); margin-bottom: 8px; }
.story__end { font-weight: 700; color: var(--blue); }
/* Polaroids con cinta */
.collage { position: relative; width: 100%; max-width: 440px; height: 440px; margin: 0 auto; }
.pola { position: absolute; width: 52%; margin: 0; padding: 8px 8px 26px; background: var(--field); border-radius: 3px; transform: rotate(var(--r, 0deg)); box-shadow: 0 1px 0 rgba(12, 30, 110, .08), 0 10px 22px -12px rgba(12, 30, 110, .35); }
.pola img, .pola video { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--card); }
.collage__a { --r: -6deg; left: 0; top: 0; }
.collage__b { --r: 5deg; right: 0; top: 40px; z-index: 2; }
.collage__c { --r: 2deg; left: 20%; top: 190px; z-index: 3; width: 46%; }
.tape { position: absolute; z-index: 2; top: -11px; left: 50%; width: 84px; height: 24px; transform: translateX(-50%) rotate(-5deg); opacity: .92; }
.tape--a { background: var(--green); }
.tape--b { background: rgba(16, 43, 156, .85); }
.js .collage:not(.is-in) .pola { opacity: 0; }
.collage.is-in .pola { animation: drop .9s cubic-bezier(.3, 1.35, .5, 1) both; }
.collage.is-in .collage__b { animation-delay: .18s; }
.collage.is-in .collage__c { animation-delay: .36s; }
@keyframes drop { from { opacity: 0; transform: translateY(-200px) rotate(calc(var(--r) * -4)); } to { opacity: 1; transform: rotate(var(--r)); } }
/* Mi tienda: dato + captura */
.mine { display: grid; gap: 24px; align-items: center; margin-top: 72px; }
.mine__num b { display: block; white-space: nowrap; font-size: clamp(48px, 12vw, 64px); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.mine__num > span { display: block; margin-top: 10px; max-width: 14em; font-size: 18px; font-weight: 600; color: var(--ink); }
/* Capturas que se amplían en la misma página */
.shot { position: relative; display: block; width: 100%; padding: 8px; border: 0; border-radius: 12px; background: var(--field); box-shadow: 0 0 0 1px var(--line); cursor: zoom-in; }
.shot img { width: 100%; border-radius: 6px; }
.shot__zoom { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px 9px 11px; border-radius: 99px; background: var(--blue); color: var(--bg); font-size: 13px; font-weight: 700; line-height: 1; }
.shot__zoom svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.shot:hover .shot__zoom { background: var(--ink); }
.zoom { border: 0; padding: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; background: rgba(8, 18, 70, .94); }
.zoom::backdrop { background: rgba(8, 18, 70, .6); }
.zoom__body { width: 100%; height: 100%; overflow: auto; display: flex; align-items: center; }
.zoom__body img { width: auto; max-width: none; min-width: 100%; margin: auto; }
.zoom__close { position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 14px; z-index: 2; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--green); color: var(--blue); font-size: 30px; font-weight: 700; line-height: 1; cursor: pointer; }
/* Caso: tarjetas con barras de antes y después */
.h2--sm { font-size: clamp(28px, 6vw, 40px); }
.res { display: grid; gap: 22px; align-content: start; }
.res__card { position: relative; padding: 26px 24px 24px; border-radius: 18px; }
.res__card--sales { background: var(--blue); color: var(--bg); }
.res__card--money { background: var(--green); color: var(--blue); }
.res__pct { position: absolute; top: -14px; right: 18px; padding: 8px 12px; border-radius: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1; transform: rotate(4deg); }
.res__card--sales .res__pct { background: var(--green); color: var(--blue); }
.res__card--money .res__pct { background: var(--blue); color: var(--bg); transform: rotate(-3deg); }
.res__k { font-size: 16px; font-weight: 700; opacity: .85; }
.res__jump { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; white-space: nowrap; }
.res__before { font-size: clamp(22px, 6vw, 30px); font-weight: 700; opacity: .55; text-decoration-thickness: 3px; }
.res__arrow { font-size: clamp(20px, 5vw, 28px); font-weight: 700; opacity: .7; }
.res__after { font-size: clamp(52px, 13vw, 80px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.bars { display: grid; gap: 8px; margin-top: 18px; }
.bar { display: grid; grid-template-columns: 68px 1fr; align-items: center; gap: 10px; }
.bar__l { font-size: 13px; font-weight: 700; }
.bar__t { display: block; height: 14px; border-radius: 99px; background: rgba(242, 240, 234, .16); overflow: hidden; }
.res__card--money .bar__t { background: rgba(16, 43, 156, .14); }
.bar__t i { display: block; height: 100%; width: calc(var(--w) * 100%); border-radius: inherit; background: currentColor; opacity: .45; transform-origin: left center; transition: transform 1.4s var(--ease) .2s; }
.bar--now .bar__t i { opacity: 1; transition-delay: .45s; }
.res__card--sales .bar--now .bar__t i { background: var(--green); }
.js .res:not(.is-in) .bar__t i { transform: scaleX(0); }
.res__note { margin-top: 16px; font-size: 17px; font-weight: 700; }
.story__text strong { color: var(--blue); }
.story__pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.story__pics figure { border-radius: 12px; overflow: hidden; background: var(--card); }
.story__pics img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.story__pics figcaption { font-size: 13px; font-weight: 700; padding: 8px 10px; }
.case-head { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.case-head .lead { margin-top: 10px; }

/* Contacto */
.contact { text-align: left; }
.contact .lead { margin-top: 18px; }
.end { padding-bottom: 0; }
.hero + .arc { margin-top: 0; }
.contact .btn { margin-top: 30px; }
.end > .foot { margin-top: calc(var(--pad) * .9); border-top: 1px solid rgba(242, 240, 234, .2); }

/* Pie */
.foot { padding-block: 28px 40px; font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
.foot nav { display: flex; gap: 22px; font-weight: 700; }
.foot a { text-decoration: none; }

/* WhatsApp flotante: aparece al bajar de la portada */
.fab { position: fixed; z-index: 90; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--blue); box-shadow: 0 10px 24px -10px rgba(12, 30, 110, .55); transform: translateY(140px); transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.fab.is-on { transform: none; }
.fab svg { width: 28px; height: 28px; fill: currentColor; }

/* ---------- Recurso abierto (panel) ---------- */
.sheet { width: min(100vw, 860px); max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; background: var(--paper-tex), var(--bg); color: var(--blue); }
.sheet::backdrop { background: rgba(8, 18, 70, .55); }
.sheet[open] { animation: sheet-in .35s var(--ease); }
@keyframes sheet-in { from { transform: translateX(40px); opacity: 0; } }
.sheet__bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gut); background: rgba(242, 240, 234, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.sheet__bar p { font-weight: 700; font-size: 15px; }
.sheet__close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); font-size: 24px; line-height: 1; cursor: pointer; }
.sheet__body { padding: 28px var(--gut) 60px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.sheet__body > *, .block, .code { min-width: 0; }
.sheet__body .h2 { font-size: clamp(28px, 6vw, 40px); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--card); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare figure { border-radius: 12px; overflow: hidden; background: var(--card); }
.compare figcaption { font-size: 14px; font-weight: 700; padding: 10px 12px; }
.compare img { aspect-ratio: 720 / 900; object-fit: cover; object-position: top; }
.block { padding: 24px; border-radius: 16px; background: var(--card); }
.block .h3 + * { margin-top: 12px; }
.block ul li { position: relative; padding-left: 18px; margin-top: 8px; color: var(--ink); }
.block ul li::before { content: ""; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.note { font-size: 15px; padding: 14px 16px; border-radius: 10px; background: rgba(142, 224, 168, .35); color: var(--ink); }

/* Puerta: nombre y mail */
.gate { padding: 26px; border-radius: 16px; background: var(--blue); color: var(--bg); }
.gate .h3 { color: var(--bg); }
.gate p { margin-top: 8px; color: rgba(242, 240, 234, .85); }
.gate form { display: grid; gap: 12px; margin-top: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--field); color: var(--blue); font-size: 16px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(16, 43, 156, .15); }
.gate .field input { border-color: transparent; background: var(--bg); }
.gate .btn { margin-top: 4px; }
.err { font-size: 14px; font-weight: 700; color: #FFD7D7; min-height: 1em; }
.code-input { letter-spacing: .5em; font-size: 22px !important; font-weight: 800; text-align: center; }
.small { font-size: 14px; }
.linkbtn { border: 0; background: none; padding: 0; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: inherit; }

/* Bloque de código */
.code { border-radius: 12px; overflow: hidden; background: #0E1B5C; color: #E8ECFF; }
.code__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px; background: #0A154A; }
.code__bar span { font-size: 13px; font-weight: 700; }
.code__copy { border: 0; border-radius: 8px; padding: 9px 14px; background: var(--green); color: var(--blue); font-weight: 800; font-size: 14px; cursor: pointer; }
.code pre { margin: 0; max-height: 320px; overflow: auto; padding: 16px; font: 500 13px/1.55 ui-monospace, "Cascadia Mono", Consolas, monospace; white-space: pre; tab-size: 2; }
.steps-list { counter-reset: s; }
.steps-list li { counter-increment: s; position: relative; padding-left: 30px !important; }
.steps-list li::before { content: counter(s) !important; position: absolute; left: 0 !important; top: 1px !important; width: 22px !important; height: 22px !important; border-radius: 50%; background: var(--blue); color: var(--bg); font-size: 13px; font-weight: 800; display: grid; place-items: center; }

/* ---------- Asesoría ---------- */
.kick a { text-decoration: none; }
.kick a:hover { text-decoration: underline; }
/* Mensajes de clientes como burbujas de chat */
.asks { display: grid; gap: 40px; }
.chats { display: grid; gap: 14px; }
.chats li { position: relative; justify-self: start; max-width: min(84%, 26em); padding: 15px 20px; border-radius: 20px 20px 20px 0; background: var(--card); color: var(--blue); font-size: 18px; font-weight: 600; line-height: 1.4; }
/* La colita del mensaje: sale de la esquina de abajo a la izquierda */
.chats li::before { content: ""; position: absolute; left: -11px; bottom: 0; width: 12px; height: 16px; background: inherit; clip-path: path("M12 0C12 9 8 14 0 16H12Z"); }
.chats li:nth-child(even) { margin-left: clamp(40px, 6vw, 72px); }
/* Qué incluye: el recuadro mide lo mismo que la lista; pasos arriba, precio abajo */
.offer--ase { margin-top: 32px; }
.price--steps { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.wizard { margin-top: 40px; max-width: 640px; padding: 28px; border-radius: 18px; background: var(--card); color: var(--blue); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .6); }
.wizard__top { display: grid; gap: 10px; margin-bottom: 24px; }
.wizard__count { font-size: 14px; font-weight: 700; opacity: .75; }
.wizard__bar { height: 6px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.wizard__bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--blue); transition: width .35s var(--ease); }
.wstep { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 16px; }
.wstep legend { padding: 0; margin-bottom: 16px; }
.choices { display: grid; gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: block; padding: 15px 16px 15px 48px; border-radius: 12px; background: var(--field); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; transition: box-shadow .2s, background .2s; }
.choice span::before { content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--blue); background: var(--field); transition: box-shadow .15s; }
.choice:hover span { background: var(--soft); }
.choice input:checked + span { box-shadow: inset 0 0 0 2px var(--blue); background: rgba(142, 224, 168, .3); }
.choice input:checked + span::before { box-shadow: inset 0 0 0 6px var(--blue); }
.choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.wizard .err { color: #B3261E; margin-top: 14px; }
.wizard__nav { display: flex; gap: 10px; margin-top: 18px; }
.wizard__nav .btn--light { background: var(--blue); color: var(--bg); flex: 1; }
.wizard__nav .btn--light:hover { background: var(--ink); }
.wizard--done { display: grid; gap: 14px; justify-items: start; }
.wizard--done p:not(.h3) { color: var(--ink); }
.wizard--done .btn--light { background: var(--blue); color: var(--bg); }
.ase-hero .stats li:nth-child(2) b { color: var(--blue); }

/* ---------- Tablet ---------- */
@media (min-width: 760px) {
  :root { --gut: 40px; }
  .services { grid-template-columns: 1fr 1fr; gap: 20px; }
  .res-grid { grid-template-columns: repeat(3, 1fr); }
  .offer { grid-template-columns: 1.3fr .7fr; gap: 56px; }
  .story { grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
  .collage { height: 500px; max-width: 500px; }
  .mine { grid-template-columns: .62fr 1.38fr; gap: 40px; }
  .case { grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: center; }
  .res { gap: 30px; }
}

/* ---------- Computadora ---------- */
@media (min-width: 1000px) {
  .top__links { display: flex; }
  .asks { grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
  /* Formulario: título y texto a la izquierda, formulario a la derecha */
  .sol { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
  .sol .sec__head { grid-row: 1 / span 2; padding-top: 12px; }
  .sol .wizard { grid-column: 2; margin-top: 0; max-width: none; }
  .hero .wrap { grid-template-columns: 1.2fr .8fr; gap: 48px; padding-top: 40px; }
  .hero .h1 { font-size: clamp(46px, 4.2vw, 60px); }
  .hero__text { padding-bottom: 56px; }
  /* La foto es más grande que su columna: arranca a la altura del título y el corte del pecho apoya en el borde de la portada */
  .hero__photo { width: 100%; align-self: stretch; display: flex; align-items: flex-end; justify-content: flex-end; padding-bottom: 40px; }
  .hero__photo img { width: min(160%, 700px); max-width: none; flex: none; margin-right: clamp(-60px, calc((1232px - 100vw) / 2), 0px); }
  :root { --pad: 120px; }
  .sheet__body { padding-inline: 48px; }
}

/* Celular chico: los números se apilan de a dos */
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .stats li { padding: 0; margin: 0; border: 0; }
  .lead { font-size: 17px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .compare { grid-template-columns: 1fr 1fr; gap: 8px; }
}
