/* Arcilla Studio, v3
   Concepto: un taller de cerámica española. Una sola pieza de arcilla que se moldea con el
   scroll, y piezas de barro y de esmalte (ceramica.js) en lugar de iconos planos.
   Color: porcelana, tinta, el cobalto de la loza de Talavera como único acento, y el barro
   solo en las piezas. Letra: Source Serif 4 para lo que se lee despacio; Schibsted Grotesk
   para todo lo demás. Ver estudio/10-linea-de-diseno.md. */

/* La serifa lleva tamaño óptico: fina y contrastada en grande, más robusta en pequeño (el navegador
   lo ajusta solo). Los archivos están recortados a los pesos que usamos: 400 a 600; la cursiva, 400 a 500. */
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-latin-normal.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-latin-italic.woff2") format("woff2"); font-weight: 400 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted-grotesk-latin-normal.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --papel: #f3f3ef;      /* porcelana: el fondo */
  --hoja: #fdfdfb;       /* loza blanca: las superficies */
  --tinta: #171a21;
  --tinta-2: #585d68;
  --linea: #dcdcd5;
  --acento: #1f3f97;         /* cobalto de Talavera: el único acento de la interfaz */
  --acento-oscuro: #17307a;
  --acento-suave: #e5e9f4;
  --acento-tinta: #ffffff;
  --porcelana: #f3f1ea;
  /* Solo para las piezas de cerámica (torno.js las lee de aquí) */
  --ladrillo: #b8593a;
  --ladrillo-2: #7e3a24;
  --barro: #cfa080;
  --barro-2: #a9775a;
  --esmalte: #24479f;        /* cobalto: el esmalte de la vasija y los detalles de las piezas */
  --fuego: #e2874e;
  --sombra: 0 1px 2px rgba(23, 26, 33, 0.05), 0 22px 44px -28px rgba(23, 26, 33, 0.32);

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: var(--sans);

  --t-xs: 0.8125rem;
  --t-s: 0.9375rem;
  --t-m: 1.0625rem;
  --t-l: 1.3125rem;
  --t-xl: clamp(2.1rem, 1.3rem + 2.8vw, 3.6rem);
  --t-xxl: clamp(2.6rem, 1.4rem + 4.6vw, 5.2rem);

  color-scheme: light;
  --ancho: 1200px;
  --radio: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; hanging-punctuation: first last; }
body { margin: 0; background: var(--papel); color: var(--tinta); font-family: var(--sans); font-size: var(--t-m); line-height: 1.6; font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--acento); color: var(--acento-tinta); }
img { max-width: 100%; display: block; }
a { color: var(--acento); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: var(--t-xxl); }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-l); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
em { font-style: italic; }
.acento { color: inherit; }
/* Rótulo pequeño: solo donde aclara algo que el título no dice. */
.etiqueta { font-family: var(--sans); font-size: var(--t-s); font-weight: 500; letter-spacing: 0; color: var(--tinta-2); }
.wrap { max-width: var(--ancho); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.saltar { position: absolute; left: -999px; top: 0; background: var(--acento); color: var(--acento-tinta); padding: 8px 12px; }
.saltar:focus { left: 16px; }
/* Botones: azulejo esmaltado, con un canto oscuro abajo que se hunde al pulsar. */
.boton { font: inherit; font-weight: 600; cursor: pointer; background: var(--acento); color: #fff; border: 0; border-radius: 12px; padding: 13px 20px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.22), 0 1px 2px rgba(23, 26, 33, 0.12); transition: background-color .15s ease, transform .1s ease, box-shadow .1s ease; }
.boton:hover { background: var(--acento-oscuro); text-decoration: none; }
.boton:active { transform: translateY(1px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.22); }
.boton:disabled { opacity: .5; cursor: default; }
.boton-sec { font: inherit; font-weight: 600; cursor: pointer; background: transparent; color: var(--tinta); border: 1px solid var(--tinta); border-radius: 12px; padding: 12px 19px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.tel { font-weight: 500; color: var(--tinta); text-decoration: none; user-select: all; font-variant-numeric: tabular-nums; }

/* Cabecera */
.cabecera { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--papel) 88%, transparent); backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); border-bottom: 1px solid transparent; transition: border-color .2s; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--papel); }
.cabecera.con-sombra { border-bottom-color: var(--linea); }
.cabecera .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.marca { display: inline-flex; align-items: center; gap: 9px; color: var(--tinta); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.4rem; letter-spacing: -0.015em; white-space: nowrap; }
.marca img { width: 30px; height: 30px; margin-top: -3px; }
.marca:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--tinta); text-decoration: none; font-size: var(--t-s); font-weight: 500; }
.nav a:not(.boton):hover { text-decoration: underline; text-decoration-thickness: 1px; }
.nav .boton { padding: 9px 15px; font-size: var(--t-s); color: #fff; white-space: nowrap; border-radius: 10px; }
@media (max-width: 860px) { .nav a:not(.boton):not(.tel) { display: none; } }
@media (max-width: 480px) { .nav .tel { display: none; } .marca { font-size: 1.25rem; } .marca img { width: 26px; height: 26px; } }

/* Portada: alineada a la izquierda, el titular manda. */
.portada .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(20px, 2.4vw, 30px); padding-block: clamp(52px, 8.5vw, 124px) clamp(24px, 3vw, 40px); }
.portada h1 { font-size: clamp(2.8rem, 1rem + 5.4vw, 6.4rem); font-weight: 500; line-height: .96; letter-spacing: -0.03em; max-width: 24ch; }
/* Cortes de línea a mano en pantallas anchas: "Software a medida / para pequeñas empresas." */
@media (min-width: 700px) { .portada h1 span { display: block; } }
.portada .sub { font-size: clamp(1.15rem, 1rem + .55vw, 1.45rem); color: var(--tinta-2); max-width: 40ch; line-height: 1.42; }

/* La ventana del asistente: una sola caja de composición. */
.ventana-wrap { scroll-margin-top: calc(var(--cab-h, 66px) + 24px); }
.ventana-wrap .wrap { padding-block: clamp(8px, 2vw, 24px) clamp(56px, 8vw, 104px); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.ventana { width: min(820px, 100%); display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.ventana-lema { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.05rem); line-height: 1.15; letter-spacing: -0.015em; max-width: 34ch; }
.ventana.activa .ventana-lema { display: none; }
.caja { width: 100%; background: var(--hoja); border: 1px solid var(--linea); border-radius: 18px; box-shadow: var(--sombra); padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 14px; transition: box-shadow .2s, border-color .2s; }
.caja:focus-within { border-color: color-mix(in srgb, var(--acento) 45%, var(--linea)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acento) 14%, transparent), var(--sombra); }
.caja textarea { width: 100%; min-height: 56px; max-height: 180px; resize: none; border: 0; background: transparent; color: var(--tinta); font: inherit; font-size: var(--t-l); line-height: 1.45; padding: 6px 6px 0; outline: none; }
.caja textarea::placeholder { color: color-mix(in srgb, var(--tinta-2) 85%, transparent); }
.caja-pie { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.opciones-portada { flex: 1; min-width: 0; }
.opciones-portada .opcion { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: var(--t-s); font-weight: 500; padding: 5px 13px 5px 5px; background: var(--papel); border: 1px solid transparent; color: var(--tinta); border-radius: 12px; transition: background-color .15s, border-color .15s; }
.opciones-portada .opcion img { width: 30px; height: 30px; flex: none; }
.opciones-portada .opcion:hover { border-color: color-mix(in srgb, var(--acento) 40%, transparent); background: var(--acento-suave); }
.ventana.activa .opciones-portada { display: none; }
.ventana .enviar { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--acento); color: #fff; display: grid; place-items: center; cursor: pointer; margin-left: auto; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.22); transition: background-color .15s, transform .1s; }
.ventana .enviar:hover { background: var(--acento-oscuro); }
.ventana .enviar:active { transform: translateY(1px); }
.ventana .enviar:disabled { opacity: .5; cursor: default; }
.ventana .chat-mensajes { width: 100%; padding: 0; min-height: 0; max-height: min(560px, 64vh); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }

/* Modo conversación: al empezar, la ventana ocupa toda la pantalla (como America.gov o ChatGPT).
   Arriba, la marca, el avance y "Cerrar"; en medio, la conversación en una columna; abajo, la caja. */
.ventana-barra { display: none; }
html.chat-abierto { overflow: hidden; }
.ventana.foco { position: fixed; top: 0; left: 0; right: 0; height: var(--alto-chat, 100dvh); width: auto; z-index: 60; background: var(--papel);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
.ventana.foco .ventana-barra { display: block; padding: calc(env(safe-area-inset-top, 0px) + 10px) max(16px, calc((100% - 720px) / 2)) 12px; border-bottom: 1px solid var(--linea); background: var(--papel); }
.ventana-barra-fila { display: flex; align-items: center; gap: 12px; }
.ventana-barra .marca { font-size: 1.05rem; }
.ventana-tiempo { margin-left: auto; font-size: var(--t-xs); color: var(--tinta-2); }
.ventana-cerrar { font: inherit; font-size: var(--t-s); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--tinta-2); cursor: pointer; padding: 6px 4px 6px 8px; border-radius: 8px; }
.ventana-cerrar:hover { color: var(--tinta); background: color-mix(in srgb, var(--tinta) 6%, transparent); }
.ventana.foco .chat-mensajes { max-height: none; height: 100%; padding: 28px max(16px, calc((100% - 680px) / 2)) 20px; gap: 18px; overscroll-behavior: contain; }
.ventana.foco .caja { width: min(680px, calc(100% - 32px)); margin: 0 auto clamp(12px, 2vw, 20px); }

/* El avance: tres tramos que se llenan según lo que el agente está preguntando. Nunca va hacia atrás. */
.progreso { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.progreso li { position: relative; padding-top: 10px; font-size: var(--t-xs); color: var(--tinta-2); line-height: 1.2; transition: color .2s; }
.progreso li::before, .progreso li::after { content: ""; position: absolute; top: 0; left: 0; height: 4px; border-radius: 2px; }
.progreso li::before { right: 0; background: var(--linea); }
.progreso li::after { width: calc(var(--lleno, 0) * 100%); background: var(--acento); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.progreso li.actual { color: var(--tinta); font-weight: 600; }
.progreso li.hecho { color: var(--tinta); }
@media (max-width: 480px) { .progreso li { font-size: .7rem; white-space: nowrap; } }
.ventana.activa .caja { padding: 10px 10px 10px 16px; border-radius: 16px; }
.ventana.activa .caja textarea { min-height: 28px; font-size: var(--t-m); padding: 8px 0 0; }
.ventana.activa .caja { flex-direction: row; align-items: flex-end; position: relative; }
.ventana.activa .caja-pie { position: static; }
/* Como en los mejores chats: el agente escribe en texto corrido y solo lo tuyo va en burbuja. */
.msg { max-width: 86%; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--t-m); }
.msg-bot { align-self: flex-start; max-width: 100%; color: var(--tinta); }
.msg-tu { align-self: flex-end; background: var(--acento-suave); color: var(--tinta); padding: 10px 15px; border-radius: 18px; border-bottom-right-radius: 6px; }
.msg-escribiendo { display: inline-flex; gap: 5px; align-items: center; }
.msg-escribiendo i { width: 7px; height: 7px; border-radius: 50%; background: var(--tinta-2); opacity: .5; animation: latido 1.2s infinite ease-in-out; }
.msg-escribiendo i:nth-child(2) { animation-delay: .15s; } .msg-escribiendo i:nth-child(3) { animation-delay: .3s; }
@keyframes latido { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-4px); opacity: 1; } }
.opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.opcion { font: inherit; font-size: var(--t-s); font-weight: 500; cursor: pointer; background: var(--hoja); color: var(--acento); border: 1px solid color-mix(in srgb, var(--acento) 45%, transparent); border-radius: 12px; padding: 9px 14px; text-align: left; transition: background-color .15s, border-color .15s; }
.opcion:hover { background: var(--acento-suave); border-color: var(--acento); }
.chat-formulario { display: flex; gap: 10px; align-items: center; }
/* El final de la conversación: respuestas rápidas, el mensaje con la cara de Álvaro y la nota de privacidad. */
.rapidas { align-self: flex-end; justify-content: flex-end; }
.msg-resumen { display: grid; gap: 10px; white-space: normal; }
.msg-resumen blockquote { margin: 0; padding: 12px 16px; background: var(--hoja); border: 1px solid var(--linea); border-left: 3px solid var(--acento); border-radius: 4px 12px 12px 4px; white-space: pre-wrap; }
.msg-persona { display: flex; gap: 12px; align-items: center; }
.msg-persona img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; filter: grayscale(1); }
.msg-nota { margin: -6px 0 0; font-size: var(--t-xs); color: var(--tinta-2); }
.msg-nota a { color: inherit; }
.msg-nota .enlace-boton { font-size: inherit; }
.caja-campo { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; color: var(--tinta); font: inherit; font-size: var(--t-m); padding: 9px 0 7px; outline: none; }
.caja-campo::placeholder { color: color-mix(in srgb, var(--tinta-2) 85%, transparent); }
.enlace-boton { font: inherit; background: none; border: 0; color: var(--acento); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; padding: 0; }
@media (max-width: 600px) { .caja textarea { font-size: var(--t-m); } .opciones-portada .opcion { font-size: var(--t-xs); padding: 4px 11px 4px 4px; } .opciones-portada .opcion img { width: 26px; height: 26px; } }

/* El torno: texto que pasa, pieza que se queda */
.torno .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; padding-block: clamp(24px, 4vw, 48px) 0; }
.torno-pieza { margin: 0; width: 100%; position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--cab-h, 66px) + 8px); height: calc(100vh - 110px); max-height: 760px; display: grid; place-items: center; }
.torno-pieza canvas { width: 100%; max-width: 520px; height: auto; aspect-ratio: 1; display: block; }
.torno-pieza figcaption { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: var(--t-xs); font-weight: 500; letter-spacing: .02em; color: var(--tinta-2); }
.torno-pasos { display: flex; flex-direction: column; }
.paso-torno { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding-block: 8vh; }
.paso-torno h2 { font-size: clamp(2.1rem, 1.3rem + 2.9vw, 3.6rem); font-weight: 400; max-width: 15ch; line-height: 1.02; }
.paso-torno h2 strong { font-weight: 600; }
.paso-torno p { font-size: var(--t-l); color: var(--tinta-2); line-height: 1.5; max-width: 34ch; }
.paso-torno .lista { display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 6px 0 0; list-style: none; }
.paso-torno .lista li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--tinta); }
.paso-torno .lista li::before { content: "→"; color: var(--acento); font-family: var(--mono); }
.paso-torno .dato { font-family: var(--mono); font-size: var(--t-s); color: var(--tinta-2); max-width: 44ch; }
.paso-torno .dato strong { font-family: var(--serif); font-weight: 600; font-size: 1.7em; color: var(--tinta); margin-right: 6px; }
@media (max-width: 860px) {
  .torno .wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  /* La pieza se queda arriba y el texto se lee en el hueco de debajo (torno.js cambia de etapa en
     su centro). El texto se desvanece al pasar bajo la pieza en vez de cortarse en seco. */
  .torno-pieza { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--cab-h, 62px) - 1px); height: auto; max-height: none; z-index: 1; background: var(--papel); display: flex; flex-direction: column; align-items: center; gap: 2px; padding-block: 6px 4px; }
  .torno-pieza::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 44px; background: linear-gradient(var(--papel), rgba(243, 243, 239, 0)); pointer-events: none; }
  .torno-pieza canvas { max-width: min(29vh, 66vw); }
  .torno-pieza figcaption { position: static; }
  /* Sin altura mínima: cada texto va justo debajo del anterior y no quedan huecos vacíos. */
  .paso-torno { min-height: 0; padding-block: 6vh; justify-content: flex-start; }
  .torno-pasos { padding-bottom: 18vh; } /* que el último paso llegue al centro y la vasija se termine */
  .paso-torno h2 { font-size: clamp(1.8rem, 1.2rem + 3vw, 2.4rem); }
  .paso-torno p { font-size: var(--t-m); }
}

/* El taller: texto a la izquierda, el producto cambia a la derecha */
.taller .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; padding-block: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--linea); }
.taller-cabeza { display: flex; flex-direction: column; gap: 12px; padding-block: clamp(24px, 5vw, 64px) 0; }
.taller-cabeza h2 { max-width: 14ch; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); }
.taller-sub { font-size: var(--t-l); color: var(--tinta-2); max-width: 36ch; }
.taller-nota { font-size: var(--t-s); color: var(--tinta-2); max-width: 44ch; }
.paso-taller { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding-block: 8vh; }
.paso-taller h3 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); font-weight: 600; max-width: 18ch; }
.paso-taller p { color: var(--tinta-2); max-width: 40ch; font-size: var(--t-m); }
.paso-taller .efecto { font-size: var(--t-m); font-weight: 600; color: var(--tinta); border-left: 2px solid var(--acento); padding-left: 12px; margin-top: 4px; max-width: 34ch; }
/* El nombre de cada producto, con su pieza. */
.producto { display: flex; align-items: center; gap: 12px; font-size: var(--t-m); font-weight: 600; color: var(--tinta); }
.producto img { width: 48px; height: 48px; flex: none; margin: -4px 0; }
.taller-escena { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--cab-h, 66px) + 8px); height: calc(100vh - 110px); max-height: 760px; display: grid; place-items: center; }
.taller-escena .maqueta { grid-area: 1 / 1; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .45s ease, transform .45s ease; pointer-events: none; width: 100%; }
.maqueta-escenario { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.taller-escena .maqueta.activa { opacity: 1; transform: none; }
.maqueta-pie { font-size: var(--t-xs); color: var(--tinta-2); text-align: center; max-width: 40ch; }
.seccion .wrap { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px); padding-block: clamp(64px, 9vw, 120px); }
.seccion-cabeza { display: flex; flex-direction: column; gap: 12px; max-width: 60ch; }
.seccion-cabeza p { font-size: var(--t-l); color: var(--tinta-2); line-height: 1.5; }
.seccion + .seccion .wrap { border-top: 1px solid var(--linea); }

/* Maquetas de producto (hechas en HTML para que pesen poco) */
.movil { width: min(300px, 100%); aspect-ratio: 9 / 18.6; background: #1d1b17; border-radius: 36px; padding: 10px; box-shadow: var(--sombra); }
.movil-pantalla { background: #fffdf8; color: #1d1b17; border-radius: 28px; height: 100%; overflow: hidden; display: flex; flex-direction: column; font-size: 11px; line-height: 1.35; }
.m-web { position: relative; }
.m-scroll { position: absolute; inset: 0 0 auto; will-change: transform; transition: transform .35s ease-out; }
.movil { min-height: 0; }
.movil-pantalla { min-height: 0; }
.m-hero { background-image: url("casa-lucia.jpg"); height: 100%; min-height: 300px; background-size: cover; background-position: center; display: flex; align-items: flex-end; position: relative; }
.m-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(20,14,10,.78)); }
.m-hero-texto { position: relative; z-index: 1; color: #fffdf8; padding: 16px 14px; display: flex; flex-direction: column; gap: 5px; width: 100%; }
.m-hero-texto strong { font-family: var(--serif); font-size: 22px; line-height: 1.05; font-weight: 600; }
.m-hero-texto span { opacity: .9; }
.m-web .m-btn { background: #8a3a2b; color: #ffffff; text-align: center; border-radius: 999px; padding: 9px; font-weight: 700; margin-top: 6px; display: block; }
.m-web .m-cuerpo { padding: 12px 14px 6px; display: flex; flex-direction: column; gap: 8px; }
.m-tit { font-family: var(--serif); font-weight: 600; font-size: 14px; margin-top: 4px; }
.m-reserva { margin: 8px 10px 12px; background: #f6f3ec; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 7px; }
.m-campo { display: flex; justify-content: space-between; gap: 8px; background: #fff; border: 1px solid #e2ddd2; border-radius: 8px; padding: 7px 9px; }
.m-campo b { font-weight: 600; font-variant-numeric: tabular-nums; }
.m-btn-ok { margin-top: 4px; }
.m-peq { font-size: 9px; color: #5f5a51; text-align: center; }
.m-web .m-fila { display: flex; justify-content: space-between; border-bottom: 1px solid #e2ddd2; padding-bottom: 6px; }
.m-web .m-fila b { font-weight: 600; font-variant-numeric: tabular-nums; }
.m-barra { display: none; }
.panel .via { display: block; font-weight: 500; color: var(--acento); font-size: 9px; }
.m-wa { background: #efe7dc; }
.m-wa .m-top { background: #075e54; color: #fff; padding: 12px 12px 8px; display: flex; align-items: center; gap: 8px; }
.m-wa .m-top i { width: 24px; height: 24px; border-radius: 50%; background: #b89a7e; flex: none; }
.m-wa .m-top small { display: block; opacity: .8; font-size: 9px; }
.m-wa .m-chat { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.m-wa .b { max-width: 84%; padding: 6px 9px; border-radius: 10px; background: #fff; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.m-wa .b.visto { opacity: 1; transform: none; }
.m-wa .b.esc { display: none; align-self: flex-start; gap: 4px; align-items: center; padding: 8px 10px; }
.m-wa .b.esc.visto { display: inline-flex; }
.m-wa .b.esc i { width: 5px; height: 5px; border-radius: 50%; background: #8a8a8a; animation: latido 1.2s infinite ease-in-out; }
.m-wa .b.esc i:nth-child(2) { animation-delay: .15s; } .m-wa .b.esc i:nth-child(3) { animation-delay: .3s; }
.m-wa .b.yo { align-self: flex-end; background: #dcf8c6; }
.m-wa .b time { display: block; text-align: right; font-size: 8px; opacity: .55; margin-top: 2px; }
.panel { width: 100%; max-width: 520px; background: #fffdf8; color: #1d1b17; border: 1px solid #e2ddd2; border-radius: 14px; box-shadow: var(--sombra); overflow: hidden; font-size: 11px; }
.panel-top { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #e2ddd2; font-weight: 700; }
.panel-top span { margin-left: auto; font-family: var(--mono); font-weight: 500; color: #5f5a51; }
.panel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 12px; }
.panel-kpi { background: #f6f3ec; border-radius: 8px; padding: 8px; }
.panel-kpi b { font-variant-numeric: tabular-nums; display: block; font-family: var(--serif); font-size: 18px; font-weight: 600; }
.panel-kpi span { color: #5f5a51; }
.panel table { width: 100%; border-collapse: collapse; }
.panel td:first-child { font-variant-numeric: tabular-nums; }
.panel td, .panel th { text-align: left; padding: 6px 12px; border-top: 1px solid #e2ddd2; }
.panel th { color: #5f5a51; font-weight: 500; font-size: 10px; }
.panel .ok { color: #1f6b3a; font-weight: 700; }
.panel .pend { color: #8f5a1f; font-weight: 700; }
.maqueta-nota { font-family: var(--mono); font-size: var(--t-xs); color: var(--tinta-2); text-align: center; margin-top: 10px; }
@media (max-width: 860px) {
  /* En el móvil el teléfono es el del visitante: cada producto va debajo de su texto, sin marco
     de teléfono y con letra de verdad. Su pantalla se queda fija mientras se recorre su tramo
     y lo de dentro avanza con el scroll: la web baja hasta la reserva, el
     WhatsApp se escribe, y la reserva de Marta entra en el panel. El tramo es un espaciador
     (::after) y no padding: sticky solo se mueve dentro de la caja de contenido del padre. */
  .taller .wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .taller-texto, .taller-escena { display: contents; }
  .taller-cabeza { order: 0; }
  .paso-taller { min-height: 0; padding-block: clamp(48px, 9vh, 80px) 28px; justify-content: flex-start; }
  .paso-taller[data-maqueta="web"] { order: 1; }
  .maqueta[data-maqueta="web"] { order: 2; --recorrido: 95vh; }
  .paso-taller[data-maqueta="wa"] { order: 3; }
  .maqueta[data-maqueta="wa"] { order: 4; --recorrido: 110vh; }
  .paso-taller[data-maqueta="panel"] { order: 5; }
  .maqueta[data-maqueta="panel"] { order: 6; --recorrido: 45vh; }
  .taller-escena .maqueta { grid-area: auto; opacity: 1; transform: none; transition: none; --pantalla-h: min(540px, calc(100vh - var(--cab-h, 62px) - 132px)); }
  .taller-escena .maqueta::after { content: ""; display: block; height: var(--recorrido); }
  .maqueta-escenario { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--cab-h, 62px) + 16px); gap: 12px; }
  .maqueta-pie { font-size: var(--t-xs); max-width: 34ch; line-height: 1.45; }

  /* Pantallas sin marco */
  .taller-escena .movil { width: min(100%, 380px); height: var(--pantalla-h); aspect-ratio: auto; background: none; padding: 0; border-radius: 22px; }
  .taller-escena .movil-pantalla { border-radius: 22px; border: 1px solid var(--linea); font-size: 15px; line-height: 1.4; }

  /* La web de ejemplo, con su barra de dirección */
  .m-barra { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; height: 42px; background: #efe9df; border-bottom: 1px solid #e2ddd2; flex: none; }
  .m-barra span { font-size: 12px; color: #5f5a51; background: #fffdf8; border-radius: 999px; padding: 3px 14px; }
  .m-barra span::before { content: ""; display: inline-block; width: 7px; height: 8px; margin-right: 7px; border: 1.5px solid #5f5a51; border-radius: 2px; vertical-align: -0.5px; }
  .m-web .m-scroll { top: 42px; transition: none; }
  /* La web de ejemplo baja con una animación ligada al scroll: la mueve el navegador junto con la
     página, sin esperar al JavaScript, y no da tirones. Va de cuando la pantalla se fija a cuando se
     suelta (el tramo del ::after). Cuánto baja (--web-fin) lo mide app.js. Sin soporte, la mueve app.js. */
  @supports (animation-timeline: view()) {
    .maqueta[data-maqueta="web"] { view-timeline: --tramo-web block; }
    .m-web .m-scroll { animation: bajar-web linear both; animation-timeline: --tramo-web; animation-range: contain calc(-1 * (env(safe-area-inset-top, 0px) + var(--cab-h, 62px) + 16px)) contain calc(var(--recorrido) - env(safe-area-inset-top, 0px) - var(--cab-h, 62px) - 16px); }
  }
  .m-hero-texto { padding: 22px 18px; gap: 6px; }
  .m-hero-texto strong { font-size: 32px; }
  .m-hero-texto span { font-size: 15px; }
  .m-web .m-btn { padding: 12px; margin-top: 10px; }
  .m-web .m-cuerpo { padding: 20px 18px 8px; gap: 12px; }
  .m-web .m-fila { padding-bottom: 10px; }
  .m-tit { font-size: 20px; }
  .m-reserva { margin: 14px 14px 20px; padding: 16px; gap: 10px; border-radius: 16px; }
  .m-campo { padding: 11px 12px; border-radius: 10px; }
  .m-peq { font-size: 12px; }

  /* El WhatsApp */
  .m-wa .m-top { padding: 14px 16px 12px; gap: 12px; font-weight: 700; }
  .m-wa .m-top i { width: 36px; height: 36px; }
  .m-wa .m-top small { font-size: 12px; font-weight: 400; }
  .m-wa .m-chat { flex: 1; min-height: 0; overflow: hidden; padding: 14px 12px; gap: 8px; }
  .m-wa .b { padding: 8px 11px 6px; border-radius: 12px; }
  .m-wa .b time { font-size: 11px; }
  .m-wa .b:not(.visto) { display: none; }
  .m-wa .b.visto { animation: burbuja .3s ease both; }

  /* El panel, como lo vería Lucía en su móvil */
  .taller-escena .panel { width: min(100%, 380px); font-size: 15px; border-radius: 22px; }
  .panel-top { padding: 14px 16px; }
  .panel-grid { padding: 14px 16px; gap: 8px; }
  .panel-kpi { padding: 10px; }
  .panel-kpi b { font-size: 19px; white-space: nowrap; }
  .panel-kpi span { font-size: 12px; }
  .panel table, .panel tbody { display: block; }
  .panel tr { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "f g e" "f s e"; column-gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid #e2ddd2; }
  .panel tr:first-child { display: none; }
  .panel td { padding: 0; border: 0; }
  .panel td:nth-child(1) { grid-area: f; font-family: var(--mono); font-size: 13px; color: #5f5a51; }
  .panel td:nth-child(2) { grid-area: g; font-weight: 700; }
  .panel td:nth-child(3) { grid-area: s; font-size: 13px; color: #5f5a51; }
  .panel td:nth-child(3)::before { content: "Salón "; }
  .panel td:nth-child(4) { grid-area: e; font-size: 12px; padding: 4px 9px; border-radius: 999px; }
  .panel .ok { background: #e4f0e6; }
  .panel .pend { background: #f6e9d6; }
  .panel .via { font-size: 12px; }
  .panel .fila-nueva { background: var(--acento-suave); }
  .panel .fila-nueva:not(.vista) { display: none; }
  .panel .fila-nueva.vista { animation: entra .5s ease both; }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  /* Sin tramos fijos: app.js deja cada pantalla en su estado final. */
  .taller-escena .maqueta::after { display: none; }
  .maqueta-escenario { position: static; }
  .m-wa .b.visto, .panel .fila-nueva.vista, .m-web .m-scroll { animation: none; }
}
@keyframes bajar-web { to { transform: translateY(var(--web-fin, 0px)); } }
@keyframes burbuja { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes entra { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Cómo lo hacemos: una línea de tiempo que se va dibujando */
.proceso .wrap { display: flex; flex-direction: column; gap: clamp(32px, 5vw, 64px); padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--linea); }
.proceso-cabeza { display: flex; flex-direction: column; gap: 12px; max-width: 60ch; }
.proceso-cabeza h2 em { font-style: italic; }
.proceso-sub { font-size: var(--t-l); color: var(--tinta-2); }
.linea { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); padding: 0; margin: 0; list-style: none; position: relative; --prog: 0; }
.linea::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: var(--linea); z-index: 0; }
.linea::after { content: ""; position: absolute; left: 0; top: 22px; height: 2px; width: calc(var(--prog) * 100%); background: var(--acento); transition: width .25s ease-out; z-index: 0; }
.linea { grid-template-rows: auto auto auto auto; }
.hito { display: grid; grid-template-rows: subgrid; grid-row: span 4; gap: 10px; min-width: 0; position: relative; padding-top: 60px; align-content: start; }
.hito-cta { grid-row: 5; justify-self: start; margin-top: 4px; padding: 10px 18px; font-size: var(--t-s); }
.hito-num { position: absolute; z-index: 1; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1; padding-bottom: 2px; background: var(--papel); border: 1.5px solid var(--linea); color: var(--tinta-2); transition: background .3s, color .3s, border-color .3s; }
.hito.hecho .hito-num { background: var(--acento); border-color: var(--acento); color: #fff; }
.hito h3 { font-size: var(--t-l); }
.hito p { color: var(--tinta-2); font-size: var(--t-m); }
.ficha { display: grid; grid-template-columns: 72px 1fr; gap: 6px 12px; margin: 8px 0 0; padding-top: 12px; border-top: 1px solid var(--linea); font-size: var(--t-s); align-self: start; }
.ficha dt { font-size: var(--t-s); color: var(--tinta-2); }
.ficha dd { margin: 0; color: var(--tinta); }
.compromiso { font-family: var(--serif); font-size: var(--t-l); line-height: 1.5; color: var(--tinta-2); max-width: 54ch; }
@media (max-width: 900px) {
  .linea { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-left: 64px; }
  .linea::before, .linea::after { left: 22px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .linea::after { height: calc(var(--prog) * 100%); width: 2px; transition: height .25s ease-out; }
  .hito { padding-top: 0; display: flex; flex-direction: column; }
  .hito-num { left: -64px; top: 0; }
}


.fundador { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.fundador-foto { width: 240px; max-width: 100%; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--linea); box-shadow: var(--sombra); }
.fundador-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; filter: grayscale(1) contrast(1.06) brightness(1.03); }
.fundador-texto { display: flex; flex-direction: column; gap: 16px; max-width: 60ch; min-width: 0; }
.fundador-texto p { font-size: var(--t-m); }
.fundador-texto .firma { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.2; margin-top: 4px; }
.pendiente { background: var(--acento-suave); color: var(--acento); border-radius: 4px; padding: 0 4px; }
@media (max-width: 700px) { .fundador { grid-template-columns: minmax(0, 1fr); } .fundador-foto { width: 160px; } }

.preguntas { display: flex; flex-direction: column; max-width: 820px; }
.preguntas details { border-top: 1px solid var(--linea); padding-block: 18px; }
.preguntas details:last-child { border-bottom: 1px solid var(--linea); }
.preguntas summary { cursor: pointer; font-family: var(--serif); font-weight: 600; font-size: 1.4rem; line-height: 1.25; letter-spacing: -0.01em; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--acento), var(--acento)) center / 14px 1.5px no-repeat, linear-gradient(var(--acento), var(--acento)) center / 1.5px 14px no-repeat; transition: transform .25s ease; }
.preguntas details[open] summary::after { transform: rotate(45deg); }
.preguntas summary:hover { color: var(--acento); }
.preguntas details p { margin-top: 10px; color: var(--tinta-2); max-width: 64ch; }

.cierre { background: var(--acento); color: #fff; overflow: hidden; }
.cierre .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding-block: clamp(56px, 8vw, 112px); }
.cierre-pieza { width: clamp(150px, 16vw, 210px); height: auto; margin-bottom: -6px; }
.cierre h2 { font-weight: 400; max-width: 16ch; font-size: var(--t-xxl); line-height: .98; letter-spacing: -0.03em; }
.cierre h2 strong { font-weight: 600; }
.cierre p { color: rgba(255, 255, 255, 0.8); max-width: 44ch; font-size: var(--t-l); line-height: 1.5; }
.cierre .boton { background: var(--porcelana); color: var(--acento); box-shadow: inset 0 -2px 0 rgba(23, 48, 122, 0.25), 0 1px 2px rgba(0, 0, 0, 0.15); }
.cierre .boton:hover { background: #fff; }
.cierre p a { color: #fff; white-space: nowrap; }

.pie { font-size: var(--t-s); color: var(--tinta-2); }
.pie .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px 40px; padding-block: 44px 56px; }
.pie .marca { font-size: 1.25rem; margin-bottom: 8px; }
.pie .marca img { width: 26px; height: 26px; }
.pie p + p { margin-top: 6px; }
.pie a { color: var(--tinta-2); }
.pie nav { display: flex; flex-direction: column; gap: 8px; }
.pie strong { color: var(--tinta); display: block; margin-bottom: 4px; font-weight: 600; }
@media (max-width: 700px) { .pie .wrap { grid-template-columns: minmax(0, 1fr); } }

.no-existe .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-block: clamp(48px, 8vw, 110px); }
.no-existe img { width: clamp(180px, 22vw, 260px); height: auto; margin-left: -12px; }
.no-existe p { color: var(--tinta-2); font-size: var(--t-l); max-width: 36ch; }
.legal .wrap { max-width: 760px; padding-block: 40px 80px; display: flex; flex-direction: column; gap: 18px; }
.legal h1 { font-size: var(--t-xl); }
.legal h2 { font-size: var(--t-l); margin-top: 18px; }
.legal p, .legal li { color: var(--tinta-2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .msg-escribiendo i { animation: none; }
}
