/* Tipografías propias (SIL OFL), servidas desde el sitio */
@font-face { font-family: "Cabin Sketch"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fuentes/cabin-sketch-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cabin Sketch"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fuentes/cabin-sketch-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fuentes/familjen-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fuentes/familjen-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fuentes/familjen-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fuentes/familjen-grotesk-latin-700-normal.woff2") format("woff2"); }

:root {
  --papel: #efe9df;
  --papel-2: #e6dfd2;
  --tinta: #1d221f;
  --gris: #5f625c;
  --pizarra: #1f2b26;
  --pizarra-2: #2a3832;
  --tiza: #f4f1ea;
  --amarilla: #f2c94c;
  --madera: #9b6a40;
  --linea: #d3cabb;
  --grot: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mano: "Cabin Sketch", "Comic Sans MS", cursive;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--papel); color: var(--tinta); font: 400 18px/1.55 var(--grot); }
/* grano de papel */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .33 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: inherit; }
h1, h2, h3 { font-family: var(--grot); font-weight: 700; letter-spacing: -.02em; line-height: 1; margin: 0; }
.t-tiza { font-family: var(--mano); fill: var(--tiza); }
.amarilla { fill: var(--amarilla); stroke: var(--amarilla); }
.raya { fill: none; stroke: var(--tiza); stroke-width: 3; stroke-linecap: round; }
.raya.amarilla { fill: none; }

/* ------------------------------------------------ barra */
.barra { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 48px); transition: background .25s, box-shadow .25s; }
.barra.con-fondo { background: rgba(239, 233, 223, .94); box-shadow: 0 1px 0 var(--linea); backdrop-filter: saturate(1.2); }
.marca { font-weight: 700; font-size: 24px; letter-spacing: -.03em; text-decoration: none; position: relative; }
.tizita { position: absolute; left: 2px; right: 6px; bottom: -3px; height: 4px; border-radius: 2px; background: var(--amarilla); transform: rotate(-1.5deg); }
.barra nav { display: flex; gap: clamp(14px, 2.4vw, 30px); align-items: center; font-size: 16px; }
.barra nav a { text-decoration: none; }
.barra nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.barra .pedir { background: var(--pizarra); color: var(--tiza); padding: 9px 14px; border-radius: 3px; font-weight: 600; }
.barra .pedir:hover { text-decoration: none; background: #111a16; }

/* ------------------------------------------------ hero */
.hero { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end; gap: 3vw;
  padding: 120px clamp(18px, 4vw, 48px) 0; position: relative; }
.hero-texto { padding-bottom: 12vh; }
.hero h1 { font-size: clamp(52px, 9.2vw, 152px); font-weight: 700; letter-spacing: -.045em; line-height: .9; max-width: 11ch; }
.bajada { font-size: clamp(19px, 1.6vw, 23px); max-width: 34ch; margin: 30px 0 0; color: #2d322e; }
.sin-salto { white-space: nowrap; }
.acciones { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 34px; }
.boton { display: inline-block; font: 600 19px/1 var(--grot); background: var(--pizarra); color: var(--tiza); text-decoration: none;
  padding: 18px 24px 17px; border: 0; border-radius: 3px; cursor: pointer; position: relative; box-shadow: 4px 4px 0 var(--amarilla); transition: transform .15s, box-shadow .15s; }
.boton:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--amarilla); }
.boton:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--amarilla); }
.boton:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--amarilla); outline-offset: 3px; }
.precio-chico { margin: 0; font-size: 17px; color: var(--gris); }
.precio-chico b { color: var(--tinta); }

.caballete { margin: 0; position: relative; align-self: end; display: flex; flex-direction: column; align-items: center; }
.caballete-svg { width: min(100%, 520px); height: auto; display: block; position: relative; z-index: 2; margin-bottom: -2.5%; transform-origin: 50% 100%; }
.vereda { position: absolute; left: -40vw; right: -6vw; bottom: 0; height: 20%; z-index: 1;
  transform: perspective(500px) rotateX(58deg); transform-origin: 50% 100%; opacity: .9; }
.tiza-mano { opacity: 0; }
.escribiendo .tiza-mano { opacity: 1; }

/* ------------------------------------------------ rubros */
.rubros { height: 420vh; position: relative; background: var(--papel-2); }
.rubros-pegado { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4vw;
  align-items: center; padding: 90px clamp(18px, 4vw, 48px) 40px; overflow: hidden; }
.rubros h2 { font-size: clamp(34px, 4.4vw, 68px); max-width: 15ch; }
.rubros h2 span { display: block; color: #6b6f68; }
.rubros-cabeza p { max-width: 38ch; color: var(--gris); margin: 22px 0 28px; }
.rubros-indice { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: clamp(22px, 2vw, 30px); font-weight: 600; }
.rubros-indice li { color: #a29a8d; transition: color .3s, transform .3s; cursor: pointer; width: fit-content; }
.rubros-indice li.activo { color: var(--tinta); transform: translateX(10px); }
.rubros-indice li.activo::before { content: "→ "; color: var(--madera); }
.rubros-escena { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0; }
.mini-pizarra { width: 100%; max-width: 520px; height: auto; transform: rotate(-2.5deg); filter: drop-shadow(10px 14px 0 rgba(29,34,31,.12)); }
.telefono { width: 230px; margin-left: -60px; position: relative; z-index: 2; transform: rotate(3deg); }
.telefono-pantalla { height: 440px; border: 9px solid #161a18; border-radius: 30px; background: #fff; overflow: hidden; position: relative;
  box-shadow: 12px 16px 0 rgba(29,34,31,.14); }
.ilustrativo { font-size: 12.5px; color: var(--gris); margin: 12px 0 0; text-align: center; transform: rotate(-3deg); }

/* mini sitios de ejemplo (dentro del teléfono) */
.mini { height: 100%; display: flex; flex-direction: column; font-family: var(--grot); animation: entra .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes entra { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
.mini header { padding: 16px 16px 10px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.mini header b { font-size: 14px; letter-spacing: -.01em; }
.mini .cuerpo { padding: 6px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.mini .gran { font-size: 30px; line-height: .95; font-weight: 700; letter-spacing: -.03em; margin: 6px 0 2px; }
.mini .dato { font-size: 12px; line-height: 1.4; }
.mini .wa { margin-top: auto; display: block; text-align: center; padding: 11px; font-weight: 600; font-size: 13px; border-radius: 4px; background: #1f7a4d; color: #fff; }
.mini .bloque { border-radius: 4px; height: 88px; display: flex; align-items: flex-end; padding: 8px; font-size: 11px; }
.mini .filas { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 12px; }
.mini.panaderia { background: #f7eddc; color: #3b2414; }
.mini.panaderia .bloque { background: repeating-linear-gradient(135deg, #e7c99b 0 10px, #eed6ae 10px 20px); color: #6b4423; }
.mini.peluqueria { background: #111; color: #f3f0ea; }
.mini.peluqueria .gran { font-size: 34px; text-transform: lowercase; }
.mini.peluqueria .bloque { background: #e9e4da; color: #111; }
.mini.ferreteria { background: #fff7cf; color: #1b1b1b; }
.mini.ferreteria header { background: #1b1b1b; color: #ffd400; }
.mini.ferreteria .gran { text-transform: uppercase; font-size: 27px; }
.mini.veterinaria { background: #eef4f1; color: #10352a; }
.mini.veterinaria .bloque { background: #cfe3da; color: #10352a; }

/* ------------------------------------------------ precio */
.precio { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 5vw; align-items: center; padding: 16vh clamp(18px, 4vw, 48px); }
.lista { background: var(--pizarra); color: var(--tiza); padding: clamp(26px, 4vw, 56px); border: 16px solid var(--madera); border-radius: 6px;
  box-shadow: 14px 16px 0 rgba(29,34,31,.12); transform: rotate(-.6deg); }
.lista-titulo { font-family: var(--mano); font-weight: 700; font-size: clamp(38px, 4vw, 60px); letter-spacing: 0; color: var(--tiza); margin-bottom: 22px; filter: url(#tiza); }
.renglones { list-style: none; margin: 0; padding: 0; font-family: var(--mano); font-size: clamp(19px, 1.8vw, 27px); }
.renglones li { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; filter: url(#tiza); }
.renglones i { flex: 1; border-bottom: 3px dotted rgba(244,241,234,.45); transform: translateY(-5px); min-width: 20px; }
.renglones b { color: var(--amarilla); font-weight: 700; white-space: nowrap; }
.renglones li.cero b { font-size: 1.15em; }
.total { font-family: var(--mano); margin: 22px 0 0; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; filter: url(#tiza); font-size: clamp(20px, 2vw, 28px); }
.total strong { font-size: clamp(54px, 6vw, 92px); line-height: 1; color: var(--amarilla); }
.precio-letra p { font-size: clamp(19px, 1.5vw, 22px); max-width: 30ch; }
.precio-letra .chico { font-size: 15px; color: var(--gris); }
/* animación de la lista: cada «incluido» se escribe */
.js .renglones b { clip-path: inset(0 100% 0 0); }
.js .renglones li.visto b { animation: escribir .7s steps(9, end) forwards; animation-delay: calc(var(--n) * 120ms); }
@keyframes escribir { to { clip-path: inset(0 0 0 0); } }

/* ------------------------------------------------ cómo funciona */
.como { position: relative; padding: 14vh clamp(18px, 4vw, 48px) 18vh; max-width: 1180px; margin: 0 auto; }
.como h2 { font-size: clamp(40px, 5.4vw, 84px); margin-bottom: 8vh; }
.camino { position: absolute; left: 50%; top: 26vh; bottom: 14vh; width: 120px; height: calc(100% - 40vh); transform: translateX(-50%); overflow: visible; }
.camino path { fill: none; stroke: var(--madera); stroke-width: 3; stroke-dasharray: 9 11; vector-effect: non-scaling-stroke; }
.paso { position: relative; width: min(46%, 500px); margin-bottom: 12vh; }
.paso.der { margin-left: auto; }
.paso .num { font-family: var(--mano); font-weight: 700; font-size: 110px; line-height: .8; color: var(--madera); display: block; margin-bottom: 8px; }
.paso h3 { font-size: clamp(26px, 2.6vw, 38px); margin-bottom: 12px; }
.paso p { margin: 0; color: #3a3f3a; }

/* ------------------------------------------------ preguntas */
.preguntas { max-width: 900px; margin: 0 auto; padding: 4vh clamp(18px, 4vw, 48px) 14vh; }
.preguntas h2 { font-size: clamp(36px, 4.4vw, 64px); margin-bottom: 4vh; }
details { border-top: 1px solid var(--linea); }
details:last-of-type { border-bottom: 1px solid var(--linea); }
summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-size: clamp(19px, 1.6vw, 23px); font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font: 700 34px/1 var(--mano); color: var(--madera); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 24px; max-width: 62ch; color: #3a3f3a; }

/* ------------------------------------------------ formulario */
.quiero { padding: 8vh clamp(18px, 4vw, 48px) 14vh; display: flex; justify-content: center; }
.pizarra-form { width: min(100%, 820px); background: var(--pizarra); color: var(--tiza); border: 18px solid var(--madera); border-radius: 6px;
  padding: clamp(24px, 4vw, 52px); box-shadow: 14px 16px 0 rgba(29,34,31,.12); }
.pizarra-form h2 { font-family: var(--mano); font-size: clamp(40px, 5vw, 70px); letter-spacing: 0; filter: url(#tiza); }
.pizarra-form .sub { margin: 10px 0 28px; color: #c9cec8; }
form label { display: block; font-size: 15px; color: #d7dbd5; margin-bottom: 18px; }
form label small { color: #9aa39c; }
form input, form textarea { display: block; width: 100%; margin-top: 6px; background: transparent; border: 0; border-bottom: 2px solid rgba(244,241,234,.45);
  color: var(--tiza); font: 400 24px/1.3 var(--mano); padding: 6px 2px 8px; border-radius: 0; }
form textarea { resize: vertical; border: 2px solid rgba(244,241,234,.3); padding: 10px; }
form input::placeholder, form textarea::placeholder { color: rgba(244,241,234,.32); }
form input:focus, form textarea:focus { outline: none; border-color: var(--amarilla); }
form input[aria-invalid="true"] { border-color: #ff9a8a; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.trampa { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.boton.claro { background: var(--amarilla); color: var(--pizarra); box-shadow: 4px 4px 0 var(--tiza); margin-top: 8px; }
.boton.claro:hover { box-shadow: 6px 6px 0 var(--tiza); }
.boton[disabled] { opacity: .6; cursor: wait; }
.estado { min-height: 1.5em; margin: 16px 0 0; color: #ffb7a8; }
.privacidad { font-size: 13px; color: #9aa39c; margin: 6px 0 0; }
#turnstile:empty { display: none; }
#turnstile { margin: 8px 0 14px; }
.anotado svg { width: min(100%, 420px); height: auto; }
.anotado p { font-size: 20px; max-width: 34ch; }

/* ------------------------------------------------ pie */
.pie { padding: 50px clamp(18px, 4vw, 48px) 60px; border-top: 1px solid var(--linea); display: flex; gap: 10px 32px; flex-wrap: wrap; align-items: baseline; color: var(--gris); font-size: 15px; }
.pie .marca { color: var(--tinta); font-size: 22px; margin: 0; }
.pie p { margin: 0; }

/* ------------------------------------------------ teléfono / tablet */
@media (max-width: 900px) {
  body { font-size: 17px; }
  .barra nav a:not(.pedir) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 100px; gap: 10px; }
  .hero-texto { padding-bottom: 20px; }
  .hero h1 { font-size: clamp(46px, 13.5vw, 84px); }
  .caballete-svg { width: min(86%, 400px); }
  .rubros { height: auto; }
  .rubros-pegado { position: relative; height: auto; grid-template-columns: 1fr; padding-top: 70px; padding-bottom: 70px; }
  .rubros-indice { flex-direction: row; flex-wrap: wrap; gap: 8px 16px; font-size: 19px; }
  .rubros-indice li.activo { transform: none; }
  .rubros-indice li.activo::before { content: ""; }
  .rubros-indice li.activo { text-decoration: underline 3px var(--amarilla); text-underline-offset: 5px; }
  .rubros-escena { grid-template-columns: 1fr; justify-items: center; }
  .telefono { margin: -40px 0 0; width: 210px; }
  .telefono-pantalla { height: 400px; }
  .precio { grid-template-columns: 1fr; padding-top: 10vh; padding-bottom: 8vh; }
  .lista { border-width: 12px; }
  .renglones { font-size: 19px; }
  .renglones li { gap: 8px; }
  .renglones i { min-width: 12px; }
  .camino { display: none; }
  .paso, .paso.der { width: 100%; margin-left: 0; margin-bottom: 7vh; }
  .paso .num { font-size: 80px; }
  .dos { grid-template-columns: 1fr; }
  .pizarra-form { border-width: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .renglones b { clip-path: none; }
}
