/* =========================================================
   Lumvo Digital — estilos
   Cada sección es un "capítulo" con su propio color plano.
   Colores y tamaños: todo sale de las variables de :root.
   ========================================================= */

/* Albert Sans (Google Fonts, licencia OFL), guardada en fonts/: un solo archivo con todos los pesos */
@font-face {
  font-family: "Albert Sans"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/albert-sans.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Colores de la marca */
  --ink: #22262b;        /* grafito: inicio y presupuesto */
  --ink-2: #32373d;      /* un paso más claro que el grafito */
  --paper: #e9e8e4;      /* papel: Cómo trabajo y franjas de preguntas */
  --sky: #a7bccc;        /* celeste grisáceo: ticket, Preguntas, botón flotante */
  --khaki: #b7b28b;      /* oliva claro: Pedidos y pie */
  --stone: #cbc6be;      /* piedra: Servicios */
  --stone-2: #b9b3aa;    /* un paso más oscuro que la piedra */
  --petrol: #3e6a6d;     /* petróleo: Trabajos */
  --petrol-2: #335a5d;   /* un paso más oscuro que el petróleo */
  --wine: #5a3b40;       /* vino: Contacto */
  --wine-2: #6b4a4f;     /* campos del formulario */
  --wine-3: #7c5a5f;     /* foco en los campos */
  --soft: #4d4d4d;       /* texto secundario sobre colores claros */

  /* Tipografía: una sola familia, cinco tamaños */
  --font: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --s-small: 0.875rem;
  --s-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --s-lead: clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem);
  --s-head: clamp(2.25rem, 1.3rem + 3.6vw, 4.5rem);
  --s-display: clamp(3.75rem, 1rem + 10vw, 10rem);

  /* Espacios */
  --m: clamp(16px, 2.4vw, 36px);     /* margen lateral único */
  --gap: clamp(12px, 1.6vw, 24px);
  --sec: clamp(96px, 11vw, 176px);   /* aire entre secciones */

  /* Movimiento */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Scroll suave con Lenis (app.js): él hace el deslizamiento, así que el del navegador se apaga */
html.lenis { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--s-body);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; line-height: 1; text-wrap: balance; }
p { text-wrap: pretty; }
section { scroll-margin-top: 0; position: relative; }
:root { --focus: var(--ink); }
.hero, .work, .budget, .contact, .foot { --focus: var(--paper); }
.folder.front, .ticket, .extra { --focus: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
/* los botones flotantes pasan sobre todos los colores: anillo doble */
.float:focus-visible, .totop:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 7px var(--paper); } /* taste-skill-ignore: anillo de foco */
::selection { background: var(--ink); color: var(--paper); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* Grilla de 12 columnas con el mismo margen en todo el sitio */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding-inline: var(--m);
}

/* Botón principal: relleno plano, totalmente redondo */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px;
  border: 0; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: var(--s-body); font-weight: 500; text-decoration: none; letter-spacing: -0.005em;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.btn:hover { background: #3a3b3f; }
.btn:active { transform: scale(0.97); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Botón chico con borde (Trabajos, y base de los demás): toma el color del texto de la sección */
.link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  border: 1.5px solid currentColor; color: inherit;
  font-size: var(--s-body); font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.link::after { content: "\2192"; display: inline-block; transition: transform var(--t-hover) var(--ease-out); }
.link:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
.link:hover::after { transform: translateX(4px); }
.link:active { transform: scale(0.96); }
/* Relleno: las acciones principales (Escribime, Armá tu presupuesto) */
.link-lleno { border-color: transparent; background: var(--paper); color: var(--ink); }
.link-lleno:hover { background: #fff; }
.hero .link-lleno { background: var(--sky); }
.hero .link-lleno:hover { background: #bccbd7; }
.necesita .link-lleno { background: var(--ink); color: var(--paper); }
.necesita .link-lleno:hover { background: #3a3b3f; }
/* con el ícono de WhatsApp en vez de la flecha */
.link-wa::after { content: none; }
.link-wa svg { width: 18px; height: 18px; flex: none; }

/* =========================================================
   1. Inicio: pila de carpetas
   ========================================================= */
.hero {
  background: var(--ink);
  color: var(--paper);
  min-height: max(100svh, 760px);
  overflow: hidden;
  isolation: isolate;
}
.top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px var(--m) 0;
}
.top-left { font-size: var(--s-small); }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark svg { width: 24px; height: 28px; }
.mark span { font-size: 26px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.top .link { justify-self: end; font-size: var(--s-small); }

.hero-text { text-align: center; padding: clamp(40px, 6.5vh, 76px) var(--m) 0; }
.hero h1 {
  font-size: var(--s-display);
  line-height: 0.92;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.hero h1 .w { display: inline-block; }
.hero .sub {
  max-width: 46ch; margin: clamp(18px, 2.6vh, 28px) auto 0;
  font-size: var(--s-body); color: var(--paper);
}

/* Las carpetas */
.folders { position: absolute; left: 0; right: 0; top: 51%; bottom: 0; z-index: 1; }
.folder {
  --c: var(--petrol);
  position: absolute; left: 7%; right: 7%;
  top: calc(var(--i) * 64px); height: 100svh;
  background: var(--c); color: var(--t, var(--ink));
  display: block; text-decoration: none;
  transition: transform 420ms var(--ease-out);
}
.folder .tab {
  position: absolute; bottom: calc(100% - 1px); left: var(--x);
  height: 40px; padding: 0 36px;
  display: flex; align-items: center;
  background: var(--c);
  font-size: var(--s-body); font-weight: 500; white-space: nowrap;
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 100%, 0 100%);
  text-decoration: none;
}
a.folder:hover, a.folder:focus-visible { transform: translateY(-12px); }
a.folder:focus-visible { outline-offset: -6px; }
.folder.front { height: auto; bottom: -100vh; }
.front-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px;
  padding: 32px;
}
.front-inner p { font-size: var(--s-body); max-width: 40ch; }

/* =========================================================
   2. Trabajos: índice con vista previa
   ========================================================= */
.work { background: var(--petrol); color: var(--paper); padding: var(--sec) 0 var(--sec); }
.work-head {
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
  padding-inline: var(--m); margin-top: clamp(32px, 4vw, 56px);
}
.work-intro { max-width: 46ch; }

/* Collage: tres filas de capturas desparramadas que corren sin parar (ni con el mouse encima) */
.work { padding-top: clamp(40px, 5vw, 72px); }
.work-top {
  --k: 1;                                   /* tamaño de las capturas (más chicas en el celular) */
  position: relative; overflow: hidden;
  height: clamp(460px, 52vw, 700px);
  display: grid; place-items: center;
}
.collage { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-evenly; }
.cl-pista { display: flex; align-items: center; width: max-content; }
.cl-foto {
  flex: none; width: calc(var(--w) * var(--k)); margin-right: calc(var(--g) * var(--k));
  transform: translateY(calc(var(--y) * var(--k))) rotate(var(--r));
  border-radius: 12px; overflow: hidden; background: var(--petrol-2);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}
.cl-foto img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
/* el collage entero se oscurece (así el título gigante se lee) y los bordes se funden con el petróleo */
.work-top::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to right, var(--petrol) 0, rgba(62, 106, 109, 0) 9%, rgba(62, 106, 109, 0) 91%, var(--petrol) 100%),
    linear-gradient(rgba(34, 38, 43, 0.55), rgba(34, 38, 43, 0.55));
}
.collage-titulo {
  position: relative; z-index: 2; text-align: center;
  font-size: clamp(5rem, 17vw, 17rem); letter-spacing: -0.06em; line-height: 0.9;
  color: var(--paper);
  text-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}
.t-sub {
  display: block; margin-bottom: 0.3em;
  font-size: clamp(0.75rem, 0.6rem + 0.5vw, 1.125rem); font-weight: 600; letter-spacing: 0.3em; line-height: 1.3;
  text-transform: uppercase; color: var(--sky); text-shadow: none;
}
@media (prefers-reduced-motion: no-preference) {
  .cl-pista { animation: cl-corre var(--dur) linear infinite; will-change: transform; }
  .cl-pista.al-reves { animation-direction: reverse; }
}
@keyframes cl-corre { to { transform: translateX(-50%); } }
@media (max-width: 720px) {
  .work-top { --k: 0.6; height: 400px; }
  .collage-titulo { font-size: 21vw; }
  .t-sub { letter-spacing: 0.22em; }
}

.index { margin-top: clamp(48px, 6vw, 88px); align-items: start; }
.index-list { grid-column: 1 / span 7; }
.row {
  display: grid; grid-template-columns: 1fr; gap: 10px;
  padding: 26px 0 30px;
  cursor: default;
  transition: opacity var(--t-hover) ease;
}
.row h3 { font-size: var(--s-head); }
.row p { max-width: 52ch; }
.ver-sitio { color: inherit; text-decoration: none; }
.ver-flecha { display: inline-block; margin-left: 0.25em; font-size: 0.7em; vertical-align: 0.2em; transition: transform var(--t-hover) var(--ease-out); }
.ver-sitio:hover .ver-flecha, .row:hover .ver-flecha { transform: translate(3px, -3px); }
.ver-sitio:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.row .meta.ver-link { display: inline-block; margin-top: 10px; color: inherit; font-weight: 600; text-underline-offset: 4px; }
.row .meta { font-size: var(--s-small); font-weight: 500; color: var(--soft); }
.row:focus-visible { outline-offset: 6px; }
.row:focus-visible h3 { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
@media (hover: hover) and (pointer: fine) {
  .index-list:hover .row:not(:hover) { opacity: 0.35; }
}
.frame {
  grid-column: 8 / span 5;
  position: sticky; top: 8vh;
  aspect-ratio: 5 / 4.4;
  background: var(--petrol-2);
  overflow: hidden;
}
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity var(--t-ui) ease; }
.slide.on { opacity: 1; }
.slide .desk { position: absolute; left: 7%; top: 8%; width: 78%; }
.slide .phone { position: absolute; right: 6%; bottom: 7%; width: 27%; border-radius: 14px; }
.slide .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide figcaption, .inline-shot figcaption { font-size: var(--s-small); }
.slide figcaption { position: absolute; left: 7%; bottom: 6%; max-width: 54%; background: var(--petrol); color: var(--paper); padding: 8px 12px; }
.inline-shot { display: none; }

/* =========================================================
   3. Todo lo que tu página necesita: tarjetas de servicios
   ========================================================= */
.necesita { background: var(--khaki); padding: var(--sec) 0; }
.necesita .grid { align-items: end; }
.necesita-head { grid-column: 1 / span 8; }
.necesita h2 { font-size: var(--s-head); max-width: 16ch; }
.necesita-head p { margin-top: 20px; max-width: 50ch; }
.necesita-link { grid-column: 9 / -1; justify-self: end; }
.extras { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: clamp(40px, 5vw, 64px); }
.extra {
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px 26px 26px; border-radius: 22px;
  background: var(--paper); color: var(--ink);
  transition: transform 300ms var(--ease-out), background-color var(--t-hover) ease;
}
.extra-ico { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--ink); color: var(--khaki); margin-bottom: 6px; transition: transform 400ms var(--ease-out); }
.extra-ico svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.extra h3 { font-size: var(--s-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.extra p { color: var(--soft); flex: 1; }
.extra-tag { align-self: flex-start; margin-top: 6px; padding: 4px 11px; border-radius: 999px; background: var(--khaki); color: var(--ink); font-size: 0.8125rem; font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .extra:hover { transform: translateY(-6px); background: #f3f2ee; }
  .extra:hover .extra-ico { transform: rotate(-8deg) scale(1.06); }
}

/* =========================================================
   4. Servicios: título fijo, filas que pasan
   ========================================================= */
.services { background: var(--stone); padding: var(--sec) 0; }
.services-head { grid-column: 1 / span 5; align-self: start; position: sticky; top: 32px; }
.services-head h2 { font-size: var(--s-head); }
.services-head p { margin-top: 20px; max-width: 34ch; }
.services-list { grid-column: 7 / -1; display: grid; gap: clamp(48px, 4.5vw, 72px); }
.svc h3 { font-size: var(--s-lead); letter-spacing: -0.02em; margin-bottom: 22px; }
.svc-row { display: grid; grid-template-columns: clamp(150px, 12vw, 180px) 1fr; gap: 28px; align-items: stretch; }
.svc.flip .svc-row { grid-template-columns: 1fr clamp(150px, 12vw, 180px); }
.svc.flip .svc-row figure { order: 2; }
/* Ícono de cada servicio: se mueve al pasar el mouse (app.js le pone .on; en el celular, al aparecer en pantalla) */
.svc-ico {
  display: grid; place-items: center; margin: 7px 0; min-height: 190px;
  border-radius: 24px; background: var(--c); color: var(--t);
  overflow: hidden; cursor: default;
}
.svc-ico svg {
  width: 82%; max-width: 160px; height: auto; overflow: visible;
  fill: none; stroke: currentColor; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round;
}
.svc-ico .f { fill: currentColor; stroke: none; }
.svc-ico .a { fill: var(--a); stroke: none; }
.svc-ico .tilde { stroke: var(--c); stroke-width: 4.5; fill: none; }
.svc-ico .tapa { fill: var(--c); }   /* tapa lo que queda detrás (la llave sobre el engranaje) */
.svc-ico .m { transform-box: fill-box; transform-origin: center; transition: transform 600ms var(--ease-out) var(--d, 0ms), opacity 400ms ease var(--d, 0ms); }
/* 1. Diseño: los bloques se arman de a uno y el cursor elige */
.svc-ico .bl { transform-origin: left center; }
.svc-ico.on .bl { animation: ico-arma 700ms var(--ease-out) var(--d, 0ms) both; }
.svc-ico.on .cur { transform: translate(-12px, -14px); }
/* 2. Desarrollo: los signos se abren y la barra gira */
.svc-ico.on .izq { transform: translateX(-8px); }
.svc-ico.on .der { transform: translateX(8px); }
.svc-ico.on .bar { transform: rotate(16deg) scale(1.08); }
.svc-ico .cursor { opacity: 0.35; }
.svc-ico.on .cursor { animation: ico-titila 700ms steps(1) 3; opacity: 1; }
/* 3. Catálogo: el producto cae en la bolsa y sale el mensaje de WhatsApp */
.svc-ico .prod { opacity: 0; transform: translateY(-14px); }
.svc-ico.on .prod { opacity: 1; transform: translateY(40px) scale(0.85); }
.svc-ico.on .bolsa { animation: ico-rebota 500ms var(--ease-out) 380ms; }
.svc-ico .globo { transform-origin: left bottom; transform: scale(0.6); opacity: 0.4; }
.svc-ico.on .globo { transform: none; opacity: 1; transition-delay: 600ms; }
/* 4. Tienda: la tarjeta se inclina y aparece el pago aprobado */
.svc-ico.on .tarjeta { transform: translate(-6px, -10px) rotate(-10deg); }
.svc-ico .ok { transform: scale(0.5); opacity: 0; }
.svc-ico.on .ok { transform: none; opacity: 1; transition-delay: 220ms; transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
/* 5. Mantenimiento: el engranaje gira y la llave ajusta */
.svc-ico .engranaje { transition-duration: 1100ms; }
.svc-ico.on .engranaje { transform: rotate(120deg); }
.svc-ico .llave { transform-origin: 15% 85%; }
.svc-ico.on .llave { animation: ico-ajusta 900ms ease-in-out; }
@keyframes ico-arma { from { transform: scaleX(0); } }
@keyframes ico-titila { 50% { opacity: 0; } }
@keyframes ico-rebota { 40% { transform: scale(1.06, 0.92); } 70% { transform: scale(0.98, 1.03); } }
@keyframes ico-ajusta { 30% { transform: rotate(-22deg); } 60% { transform: rotate(8deg); } }
@media (prefers-reduced-motion: reduce) {
  .svc-ico .m { transition-duration: 0ms !important; }
  .svc-ico.on .m { animation: none !important; }
}
.svc li { padding: 7px 0; }

/* =========================================================
   5. Presupuesto: el ticket
   ========================================================= */
.budget { background: var(--ink); color: var(--paper); padding: var(--sec) 0; }
.budget-head { padding-inline: var(--m); display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); align-items: end; }
.budget-head h2 { grid-column: 1 / span 8; font-size: var(--s-display); letter-spacing: -0.05em; line-height: 0.9; }
.budget-head p { grid-column: 9 / -1; max-width: 36ch; }

.plans { display: flex; flex-wrap: wrap; gap: 10px; padding-inline: var(--m); margin-top: clamp(40px, 5vw, 72px); }
.plan {
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--ink-2); color: var(--paper);
  font-size: var(--s-body); font-weight: 500;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.plan:hover { background: #333; }
.plan:active { transform: scale(0.96); }
.plan[aria-pressed="true"] { background: var(--sky); color: var(--ink); }
.plan { display: inline-flex; align-items: center; gap: 10px; }
.plan-p { font-size: var(--s-small); font-weight: 500; opacity: 0.75; }
.plan-p s, .chat-plan s { opacity: 0.6; font-weight: 400; }
.t-antes { display: block; margin-bottom: 6px; font-size: var(--s-lead); font-weight: 500; letter-spacing: 0; opacity: 0.55; }
.plan-alt { background: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; padding-inline: 14px; }
.plan-alt:hover { background: none; text-underline-offset: 8px; }
.plan-alt[aria-pressed="true"] { background: var(--sky); text-decoration: none; padding-inline: 24px; }

.ticket-wrap { padding-inline: var(--m); margin-top: 28px; }
.ticket {
  position: relative;
  width: min(100%, 1180px);
  display: grid; grid-template-columns: 7fr 3fr;
  background: var(--sky); color: var(--ink);
  min-height: clamp(380px, 30vw, 500px);
}
.t-main { padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; gap: 18px; }
.t-main h3 { font-size: var(--s-head); }
.t-for { max-width: 44ch; }
.t-items { margin-top: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; }
.t-items li { padding-left: 22px; position: relative; }
.t-items li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.t-items li.extra::before { background: var(--petrol); }
.t-stub { padding: clamp(28px, 3vw, 44px) clamp(20px, 2vw, 32px); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; text-align: center; }
.t-price { font-size: var(--s-head); font-weight: 600; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
.t-price .cur { font-size: var(--s-lead); font-weight: 600; letter-spacing: 0; vertical-align: 0.9em; margin-right: 0.2em; }
.t-note { font-size: var(--s-small); margin-top: 10px; }
.t-plus { font-size: var(--s-small); font-weight: 600; margin-top: 4px; min-height: 1.5em; }
.t-price.chico { font-size: var(--s-lead); white-space: normal; letter-spacing: -0.02em; line-height: 1.15; }
.t-calma { font-size: var(--s-small); line-height: 1.45; margin-top: -6px; }
.t-stub .btn { width: 100%; padding: 0 16px; }
/* muescas y perforado */
.notch { position: absolute; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); left: 70%; transform: translateX(-50%); }
.notch.a { top: -14px; } .notch.b { bottom: -14px; }
.perf { position: absolute; left: 70%; top: 26px; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; justify-content: space-between; }
.perf i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); display: block; }
.ticket .swapme { transition: opacity 200ms ease, transform 300ms var(--ease-out); }
.ticket.changing .swapme { opacity: 0; transform: translateY(8px); }

.maint {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-inline: var(--m); margin-top: 28px;
}
.switch { display: inline-flex; align-items: center; gap: 14px; cursor: pointer; font-weight: 500; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 56px; height: 32px; border-radius: 999px; background: var(--ink-2); position: relative; transition: background-color var(--t-hover) ease; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); transition: transform var(--t-ui) var(--ease-out); }
.switch input:checked + .track { background: var(--sky); }
.switch input:checked + .track::after { transform: translateX(24px); }
.maint.off .switch { opacity: 0.45; cursor: not-allowed; }
.switch input:focus-visible + .track { outline: 3px solid var(--sky); outline-offset: 3px; }
.maint p { max-width: 60ch; font-size: var(--s-body); }

/* Promo (solo en las fechas de PROMO, app.js): franja de arriba y sello del ticket.
   --promo: amarillo de Black Friday, solo para la promo (contrasta con el grafito del inicio) */
:root { --promo: #ffd84d; }
.promo-bar {
  display: flex; align-items: stretch;
  background: var(--promo); color: var(--ink);
  --focus: var(--ink);
  position: relative; z-index: 3;
}
.promo-cinta { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; color: inherit; text-decoration: none; padding-block: 12px; }
.promo-pista { display: flex; flex: none; width: max-content; }
.promo-vuelta { display: flex; align-items: center; flex: none; }
.promo-vuelta > span, .promo-vuelta > b { white-space: nowrap; font-size: 0.9375rem; font-weight: 600; }
.promo-sep { flex: none; width: 7px; height: 7px; margin-inline: 22px; background: var(--ink); transform: rotate(45deg); }
.promo-vuelta > .promo-bf {
  margin-right: 18px; padding: 4px 14px 5px; border-radius: 6px;
  background-color: var(--ink); color: var(--promo);
  font-size: 1.125rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.1;
}
.promo-vuelta > .promo-off { font-weight: 800; font-size: 1.0625rem; text-transform: uppercase; letter-spacing: 0.02em; }
.promo-link {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 0 clamp(16px, 2vw, 28px);
  background: var(--ink); color: var(--promo);
  font-size: var(--s-small); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.promo-link::after { content: "\2192"; display: inline-block; transition: transform var(--t-hover) var(--ease-out); }
.promo-link:hover::after { transform: translateX(4px); }
.promo-corto { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .promo-bar { animation: promo-baja 600ms var(--ease-out) 200ms both; }
  .promo-pista { animation: promo-corre 38s linear infinite; }
  .promo-bar:hover .promo-pista { animation-play-state: paused; }
  /* un brillo que pasa por la etiqueta cada tanto */
  .promo-bf { background-image: linear-gradient(105deg, transparent 40%, rgba(255, 216, 77, 0.45) 50%, transparent 60%); background-size: 250% 100%; background-repeat: no-repeat; animation: promo-brillo 3.2s ease-in-out infinite; }
  .promo-link::after { animation: promo-empuja 1.6s ease-in-out infinite; }
}
@keyframes promo-baja { from { transform: translateY(-100%); opacity: 0; } }
@keyframes promo-corre { to { transform: translateX(-50%); } }
@keyframes promo-brillo { 0%, 55% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
@keyframes promo-empuja { 0%, 100% { transform: none; } 50% { transform: translateX(4px); } }
/* las carpetas se ubican contra la pantalla: con la franja arriba, que bajen junto con el inicio */
.con-promo .hero { position: relative; }
@media (max-width: 720px) {
  .promo-cinta { padding-block: 10px; }
  .promo-vuelta > span { font-size: 0.875rem; }
  .promo-sep { margin-inline: 16px; }
  .promo-vuelta > .promo-bf { font-size: 1rem; margin-right: 14px; }
  .promo-largo { display: none; }
  .promo-corto { display: inline; }
  .promo-link { padding-inline: 14px; font-size: 0.8125rem; }
  .con-promo .hero-text { padding-top: 40px; }
}

/* % de descuento en los botones de los planes, el ticket y el chat */
.plan-off, .chat-off {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: var(--promo); color: var(--ink);
  font-size: 0.8125rem; font-weight: 800; line-height: 1.3;
}
.t-antes-fila { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.t-antes-fila .t-antes { margin: 0; }
.t-off {
  display: inline-block; padding: 5px 12px 6px; border-radius: 999px;
  background: var(--ink); color: var(--promo);
  font-size: var(--s-lead); font-weight: 800; letter-spacing: 0; line-height: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .t-off { animation: promo-late 2.4s ease-in-out infinite; }
}
@keyframes promo-late { 0%, 70%, 100% { transform: none; } 80% { transform: scale(1.08) rotate(-2deg); } 90% { transform: scale(1); } }

.t-promo { margin-top: -6px; }
.t-promo-btn, .t-promo-ok {
  display: block; width: 100%; padding: 9px 14px; border-radius: 14px;
  font: inherit; font-size: var(--s-small); font-weight: 600; line-height: 1.3;
}
.t-promo small { display: block; margin-bottom: 2px; font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; }
.t-stub .t-promo { max-width: 420px; margin-inline: auto; width: 100%; }
.t-promo-btn { border: 2px dashed var(--ink); background: none; color: var(--ink); cursor: pointer; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.t-promo-btn:hover { background: rgba(34, 38, 43, 0.08); }
.t-promo-btn:active { transform: scale(0.97); }
.t-promo-ok { background: var(--ink); color: var(--paper); }
.promo-cond { flex-basis: 100%; margin-top: -4px; font-size: var(--s-small) !important; opacity: 0.75; }

/* =========================================================
   6. Proceso: placas que crecen
   ========================================================= */
.process { background: var(--paper); padding: var(--sec) 0; }
.steps { align-items: end; row-gap: 0; }
.process h2 { grid-column: 1 / span 5; grid-row: 1; align-self: start; font-size: var(--s-head); }
.step { grid-row: 1 / span 2; display: flex; flex-direction: column; }
.step:nth-of-type(1) { grid-column: 1 / span 2; grid-row: 2; }
.step:nth-of-type(2) { grid-column: 3 / span 3; grid-row: 2; }
.step:nth-of-type(3) { grid-column: 6 / span 3; }
.step:nth-of-type(4) { grid-column: 9 / span 4; }
.tile { position: relative; overflow: hidden; background: var(--c); }
.step:nth-of-type(1) .tile { height: 30vh; min-height: 220px; }
.step:nth-of-type(2) .tile { height: 40vh; min-height: 280px; }
.step:nth-of-type(3) .tile { height: 52vh; min-height: 360px; }
.step:nth-of-type(4) .tile { height: 64vh; min-height: 440px; }
.step h3 { font-size: var(--s-lead); letter-spacing: -0.02em; margin-top: 18px; }
.step p { margin-top: 6px; max-width: 34ch; }
.process .steps h2 { margin-bottom: 40px; }

/* chat dibujado */
.chat { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 14px; font-size: var(--s-small); line-height: 1.35; }
.chat span { max-width: 92%; padding: 9px 12px; background: var(--paper); border-radius: 14px 14px 14px 4px; }
.chat span.me { align-self: flex-end; background: var(--ink); color: var(--paper); border-radius: 14px 14px 4px 14px; }
.tile .shot-phone { position: absolute; left: 50%; top: 50%; height: 84%; width: auto; max-width: 80%; transform: translate(-50%, -50%); border-radius: 12px; }
.tile .shot-desk { position: absolute; left: 50%; top: 50%; width: 86%; transform: translate(-50%, -50%); }
.tile .shot-desk2 { position: absolute; left: 7%; top: 9%; width: 80%; }
.tile .shot-phone2 { position: absolute; right: 7%; bottom: 7%; width: 30%; border-radius: 12px; }

/* Qué incluye el mantenimiento (dentro de Presupuesto) */
.mant { padding-inline: var(--m); margin-top: clamp(56px, 6vw, 88px); }
.mant-title { font-size: var(--s-lead); letter-spacing: -0.02em; }
/* Botón que abre y cierra el detalle del mantenimiento */
.mant-toggle {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 0 14px 0 26px; border: 0; border-radius: 999px;
  background: var(--ink-2); color: var(--paper);
  font-size: var(--s-lead); font-weight: 600; letter-spacing: -0.02em; text-align: left;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.mant-toggle:hover { background: #3a3f46; }
.mant-toggle:active { transform: scale(0.98); }
.mant-toggle svg { width: 36px; height: 36px; padding: 7px; border-radius: 50%; background: var(--sky); color: var(--ink); flex: none; transition: transform 320ms var(--ease-out); }
.mant-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.js .mant-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 420ms var(--ease-out); }
.js .mant-panel.open { grid-template-rows: 1fr; }
.mant-inner { overflow: hidden; min-height: 0; }
/* cerrado: el contenido queda oculto del todo (se oculta al terminar de cerrarse) */
.js .mant-panel:not(.open) .mant-inner { visibility: hidden; transition: visibility 0s 420ms; }
@media (prefers-reduced-motion: reduce) { .js .mant-panel, .mant-toggle svg { transition: none; } }
.mant-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 24px; max-width: 1180px; }
.mant-col {
  background: var(--ink-2); color: var(--paper);
  padding: clamp(24px, 2.6vw, 40px);
  transition: background-color 300ms ease, color 300ms ease;
}
.mant-col.on { background: var(--sky); color: var(--ink); }
.mant-col h4 { font-size: var(--s-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.mant-col h4 span { display: block; font-size: var(--s-body); font-weight: 500; letter-spacing: 0; margin-top: 8px; }
.mant-for { font-size: var(--s-small); margin-top: 6px; }
.mant-col h5 { font-size: var(--s-body); font-weight: 600; margin-top: 26px; }
.mant-col li { padding: 5px 0 5px 20px; position: relative; font-size: var(--s-body); }
.mant-col li::before { content: ""; position: absolute; left: 0; top: 0.9em; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.mant-col .aparte li::before { background: none; box-shadow: inset 0 0 0 2px currentColor; } /* taste-skill-ignore: punto vacío, no es sombra */

/* =========================================================
   A medida: texto a la izquierda y un editor de código que se escribe solo
   ========================================================= */
.medida { background: var(--stone); padding: var(--sec) 0; overflow: hidden; }
.medida .grid { align-items: center; row-gap: 48px; }
.medida-text { grid-column: 1 / span 6; }
.medida-pill { display: inline-block; padding: 7px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.medida h2 { font-size: var(--s-head); margin-top: 22px; max-width: 14ch; }
.medida h2 em { font-style: normal; color: var(--petrol); display: block; }
.medida-lead { font-size: var(--s-lead); line-height: 1.35; letter-spacing: -0.01em; margin-top: 24px; max-width: 34ch; }
.medida-list { margin-top: 28px; max-width: 52ch; }
.medida-list li { position: relative; padding: 9px 0 9px 36px; }
.medida-list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3.2 3.2L17 9' fill='none' stroke='%23e9e8e4' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.medida-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.medida-chips li { padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--ink); font-size: var(--s-small); font-weight: 500; }

/* El editor (dibujo, no es código de verdad) */
.editor {
  grid-column: 7 / -1; margin-right: calc(var(--m) * -1 - 2vw);
  border-radius: 18px 0 0 18px; overflow: hidden;
  background: #1b1e22; color: #d6d4cf;
  box-shadow: 0 30px 70px rgba(34, 38, 43, 0.35);
  font: 400 clamp(0.75rem, 0.6rem + 0.35vw, 0.9375rem) / 1.75 ui-monospace, "Cascadia Code", Consolas, monospace;
}
.ed-barra { display: flex; align-items: center; gap: 8px; padding: 13px 18px; background: var(--ink); color: #9a9891; font-size: 0.8125rem; }
.ed-barra i { width: 12px; height: 12px; border-radius: 50%; background: #e0685b; }
.ed-barra i:nth-child(2) { background: #e2b54a; }
.ed-barra i:nth-child(3) { background: #6dbb6a; }
.ed-barra span { margin-left: auto; margin-right: auto; padding-right: 60px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-tabs { display: flex; background: #202428; border-bottom: 1px solid #2c3036; font-size: 0.8125rem; }
.ed-tabs span { display: flex; align-items: center; gap: 8px; padding: 9px 16px; color: #8d8b85; }
.ed-tabs span.on { background: #1b1e22; color: #e9e8e4; }
.ed-tabs b { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 3px; font-size: 0.5625rem; font-weight: 700; color: #1b1e22; }
.ed-html { background: #e4774b; }
.ed-js { background: #e2c24a; }
.ed-codigo { margin: 0; padding: 18px 18px 22px 0; counter-reset: linea; overflow: hidden; white-space: pre; }
.ed-codigo .l { display: block; counter-increment: linea; }
.ed-codigo .l::before { content: counter(linea); display: inline-block; width: 3.2em; padding-right: 1.2em; text-align: right; color: #5a5e64; }
.ed-codigo .c { color: #7f8f8c; font-style: italic; }
.ed-codigo .t { color: #e48a6e; }
.ed-codigo .a { color: #a7bccc; }
.ed-codigo .s { color: #c9c38f; }
.ed-codigo .v { color: #e9e8e4; }
.ed-codigo .f { color: #8fc6c2; }
.ed-cursor { display: inline-block; width: 0.55em; height: 1.15em; margin-left: 2px; vertical-align: -0.2em; background: #a7bccc; }
/* las líneas aparecen de a una cuando el editor entra en pantalla, como si se escribieran */
@media (prefers-reduced-motion: no-preference) {
  .js .editor .l { opacity: 0; transform: translateX(-8px); }
  .js .editor.in .l { animation: ed-linea 320ms var(--ease-out) forwards; }
  .js .editor.in .l:nth-child(1) { animation-delay: 250ms; } .js .editor.in .l:nth-child(2) { animation-delay: 380ms; }
  .js .editor.in .l:nth-child(3) { animation-delay: 510ms; } .js .editor.in .l:nth-child(4) { animation-delay: 640ms; }
  .js .editor.in .l:nth-child(5) { animation-delay: 770ms; } .js .editor.in .l:nth-child(6) { animation-delay: 900ms; }
  .js .editor.in .l:nth-child(7) { animation-delay: 1030ms; } .js .editor.in .l:nth-child(8) { animation-delay: 1160ms; }
  .js .editor.in .l:nth-child(9) { animation-delay: 1290ms; } .js .editor.in .l:nth-child(10) { animation-delay: 1420ms; }
  .js .editor.in .l:nth-child(11) { animation-delay: 1550ms; } .js .editor.in .l:nth-child(12) { animation-delay: 1680ms; }
  .js .editor.in .l:nth-child(13) { animation-delay: 1810ms; } .js .editor.in .l:nth-child(14) { animation-delay: 1940ms; }
  .js .editor.in .l:nth-child(15) { animation-delay: 2070ms; } .js .editor.in .l:nth-child(16) { animation-delay: 2200ms; }
  .ed-cursor { animation: ed-titila 1s steps(1) infinite; }
}
@keyframes ed-linea { to { opacity: 1; transform: none; } }
@keyframes ed-titila { 50% { opacity: 0; } }

/* =========================================================
   7. Preguntas: una franja por pregunta
   ========================================================= */
.faq-title { background: var(--sky); color: var(--ink); min-height: 40svh; display: flex; align-items: flex-end; padding: 64px var(--m) clamp(28px, 3vw, 44px); }
.faq-title h2 { font-size: var(--s-display); letter-spacing: -0.05em; line-height: 0.9; }
.band { padding-block: 56px; background: var(--paper); }
.band:nth-child(even) { background: var(--stone); }
.band h3 { grid-column: 1 / span 5; font-size: var(--s-lead); letter-spacing: -0.02em; line-height: 1.15; }
.band p { grid-column: 7 / -1; max-width: 58ch; }

/* =========================================================
   8. Contacto: tira de fotos y barra de tres celdas
   ========================================================= */
.contact { background: var(--wine); color: var(--paper); min-height: 80svh; padding: 48px 0 var(--sec); overflow: hidden; }
.strip { overflow: hidden; }
.strip-track { display: flex; gap: 8px; width: max-content; }
.strip img { height: 150px; width: auto; object-fit: cover; flex: none; }
.strip .r34 { aspect-ratio: 3/4; } .strip .r11 { aspect-ratio: 1/1; } .strip .r32 { aspect-ratio: 3/2; }
.contact h2 { font-size: var(--s-head); padding-inline: var(--m); margin-top: 72px; }
.contact-lead { padding-inline: var(--m); margin-top: 18px; max-width: calc(52ch + 2 * var(--m)); }
.cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-inline: var(--m); margin-top: 40px; }
.cell { position: relative; }
.cell input {
  width: 100%; height: 96px; border: 0; border-radius: 0;
  background: var(--wine-2); color: var(--paper);
  text-align: left; padding: 0 28px; font-size: var(--s-lead); font-weight: 500;
  transition: background-color var(--t-hover) ease;
}
.cell input::placeholder { color: var(--paper); opacity: 0.85; }
.cell input:focus { background: var(--wine-3); outline: none; }
.cell input:focus-visible { outline: 3px solid var(--paper); outline-offset: -3px; }
.cell input[aria-invalid="true"] { background: #6b2a2a; }
.send {
  width: 100%; height: 96px; border: 0;
  background: var(--paper); color: var(--ink);
  font-size: var(--s-lead); font-weight: 600; letter-spacing: -0.02em;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.send:hover { background: #fff; }
.send:active { transform: scale(0.985); }
.send svg { width: 26px; height: 26px; }
.fine { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-inline: var(--m); margin-top: 12px; font-size: var(--s-small); }
.cell .err { position: absolute; left: 0; top: 100%; margin-top: 12px; font-size: var(--s-small); color: #ffd9cf; font-weight: 600; }
.fine > span:first-child { grid-column: 2; }
.fine .plan-note { grid-column: 3; }

/* =========================================================
   9. Pie: marca, columnas de links y datos legales
   ========================================================= */
.foot { background: var(--ink); color: var(--paper); padding: clamp(56px, 7vw, 96px) var(--m) 28px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.foot-marca .mark { font-size: 1.5rem; }
.foot-marca p { margin-top: 18px; max-width: 30ch; font-size: var(--s-small); color: rgba(233, 232, 228, 0.7); }
.foot-redes { display: flex; gap: 10px; margin-top: 24px; }
.red {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid rgba(233, 232, 228, 0.22); color: var(--paper);
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.red[hidden] { display: none; }
.red svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.red:first-child svg { fill: currentColor; stroke: none; }
.red:hover { background: var(--sky); color: var(--ink); border-color: var(--sky); }
.red:active { transform: scale(0.94); }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: var(--s-small); }
.foot-col h2 { font-size: var(--s-body); font-weight: 600; margin-bottom: 10px; }
.foot-col a, .foot-col span { padding: 5px 0; color: rgba(233, 232, 228, 0.72); text-decoration: none; transition: color var(--t-hover) ease, transform var(--t-hover) var(--ease-out); }
.foot-col a:hover { color: var(--paper); transform: translateX(3px); }
.foot-col a[hidden] { display: none; }
.foot-arriba { margin-top: 10px; color: var(--sky) !important; }
.foot-meta {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 24px;
  margin-top: clamp(48px, 6vw, 80px); padding-top: 22px; border-top: 1px solid rgba(233, 232, 228, 0.16);
  font-size: var(--s-small); color: rgba(233, 232, 228, 0.6);
}
.foot-meta a { color: inherit; text-underline-offset: 4px; }
.foot-meta summary { cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.foot-meta details { flex-basis: 100%; }
.foot-meta details:not([open]) { flex-basis: auto; }
.credits { font-size: var(--s-small); max-width: 90ch; margin-top: 14px; }
.credits a { text-underline-offset: 3px; }
@media (max-width: 1000px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-marca { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .foot-col a, .foot-col span, .foot-meta a, .foot-meta summary { min-height: 40px; display: inline-flex; align-items: center; }
}

/* Botón flotante de WhatsApp */
.float {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--sky); color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28); /* taste-skill-ignore: botón que flota sobre la página */
  opacity: 0; transform: translateY(16px) scale(0.9); pointer-events: none;
  transition: opacity var(--t-ui) ease, transform var(--t-ui) var(--ease-out);
}
.float.show { opacity: 1; transform: none; pointer-events: auto; }
/* En Netlify aparece el cartel "Powered by Netlify" en la misma esquina: el botón sube arriba de él */
body:has(#nl-badge-frame) .float { bottom: 88px; }
/* Botón para volver arriba: chico, a la izquierda del de WhatsApp (arriba de él va Lumi) */
.totop {
  position: fixed; right: 96px; bottom: 26px; z-index: 50;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink-2); color: var(--paper);
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); /* taste-skill-ignore: botón que flota sobre la página */
  opacity: 0; transform: translateY(12px) scale(0.9); pointer-events: none;
  transition: opacity var(--t-ui) ease, transform var(--t-ui) var(--ease-out), background-color var(--t-hover) ease;
}
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: #454b53; }
.totop:active { transform: scale(0.92); }
.totop svg { width: 20px; height: 20px; }
body:has(#nl-badge-frame) .totop { bottom: 96px; }
.float:active { transform: scale(0.94); }
.float svg { width: 28px; height: 28px; }

/* ---------- Chat con Lumi (chat.js) ---------- */
/* Lumi: el logo con ojos. El cuerpo toma el color del texto; ojos y boca, el del papel */
.lumi { display: block; fill: currentColor; overflow: visible; }
.lumi-ojos circle { fill: var(--paper); }
.lumi-ojos .lumi-pupila { fill: currentColor; }
.lumi-boca { fill: none; stroke: var(--paper); stroke-width: 15; stroke-linecap: round; }
.lumi-ojos, .lumi-abajo { transform-box: fill-box; transform-origin: center; }

/* Sola, en la esquina; cuando aparece el botón de WhatsApp se sube arriba de él */
.chat-lanzador {
  position: fixed; right: 18px; bottom: 18px; z-index: 51;
  width: 60px; height: 60px; padding: 11px 12px 12px; border: 0; border-radius: 50%;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28); /* taste-skill-ignore: botón que flota sobre la página */
  transition: bottom var(--t-ui) var(--ease-out), transform var(--t-hover) var(--ease-out), opacity var(--t-ui) ease;
}
.float.show ~ .chat-lanzador { bottom: 92px; }
body:has(#nl-badge-frame) .chat-lanzador { bottom: 88px; }
body:has(#nl-badge-frame) .float.show ~ .chat-lanzador { bottom: 162px; }
.chat-lanzador:hover { transform: scale(1.06); }
.chat-lanzador:active { transform: scale(0.94); }
.chat-lanzador:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 7px var(--paper); } /* taste-skill-ignore: anillo de foco */
.chat-lanzador.oculto, .chat-lanzador.en-demo { opacity: 0; transform: scale(0.6); pointer-events: none; }
.chat-lanzador-img { width: 100%; height: 100%; }
.chat-lanzador-ia {
  position: absolute; right: -3px; bottom: 0;
  padding: 3px 6px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-size: 10px; font-weight: 600; line-height: 1; letter-spacing: 0.04em; box-shadow: 0 0 0 2px var(--paper);
}

.chat-globo {
  position: fixed; right: 92px; bottom: 26px; z-index: 51;
  display: flex; align-items: flex-start; gap: 2px;
  max-width: 240px; padding: 11px 8px 11px 14px; border-radius: 14px 14px 4px 14px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); /* taste-skill-ignore: globo que flota sobre la página */
  transition: bottom var(--t-ui) var(--ease-out);
}
.float.show ~ .chat-globo { bottom: 100px; }
body:has(#nl-badge-frame) .chat-globo { bottom: 96px; }
body:has(#nl-badge-frame) .float.show ~ .chat-globo { bottom: 170px; }
.chat-globo-texto { border: 0; background: none; padding: 0; text-align: left; font-size: 15px; font-weight: 500; line-height: 1.4; }
.chat-globo-texto strong { font-weight: 600; }
.chat-globo-cerrar { flex-shrink: 0; width: 24px; height: 24px; border: 0; border-radius: 50%; background: none; color: var(--soft); font-size: 18px; line-height: 1; }
.chat-globo-cerrar:hover { background: var(--stone); color: var(--ink); }

.chat-panel {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  width: 390px; height: min(640px, calc(100vh - 36px)); height: min(640px, calc(100dvh - 36px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); color: var(--ink); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); /* taste-skill-ignore: ventana que flota sobre la página */
  opacity: 0; transform: translateY(14px) scale(0.98); transform-origin: bottom right;
  transition: opacity 200ms ease, transform 220ms var(--ease-out);
}
.chat-panel.abierto { opacity: 1; transform: none; }
.chat-cabecera { display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 14px; background: var(--ink); color: var(--paper); }
.chat-cabecera-cara { width: 44px; height: 44px; flex-shrink: 0; padding: 8px 9px 9px; border-radius: 50%; background: var(--sky); color: var(--ink); }
.chat-cabecera-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-cabecera-txt strong { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.chat-cabecera-txt span { font-size: 13px; color: var(--sky); margin-top: 2px; }
.chat-cabecera button { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--sky); }
.chat-cabecera button:hover { background: var(--ink-2); color: var(--paper); }
.chat-cabecera button:focus-visible { outline: 2px solid var(--paper); outline-offset: -2px; }
.chat-cabecera button svg { width: 19px; height: 19px; }

.chat-mensajes { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.chat-fila { display: flex; align-items: flex-end; gap: 8px; }
.chat-fila.es-visitante { justify-content: flex-end; }
.chat-mini { width: 30px; height: 30px; flex-shrink: 0; padding: 5px 6px 6px; border-radius: 50%; background: var(--sky); color: var(--ink); }
.chat-burbuja { max-width: 84%; padding: 10px 13px; border-radius: 16px 16px 16px 4px; background: #f6f5f2; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.es-visitante .chat-burbuja { background: var(--ink); color: var(--paper); border-radius: 16px 16px 4px 16px; }
.chat-burbuja p + p { margin-top: 6px; }
.chat-burbuja strong { font-weight: 600; }
.es-lumi.es-error .chat-burbuja { box-shadow: inset 0 0 0 1px var(--stone-2); }

.chat-plan { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: var(--sky); }
.chat-plan:last-child { margin-bottom: 0; }
.chat-plan-txt { display: flex; flex-direction: column; }
.chat-plan-txt strong { font-size: 16px; }
.chat-plan-txt span { font-size: 13px; color: var(--soft); }
.chat-plan button { padding: 7px 12px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 500; }
.chat-plan button:hover { background: var(--ink-2); }

.chat-wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 14px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500; text-decoration: none; }
.chat-wa:hover { background: var(--ink-2); }
.chat-wa svg { width: 18px; height: 18px; }

.chat-sugerencias { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 38px; }
.chat-sugerencias button { padding: 7px 12px; border: 1px solid var(--stone-2); border-radius: 999px; background: none; font-size: 14px; line-height: 1.2; text-align: left; }
.chat-sugerencias button:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.chat-puntos { display: inline-flex; gap: 4px; padding: 5px 2px; }
.chat-puntos i { width: 7px; height: 7px; border-radius: 50%; background: var(--soft); }

.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 4px; border-top: 1px solid var(--stone); }
.chat-form textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 10px 14px; border: 1px solid var(--stone-2); border-radius: 22px; background: #f6f5f2; color: var(--ink); font: 400 16px/1.4 var(--font); resize: none; }
.chat-form textarea:focus { outline: none; border-color: var(--ink); }
.chat-enviar { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--ink); color: var(--paper); transition: transform var(--t-press) ease; }
.chat-enviar:hover { background: var(--ink-2); }
.chat-enviar:active { transform: scale(0.94); }
.chat-enviar svg { width: 20px; height: 20px; }
.chat-form.ocupado .chat-enviar { opacity: 0.5; pointer-events: none; }
.chat-aviso { padding: 2px 14px 10px; color: var(--soft); font-size: 12px; text-align: center; }
/* Casilla anti-robots (Turnstile): solo se ve si Cloudflare pide un clic */
.chat-verif { display: flex; justify-content: center; padding-top: 6px; }
.chat-verif[hidden] { display: none; }
.chat-aviso a { text-underline-offset: 2px; }

@media (max-width: 560px) {
  .chat-globo { max-width: calc(100vw - 120px); }
  .chat-panel { inset: 0; width: 100%; height: 100%; border-radius: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  html.chat-abierto { overflow: hidden; }
}
@media (prefers-reduced-motion: no-preference) {
  /* parpadea cada tanto, y mientras piensa las dos piezas se separan un poquito */
  .lumi-ojos { animation: lumi-parpadeo 5s infinite; }
  .pensando .lumi-abajo { animation: lumi-piensa 0.9s var(--ease-io) infinite; }
  .chat-globo:not([hidden]) { animation: chat-aparece 350ms var(--ease-out); }
  .chat-fila:last-child { animation: chat-aparece 250ms ease; }   /* solo el mensaje nuevo (el chat se vuelve a dibujar entero) */
  .chat-puntos i { animation: chat-punto 1.1s ease-in-out infinite; }
  .chat-puntos i:nth-child(2) { animation-delay: 0.15s; }
  .chat-puntos i:nth-child(3) { animation-delay: 0.3s; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-lanzador, .chat-globo, .chat-panel { transition: none; }
}
@keyframes lumi-parpadeo { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes lumi-piensa { 0%, 100% { transform: none; } 50% { transform: translate(8%, 10%); } }
@keyframes chat-aparece { from { opacity: 0; transform: translateY(8px) scale(0.96); } }
@keyframes chat-punto { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* =========================================================
   Movimiento (solo si el visitante no pidió menos movimiento)
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js .r { opacity: 0; transform: translateY(26px); transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); transition-delay: var(--d, 0ms); }
  .js .r.in { opacity: 1; transform: none; }

  .js .hero h1 .w { transform: translateY(105%); animation: rise 1000ms var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
  .js .hero h1 { overflow: hidden; padding-bottom: 0.08em; }
  .js .hero .sub, .js .top { opacity: 0; animation: fade 900ms ease forwards 350ms; }
  .js .folder { transform: translateY(110%); animation: slide 1100ms var(--ease-out) forwards; animation-delay: calc(450ms + var(--i) * 90ms); }
  .js a.folder.done:hover, .js a.folder.done:focus-visible { transform: translateY(-12px); }
  .js .folder.done { animation: none; transform: none; }

  .strip-track { animation: drift 70s linear infinite; }
  .strip:hover .strip-track { animation-play-state: paused; }
  .slide .desk, .slide .photo { transition: transform 1200ms var(--ease-out); transform: scale(1.04); }
  .slide.on .desk, .slide.on .photo { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .r { opacity: 0; transition: opacity 400ms ease; }
  .js .r.in { opacity: 1; }
  .strip { overflow-x: auto; }
}
@keyframes rise { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes slide { to { transform: none; } }
@keyframes drift { to { transform: translateX(-50%); } }

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1000px) {
  .ticket { grid-template-columns: 1fr; }
  .t-stub { padding-top: 72px; }
  .notch { left: auto; top: auto; bottom: auto; transform: none; }
  .notch.a { left: -14px; top: var(--cut); transform: translateY(-50%); }
  .notch.b { right: -14px; left: auto; top: var(--cut); transform: translateY(-50%); }
  .perf { left: 26px; right: 26px; top: var(--cut); bottom: auto; transform: translateY(-50%); flex-direction: row; }
  .t-stub .btn, .t-calma { max-width: 420px; margin-inline: auto; }
  .index-list { grid-column: 1 / -1; }
  .frame { display: none; }
  .inline-shot { display: block; position: relative; aspect-ratio: 5 / 4; background: var(--petrol-2); overflow: hidden; margin-bottom: 8px; }
  .inline-shot .desk { position: absolute; left: 6%; top: 8%; width: 80%; }
  .inline-shot .phone { position: absolute; right: 6%; bottom: 7%; width: 26%; border-radius: 12px; }
  .inline-shot .photo { width: 100%; height: 100%; object-fit: cover; }
  .row { padding: 22px 0 40px; }

  .necesita-head, .necesita-link, .medida-text { grid-column: 1 / -1; }
  .necesita-link { justify-self: start; }
  .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor { grid-column: 1 / -1; margin-right: calc(var(--m) * -1); }

  .services-head { grid-column: 1 / -1; position: static; }
  .services-head h2 { font-size: var(--s-head); }
  .services-head p { display: none; }
  .services-intro { display: block !important; grid-column: 1 / -1; margin: 8px 0 48px; max-width: 46ch; }
  .services-list { grid-column: 1 / -1; }

  .budget-head h2, .budget-head p { grid-column: 1 / -1; }
  .budget-head p { margin-top: 24px; }

  .band h3 { grid-column: 1 / -1; margin-bottom: 14px; }
  .band p { grid-column: 1 / -1; }

  .solo-mouse { display: none; }
  .mant-cols { grid-template-columns: 1fr; }
}
.services-intro { display: none; }

/* =========================================================
   Celular
   ========================================================= */
@media (max-width: 720px) {
  /* En el celular, los mismos cinco tamaños, más chicos */
  :root {
    --s-small: 0.875rem;
    --s-body: 1.0625rem;
    --s-lead: 1.25rem;
    --s-head: 2.125rem;
    --s-display: 15vw;
  }
  .top { grid-template-columns: 1fr auto; }
  .top-left { display: none; }
  .mark { justify-self: start; }
  .top .link { font-size: var(--s-small); min-height: 42px; padding: 0 16px; }
  .hero { min-height: max(100svh, 700px); }
  .hero-text { padding-top: 64px; }
  .hero h1 { white-space: normal; line-height: 0.9; }
  .hero h1 .w { display: block; }
  .folders { top: max(50%, 400px); }
  .folder { left: 0; right: 0; top: calc(var(--i) * 52px); }
  .folder .tab { height: 32px; padding: 0 24px; left: var(--xm); clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 100%, 0 100%); }
  .front-inner { padding: 22px var(--m); }
  .front-inner .btn { width: 100%; }
  .front-inner p { font-size: var(--s-small); }

  .work-head { flex-direction: column; align-items: flex-start; gap: 14px; }

  .extras { grid-template-columns: 1fr; }
  .extra { padding: 24px 22px 22px; }

  .svc-row, .svc.flip .svc-row { grid-template-columns: 1fr; }
  .svc.flip .svc-row figure { order: 0; }
  .svc-ico { aspect-ratio: 16 / 9; min-height: 0; margin: 0 0 8px; }
  .svc-ico svg { width: auto; height: 66%; }
  .services-head h2 { font-size: var(--s-head); }

  .plan { min-height: 46px; padding: 0 18px; }

  .process h2 { grid-column: 1 / -1; margin-bottom: 28px; }
  .steps { display: flex; flex-direction: column; gap: 28px; }
  .step .tile { width: 100%; }
  .step:nth-of-type(1) .tile { height: 44vw; min-height: 180px; }
  .step:nth-of-type(2) .tile { height: 62vw; min-height: 0; }
  .step:nth-of-type(3) .tile { height: 78vw; min-height: 0; }
  .step:nth-of-type(4) .tile { height: 96vw; min-height: 0; }
  .chat { font-size: var(--s-small); }

  .faq-title { min-height: 30svh; }
  .band { padding-block: 32px; }

  .strip img { height: 110px; }
  .contact h2 { margin-top: 48px; }
  .cells { grid-template-columns: 1fr; }
  .cell input, .send { height: 64px; font-size: var(--s-lead); }
  .fine { grid-template-columns: 1fr; margin-top: 8px; }
  .fine > span:first-child, .fine .plan-note { grid-column: auto; }
  .cell .err { position: static; display: block; margin-top: 8px; }
  .cell .err:empty { display: none; }
  .cell input { padding: 0 20px; }

  .top .link, .work-head .link, .necesita-link { display: inline-flex; align-items: center; min-height: 44px; }
  .mark { min-height: 44px; }
}

/* Celulares de Trabajos: el sitio real se desplaza solo */
.scroller { aspect-ratio: 390 / 844; overflow: hidden; background: #fff; }
.scroller img { width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .scroller img { animation: recorrer 16s var(--ease-io) infinite alternate; }
}
@keyframes recorrer { 0%, 12% { transform: none; } 88%, 100% { transform: translateY(var(--end)); } }
/* Lo que se mueve solo (collage, celulares de Trabajos, tira de fotos) se frena cuando no está en pantalla
   (app.js le pone .pausa), así no le saca fuerza a lo que sí se está viendo; de los celulares grandes, solo el elegido */
.pausa, .pausa *, .slide:not(.on) .scroller img { animation-play-state: paused !important; }
@media (max-width: 720px) {
  .plan-alt:not([aria-pressed="true"]) { padding-inline: 2px; }
}

/* Tablet: proceso en 2 × 2 (en una fila las placas quedaban angostas) y lista del ticket en una columna en celular */
@media (min-width: 721px) and (max-width: 1000px) {
  .process h2 { grid-column: 1 / -1; grid-row: auto; margin-bottom: 40px; }
  .steps { row-gap: 48px; align-items: start; }
  .steps .step:nth-of-type(n) { grid-column: span 6; grid-row: auto; }
  .steps .step:nth-of-type(n) .tile { height: 44vw; min-height: 0; }
}
@media (max-width: 720px) {
  .t-items { grid-template-columns: 1fr; }
}
