/* =========================================================================
   AUVRYX · v3 — identidad y portada
   VOICE   cercano y seguro: un técnico que te enseña el resultado, no la teoría
   IDEA    el móvil del negocio: entra un mensaje suelto, sale una solicitud ordenada
   PICTURE la pieza de la portada que cambia al tocarla (Reservas / Consultas / Presupuestos)
   COLOUR  grafito casi negro + campos de violeta profundo a sangre; ámbar solo para «pendiente»
   TYPE    Archivo Black enorme y apretado para titulares; DM Sans para leer y usar
   LAYOUT  cada bloque con una forma distinta: pieza viva, scroll con pasos, pantalla partida,
           índice tipográfico, línea de pasos y una pregunta gigante para cerrar
   Se carga después de styles.css y lo sobrescribe donde hace falta.
   ========================================================================= */

@font-face {
  font-family: "Archivo Black";
  src: url("../assets/fonts/archivo-black-latin.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/dm-sans-latin.woff") format("woff");
  font-weight: 100 1000; font-style: normal; font-display: swap;
}

:root {
  --bg: #09090c;
  --bg-alt: #101016;
  --surface: #15141c;
  --surface-2: #1c1b25;
  --surface-3: #282634;
  --text: #f2f0f8;
  --muted: #aeacc0;
  --faint: #8d8ba0;

  --accent: #8b5cf6;
  --accent-strong: #7c3aed;
  --accent-text: #c4b5fd;
  --field: #1f0d55;          /* violeta profundo de los bloques a sangre */
  --field-ink: #e4dcff;
  --field-line: rgba(228, 220, 255, 0.18);

  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Archivo Black", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --container: 1240px;
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

body { font-size: 17px; line-height: 1.6; }
h1, h2, h3, h4 { letter-spacing: -0.01em; }
.display, .display-xl, .display-l, .display-m,
.page-hero h1, .contact-page h1, .contact-card h2, .section-head h2, .budget h2, .contact-band h2 {
  font-family: var(--display); font-weight: 400; letter-spacing: -0.035em; line-height: 0.98; text-wrap: balance;
}
.display-l { font-size: clamp(34px, 5.2vw, 72px); max-width: 16ch; }
.display-m { font-size: clamp(30px, 3.8vw, 52px); }
.display-xl { font-size: clamp(44px, 8.4vw, 132px); line-height: 0.92; }
.page-hero h1 { font-size: clamp(38px, 6vw, 80px); line-height: 0.95; }
.text-link { color: var(--accent-text); font-weight: 600; text-underline-offset: 4px; }
.text-link:hover { color: #fff; }

/* Cabecera más ligera: el botón de contacto ya no compite con la portada */
.site-header { background: rgba(9, 9, 12, 0.82); }
.site-nav .header-cta { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
@media (hover: hover) and (pointer: fine) { .site-nav .header-cta:hover { background: var(--accent-soft); border-color: var(--accent); color: #fff; } }
html { scroll-padding-top: calc(var(--header-h) + 16px); }
.hero-phone-wrap, .demo, .case { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Botones ---------- */
.btn { font-weight: 650; letter-spacing: -0.005em; }
.btn-primary { background: var(--accent-strong); }
.btn-on-violet { background: #fff; color: #24105f; box-shadow: 0 14px 40px -14px rgba(0, 0, 0, 0.6); }
.btn-on-violet:focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.35); }
.btn-on-violet:active:not([disabled]) { background: #ece7ff; }
@media (hover: hover) and (pointer: fine) {
  .btn-on-violet:hover, .btn-on-violet.btn-hero:hover { background: #ece7ff; box-shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.7); }
}
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
@media (hover: hover) and (pointer: fine) { .btn-ghost-light:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; } }

/* =========================================================================
   PORTADA
   ========================================================================= */
.hero3 { position: relative; overflow: hidden; padding: clamp(36px, 5vw, 76px) 0 clamp(64px, 8vw, 112px); }
.hero3::before {
  /* La «A» del logo, enorme y casi invisible, ancla la pieza protagonista. */
  content: ""; position: absolute; right: -6vw; top: 4%; width: min(62vw, 860px); aspect-ratio: 286 / 256;
  background: url("../assets/logo-mark.png") center / contain no-repeat; opacity: 0.045; pointer-events: none;
}
.hero3::after {
  content: ""; position: absolute; right: -10%; top: -20%; width: 70vw; height: 90%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.22), transparent 70%);
}
.hero3-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero3-kicker { font-size: 16px; font-weight: 600; color: var(--accent-text); margin-bottom: 18px; max-width: 34ch; }
.hero3 .display { font-size: clamp(42px, 5.6vw, 84px); line-height: 0.93; margin-bottom: 26px; }
.hero3 .lead { font-size: clamp(17px, 1.6vw, 20px); color: #cfcde0; max-width: 36em; }
.hero3-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 26px; }
.hero3-actions .btn-lg { padding-inline: 24px; }
.hero3-founder { display: flex; gap: 12px; align-items: center; max-width: 40em; color: var(--muted); font-size: 15px; }
.hero3-founder .founder-avatar { width: 36px; height: 36px; font-size: 15px; }

/* Titular: entra palabra a palabra una sola vez */
.display.is-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.display.is-split .w > span { display: inline-block; animation: word-up 620ms var(--ease-out) both; animation-delay: calc(60ms + var(--i) * 38ms); }
@keyframes word-up { from { transform: translateY(105%); } to { transform: none; } }

/* ---------- Pieza protagonista ---------- */
.showcase {
  position: relative; padding: 18px; border-radius: 30px;
  background: linear-gradient(180deg, #17151f, #0e0d14);
  border: 1px solid rgba(139, 92, 246, 0.38);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9), 0 0 120px -40px rgba(124, 58, 237, 0.6);
}
.showcase-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 4px 14px; }
.showcase-q { font-weight: 700; font-size: 16px; }
.showcase-tabs {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px;
  border-radius: 16px; background: var(--bg); border: 1px solid var(--line-strong); isolation: isolate;
}
.showcase-tabs button {
  position: relative; z-index: 1; min-height: 46px; padding: 8px 6px; border: 0; border-radius: 12px; background: transparent;
  color: var(--muted); font-weight: 700; font-size: 15.5px; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: color .2s ease, transform var(--dur-press) var(--ease-out);
}
.showcase-tabs button:active { transform: scale(0.97); }
.showcase-tabs button[aria-selected="true"] { color: #fff; }
.showcase-tabs button:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
@media (hover: hover) and (pointer: fine) { .showcase-tabs button:hover { color: #fff; } }
.showcase-thumb {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3);
  border-radius: 12px; background: var(--accent-strong); box-shadow: 0 8px 24px -10px var(--accent-glow);
  transition: transform 300ms var(--ease-in-out);
}
.showcase-tabs[data-active="1"] .showcase-thumb { transform: translateX(100%); }
.showcase-tabs[data-active="2"] .showcase-thumb { transform: translateX(200%); }

.showcase-stage { position: relative; display: grid; gap: 0; padding: 18px 4px 6px; min-height: 392px; align-content: start; }
.sc-label { font-size: 13.5px; color: var(--faint); margin: 0 0 6px 4px; }
.sc-bubble {
  max-width: 88%; padding: 12px 15px; border-radius: 18px; border-top-left-radius: 5px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 16px; line-height: 1.45;
}
.sc-link { height: 26px; margin-left: 26px; }
.sc-link span { display: block; width: 2px; height: 100%; background: linear-gradient(var(--accent), rgba(139, 92, 246, 0.2)); transform-origin: top; }
.sc-out { border-radius: 18px; padding: 16px; background: var(--bg); border: 1px solid rgba(139, 92, 246, 0.55); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.08); }
.sc-out-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-bottom: 10px; }
.sc-out-head strong { font-size: 17px; }
.sc-state { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.sc-state.is-review, .sc-state:not(.is-done) { color: var(--team); background: rgba(252, 211, 77, 0.1); border: 1px solid rgba(252, 211, 77, 0.4); }
.sc-state.is-done { color: var(--ok); background: rgba(134, 239, 172, 0.1); border: 1px solid rgba(134, 239, 172, 0.4); }
.sc-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sc-rows { margin: 0; display: grid; }
.sc-rows > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 8px 2px; border-top: 1px solid var(--line); font-size: 15px; }
.sc-rows dt { color: var(--faint); }
.sc-rows dd { margin: 0; font-weight: 650; }
.sc-foot { margin-top: 10px; font-size: 14px; color: var(--muted); }
.showcase-note { margin: 10px 4px 0; font-size: 13.5px; color: var(--faint); }

/* Al cambiar de opción: entra el mensaje desde su lado, se dibuja el enlace y la tarjeta se completa por filas. */
.showcase-stage.is-play .sc-in { animation: sc-in-r 220ms var(--ease-out) both; }
.showcase-stage.is-play.from-left .sc-in { animation-name: sc-in-l; }
.showcase-stage.is-play .sc-link span { animation: sc-draw 170ms var(--ease-out) 90ms both; }
.showcase-stage.is-play .sc-out { animation: sc-up 240ms var(--ease-out) 160ms both; }
.showcase-stage.is-play .sc-rows > div { animation: sc-row 200ms var(--ease-out) both; animation-delay: calc(220ms + var(--d, 0) * 45ms); }
.showcase-stage.is-play .sc-state { animation: sc-pop 220ms var(--ease-out) 430ms both; }
@keyframes sc-in-r { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes sc-in-l { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
@keyframes sc-draw { from { transform: scaleY(0); } to { transform: none; } }
@keyframes sc-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes sc-row { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes sc-pop { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .hero3-grid { grid-template-columns: 1fr; }
  .hero3 .display { max-width: 14ch; }
  .showcase { max-width: 560px; }
}
@media (max-width: 767px) {
  .hero3-actions .btn { flex: 1 1 100%; }
  .showcase { padding: 14px; border-radius: 24px; }
  .showcase-stage { min-height: 380px; }
  .hero3::before { width: 120vw; right: -40vw; top: 30%; }
}
@media (max-width: 400px) {
  .hero3 .display { font-size: 38px; }
  .hero3-actions .btn-lg { font-size: 16px; padding-inline: 18px; }
  .showcase-tabs button { font-size: 14px; }
  .sc-rows > div { grid-template-columns: 84px minmax(0, 1fr); }
}

/* =========================================================================
   CÓMO FUNCIONA — campo violeta, dibujo fijo y pasos que lo cambian
   ========================================================================= */
.flow { background: var(--field); color: var(--field-ink); padding: clamp(72px, 9vw, 128px) 0 clamp(40px, 6vw, 80px); }
.flow .display-l { color: #fff; margin-bottom: clamp(28px, 5vw, 64px); }
.flow-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.flow-visual {
  position: sticky; top: calc(var(--header-h) + 32px);
  min-height: 420px; padding: 28px; border-radius: 28px; background: rgba(9, 6, 26, 0.55); border: 1px solid var(--field-line);
  display: grid; place-items: center; overflow: hidden;
}
.fv-pile, .fv-card { grid-area: 1 / 1; width: min(100%, 360px); }
.fv-pile { display: grid; gap: 12px; }
.fv-msg {
  padding: 12px 14px; border-radius: 16px; background: #24213a; border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff; font-size: 15px; line-height: 1.4; box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.9);
  transition: transform 420ms var(--ease-in-out), opacity 320ms ease;
}
.fv-msg b { display: block; font-size: 12.5px; color: var(--accent-text); margin-bottom: 2px; }
.fv-msg.m1 { transform: rotate(-2deg); }
.fv-msg.m2 { transform: translateX(18px) rotate(1.5deg); }
.fv-msg.m3 { transform: translateX(-8px) rotate(-1deg); }
.fv-card {
  padding: 18px; border-radius: 18px; background: #0d0b18; border: 1px solid rgba(196, 181, 253, 0.5);
  opacity: 0; transform: translateY(24px) scale(0.97); transition: opacity 320ms ease, transform 420ms var(--ease-in-out);
}
.fv-card-k { font-weight: 700; color: #fff; margin-bottom: 8px; }
.fv-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 15px; }
.fv-row span { color: var(--faint); }
.fv-row b { color: #fff; }
.fv-decide { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; opacity: 0.35; transition: opacity 300ms ease; }
.fv-btn { padding: 7px 12px; border-radius: 999px; border: 1px dashed rgba(252, 211, 77, 0.55); color: var(--team); font-size: 13.5px; font-weight: 600; transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease; }
/* Paso 2: los mensajes se recogen y aparece la solicitud ordenada */
.flow-visual[data-step="2"] .fv-msg, .flow-visual[data-step="3"] .fv-msg { opacity: 0; transform: translateY(-30px) scale(0.92); }
.flow-visual[data-step="2"] .fv-msg.m2, .flow-visual[data-step="3"] .fv-msg.m2 { transition-delay: 40ms; }
.flow-visual[data-step="2"] .fv-msg.m3, .flow-visual[data-step="3"] .fv-msg.m3 { transition-delay: 80ms; }
.flow-visual[data-step="2"] .fv-card, .flow-visual[data-step="3"] .fv-card { opacity: 1; transform: none; transition-delay: 120ms; }
/* Paso 3: la decisión es tuya */
.flow-visual[data-step="3"] .fv-decide { opacity: 1; }
.flow-visual[data-step="3"] .fv-btn.is-yes { background: var(--team); color: #1a1405; border-style: solid; border-color: var(--team); }

.flow-steps { list-style: none; margin: 0; padding: 0; }
.flow-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 24px 0; opacity: 0.4; transition: opacity 300ms ease; }
.flow-step.is-active { opacity: 1; }
.flow-step:first-child { padding-top: 0; }
.flow-step h3 { font-size: clamp(24px, 2.6vw, 34px); color: #fff; line-height: 1.15; max-width: 18ch; }
.flow-step p { font-size: 18px; color: var(--field-ink); max-width: 34ch; }
.flow-step .role { align-self: flex-start; }
.flow .role-client { color: #a5e3ff; border-color: rgba(165, 227, 255, 0.5); }
.flow .role-system { color: #e0d6ff; border-color: rgba(224, 214, 255, 0.5); }
.flow .role-team { color: #fde68a; border-color: rgba(253, 230, 138, 0.5); }
@media (max-width: 860px) {
  .flow-grid { grid-template-columns: 1fr; gap: 0; }
  .flow-visual { top: calc(var(--header-h) + 8px); z-index: 2; min-height: 300px; padding: 18px; background: #170a43; }
  .flow-step { min-height: 52vh; padding: 40px 0; }
  .fv-pile, .fv-card { width: min(100%, 320px); }
}

/* =========================================================================
   DEMOS — pantalla partida
   ========================================================================= */
.split { padding: clamp(72px, 9vw, 128px) 0 0; }
.split .display-l { margin-bottom: clamp(28px, 4vw, 48px); }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split-half {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  min-height: 560px; padding: clamp(28px, 4vw, 56px) max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px);
  text-decoration: none; color: var(--text); background: var(--bg-alt); overflow: hidden;
  transition: background-color .3s ease;
}
.split-rest { padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); padding-right: clamp(24px, 4vw, 56px); border-right: 1px solid var(--line); }
.split-name { font-family: var(--display); font-size: clamp(34px, 4.4vw, 64px); line-height: 0.95; letter-spacing: -0.035em; }
.split-what { color: var(--muted); max-width: 34ch; font-size: 17px; }
.split-go { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--accent-text); font-size: 17px; }
.split-go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-ui) var(--ease-out); }
.split-half:focus-visible { outline: 2px solid var(--accent-text); outline-offset: -6px; border-radius: 0; }
.split-art { display: grid; gap: 8px; width: min(100%, 340px); margin: 18px 0 8px; transition: transform 400ms var(--ease-out); }
.sa-bubble { justify-self: start; padding: 10px 14px; border-radius: 16px; border-top-left-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); font-size: 15px; }
.sa-me { justify-self: end; background: #4c1d95; border-color: transparent; border-radius: 16px; border-top-right-radius: 4px; }
.sa-pill { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--team); background: rgba(252, 211, 77, 0.1); border: 1px solid rgba(252, 211, 77, 0.4); }
.sa-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sa-switch { justify-self: start; display: inline-flex; padding: 3px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); margin-bottom: 4px; }
.sa-switch i { font-style: normal; font-size: 13.5px; font-weight: 700; padding: 6px 12px; border-radius: 9px; color: var(--muted); }
.sa-switch i.on { background: var(--accent-strong); color: #fff; }
.sa-line { display: grid; grid-template-columns: 76px 1fr; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.sa-line b { color: var(--faint); font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  .split-half:hover { background: #17151f; }
  .split-half:hover .split-art { transform: translateY(-6px); }
  .split-half:hover .split-go svg { transform: translateX(4px); }
}
@media (max-width: 860px) {
  .split-grid { grid-template-columns: 1fr; }
  .split-half, .split-rest { min-height: 0; padding: 36px var(--gutter); border-right: 0; }
  .split-rest { border-bottom: 1px solid var(--line); }
}

/* =========================================================================
   SERVICIOS — índice tipográfico desplegable
   ========================================================================= */
.svc { padding: clamp(72px, 9vw, 128px) 0; }
.svc-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.svc-intro { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 14px; }
.svc-intro p { color: var(--muted); max-width: 30ch; }
.svc-list { border-bottom: 1px solid var(--line-strong); }
.svc-item { border-top: 1px solid var(--line-strong); }
.svc-item summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px;
  padding: clamp(18px, 2.4vw, 28px) 4px; -webkit-tap-highlight-color: transparent; border-radius: 8px;
}
.svc-item summary::-webkit-details-marker { display: none; }
.svc-item summary:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.svc-name { grid-column: 1; font-family: var(--display); font-size: clamp(38px, 6.2vw, 92px); line-height: 0.92; letter-spacing: -0.04em; color: var(--text); transition: color .2s ease; }
.svc-sub { grid-column: 1; font-size: 17px; color: var(--muted); }
.svc-plus { grid-column: 2; grid-row: 1 / span 2; position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform 260ms var(--ease-out), background-color .2s ease, border-color .2s ease; }
.svc-plus::before, .svc-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; border-radius: 2px; background: currentColor; }
.svc-plus::after { transform: rotate(90deg); }
.svc-item[open] .svc-plus { transform: rotate(45deg); background: var(--accent-strong); border-color: var(--accent-strong); }
.svc-item[open] .svc-name { color: var(--accent-text); }
@media (hover: hover) and (pointer: fine) { .svc-item summary:hover .svc-name { color: var(--accent-text); } }
.svc-body { padding: 0 4px clamp(22px, 3vw, 32px); }
.svc-body p { font-size: 18px; color: #d6d4e4; max-width: 46ch; }
.svc-item[open] .svc-body { animation: svc-in 260ms var(--ease-out); }
@keyframes svc-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .svc-grid { grid-template-columns: 1fr; } .svc-intro { position: static; } }

/* =========================================================================
   CÓMO TRABAJO — una línea de tres pasos
   ========================================================================= */
.path { padding: 0 0 clamp(72px, 9vw, 120px); }
.path .display-m { margin-bottom: clamp(28px, 4vw, 48px); }
.path-line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; }
.path-line::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: linear-gradient(90deg, var(--accent), rgba(139, 92, 246, 0.15)); }
.path-line li { position: relative; padding-right: clamp(16px, 3vw, 40px); }
.path-n { position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); font-family: var(--display); font-size: 22px; color: #fff; }
.path-line p { font-size: 19px; color: #dddbe9; max-width: 26ch; }
.path-budget { margin-top: clamp(32px, 5vw, 56px); max-width: 720px; padding: 18px 22px; border-radius: 16px; border: 1px dashed rgba(139, 92, 246, 0.55); background: var(--accent-soft); color: #dddbe9; }
.path-budget strong { color: #fff; }
@media (max-width: 760px) {
  .path-line { grid-template-columns: 1fr; gap: 26px; }
  .path-line::before { left: 27px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), rgba(139, 92, 246, 0.15)); }
  .path-line li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; padding: 0; }
  .path-n { margin: 0; }
}

/* =========================================================================
   CIERRE — la pregunta, enorme, sobre violeta
   ========================================================================= */
.close { background: var(--field); color: #fff; padding: clamp(80px, 11vw, 160px) 0; }
.close .display-xl { max-width: 13ch; }
.close-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 4vw, 48px); }
.close-note { margin-top: 18px; color: var(--field-ink); max-width: 46ch; }
@media (max-width: 767px) { .close-actions .btn { flex: 1 1 100%; } }
.site-footer { margin-top: 0; }

/* Títulos grandes: suben al entrar en pantalla (una vez) */
.rise { opacity: 0; transform: translateY(28px); }
.rise.is-in { opacity: 1; transform: none; transition: opacity 500ms ease-out, transform 650ms var(--ease-out); }

/* =========================================================================
   BARRA FIJA EN MÓVIL
   ========================================================================= */
.mbar { display: none; }
@media (max-width: 767px) {
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(9, 9, 12, 0.92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line-strong);
    transform: translateY(110%); transition: transform 260ms var(--ease-out); visibility: hidden;
  }
  .mbar.is-on { transform: none; visibility: visible; }
  .mbar:not(.is-on) { transition: transform 200ms var(--ease-out), visibility 0s linear 200ms; }
  .mbar .btn { min-height: 48px; padding: 10px 16px; font-size: 15.5px; }
  html.has-mbar .help-launcher { bottom: 82px; }
  html.has-mbar .site-footer { padding-bottom: 96px; }
}

/* =========================================================================
   DIAGNÓSTICO EN PANEL
   ========================================================================= */
html.quiz-locked { overflow: hidden; }
.quiz-dialog {
  padding: 0; border: 0; background: transparent; color: var(--text);
  width: min(560px, calc(100% - 32px)); max-width: none; max-height: min(780px, calc(100dvh - 40px)); overflow: visible;
  opacity: 0; transform: translateY(10px) scale(0.97);
  transition: opacity 220ms ease, transform 260ms var(--ease-out);
}
.quiz-dialog.is-open { opacity: 1; transform: none; }
.quiz-dialog.is-closing { opacity: 0; transform: translateY(6px) scale(0.98); transition-duration: 180ms; }
.quiz-dialog::backdrop { background: rgba(4, 3, 10, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 220ms ease; }
.quiz-dialog.is-open::backdrop { opacity: 1; }
.quiz-dialog .quiz { display: flex; flex-direction: column; max-height: inherit; height: 100%; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.95), 0 0 100px -40px var(--accent-glow); }
.quiz-dialog .quiz-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.quiz-close {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line-strong); background: transparent; color: var(--muted);
  transition: color .2s ease, border-color .2s ease, transform var(--dur-press) var(--ease-out);
}
.quiz-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.quiz-close:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .quiz-close:hover { color: #fff; border-color: var(--accent); } }
.quiz-head { gap: 10px; }
.quiz-who strong { font-size: 15px; }

/* Móvil: el panel sube desde abajo, como una hoja */
@media (max-width: 600px) {
  .quiz-dialog {
    width: 100%; margin: auto 0 0; max-height: 92dvh;
    opacity: 1; transform: translateY(100%); transition: transform 340ms var(--ease-drawer);
  }
  .quiz-dialog.is-open { transform: none; }
  .quiz-dialog.is-closing { opacity: 1; transform: translateY(100%); transition: transform 200ms var(--ease-out); }
  .quiz-dialog .quiz { border-radius: 24px 24px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
}

/* Demos: etiqueta de simulación más visible */
.badge-sim { font-size: 13px; }

/* =========================================================================
   MOVIMIENTO REDUCIDO — todo funciona; solo fundidos, sin desplazamientos
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .display.is-split .w > span { animation: none; }
  .showcase-thumb, .split-art, .svc-plus, .fv-msg, .fv-card { transition-property: opacity, background-color, color, border-color; }
  .showcase-stage.is-play .sc-in, .showcase-stage.is-play .sc-out, .showcase-stage.is-play .sc-rows > div, .showcase-stage.is-play .sc-state, .showcase-stage.is-play .sc-link span { animation: none; }
  .rise, .rise.is-in { opacity: 1; transform: none; transition: none; }
  .fv-msg { transform: none !important; }
  .fv-card { transform: none; }
  .svc-item[open] .svc-body { animation: fade-in 200ms ease; }
  .quiz-dialog, .quiz-dialog.is-closing { transform: none !important; transition: opacity 160ms ease; }
  @media (max-width: 600px) { .quiz-dialog { opacity: 0; } .quiz-dialog.is-open { opacity: 1; } .quiz-dialog.is-closing { opacity: 0; } }
  .mbar { transition: none; }
}
.showcase-stage.is-fade > * { animation: fade-in 160ms ease; }

/* Móvil y tablet: titular, botones y en seguida la pieza; la presentación, después. */
@media (max-width: 980px) {
  .hero3-copy { display: contents; }
  .hero3-kicker, .hero3 .display, .hero3 .lead, .hero3-actions { order: 0; }
  .showcase { order: 1; }
  .hero3-founder { order: 2; margin-top: 4px; }
  .hero3-actions { margin-bottom: 8px; }
  .hero3-grid { gap: 24px; }
  .hero3 .display { margin-bottom: 0; }
}
.badge-fict { white-space: nowrap; }
@media (max-width: 400px) { .showcase-q { font-size: 15px; } }
.svc-name { font-size: clamp(34px, 5.4vw, 80px); }
@media (max-width: 600px) {
  .svc-item summary { grid-template-columns: minmax(0, 1fr) 44px; }
  .svc-name { grid-column: 1 / -1; font-size: min(9vw, 40px); }
  .svc-sub { grid-row: 2; align-self: center; }
  .svc-plus { grid-row: 2; grid-column: 2; }
}
@media (max-width: 480px) {
  .showcase-tabs button { font-size: 14px; padding-inline: 2px; letter-spacing: -0.01em; }
}

/* Botones Atrás / Siguiente siempre visibles al pie del panel, aunque la pregunta sea larga */
.quiz-dialog .quiz-actions:not(.quiz-actions-result) {
  position: sticky; bottom: -18px; z-index: 2;
  margin: 16px -18px -18px; padding: 14px 18px 18px;
  background: linear-gradient(180deg, rgba(20, 19, 26, 0) 0, #14131a 22%);
}
.quiz-dialog .quiz { background: linear-gradient(180deg, #1a1a23, #14131a); }
