/* Landing de Isometric Diagram: el mundo del producto (lienzo de draw.io → suelo isométrico). */
@font-face {
  font-family: "Archivo";
  src: url("/landing/fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  color-scheme: light;
  --brand: #2f6fec;
  --brand-ink: #ffffff;
  --brand-soft: color-mix(in srgb, var(--brand) 12%, transparent);
  --brand-text: var(--brand);
  --frame-shadow: 0 2px 6px rgba(15, 26, 46, .06), 0 24px 60px -20px rgba(15, 26, 46, .25);
  --bg: #f4f6fa;
  --paper: #ffffff;
  --ink: #0f1a2e;
  --ink-2: #44526b;
  --ink-3: #5a687f;
  --line: rgba(15, 26, 46, .12);
  --line-2: rgba(15, 26, 46, .2);
  --dot: #d5dce7;
  --grid: rgba(80, 100, 140, .16);
  --tile: #ffffff;
  --tile-side: #dfe5ee;
  --tile-side-2: #cbd4e1;
  --edge: #8592a8;
  --night: #0b1120;
  --night-2: #131c30;
  --night-ink: #e7ecf5;
  --night-ink-2: #a6b2c8;
  --ok: #12a37f;
  --display: "Archivo", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --text: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --top-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0b1120;
    --paper: #0f1626;
    --ink: #e7ecf5;
    --ink-2: #b3bed2;
    --ink-3: #8592a8;
    --line: rgba(160, 185, 230, .14);
    --line-2: rgba(160, 185, 230, .24);
    --dot: #26314a;
    --grid: rgba(140, 170, 220, .10);
    --tile: #1c2740;
    --tile-side: #141d31;
    --tile-side-2: #0f1727;
    --edge: #6b7a95;
    --night: #060a14;
    --night-2: #0f1626;
    --brand-text: color-mix(in srgb, var(--brand) 62%, #ffffff);
    --frame-shadow: 0 2px 6px rgba(0, 0, 0, .35), 0 24px 60px -20px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
::selection { background: color-mix(in srgb, var(--brand) 28%, transparent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
a { color: var(--brand-text); text-underline-offset: .2em; }
html { scrollbar-color: var(--line-2) transparent; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(32px, 3.6vw, 52px); font-stretch: 112%; font-weight: 700; letter-spacing: -.02em; line-height: 1.04; }
h3 { font-size: 20px; font-weight: 650; letter-spacing: -.005em; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--paper); padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- barra superior ---------- */
.top {
  position: sticky; top: 0; z-index: 20; height: var(--top-h);
  display: flex; align-items: center; gap: 28px; padding: 0 clamp(16px, 3vw, 40px);
  background: var(--bg); border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.top.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); text-decoration: none; font: 700 17px var(--display); font-stretch: 108%; }
.brand [data-brand-name] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mark, .logo { flex: none; }
.mark { width: 26px; height: 26px; color: var(--brand-ink); }
.mark-fill { fill: var(--brand); }
.logo { height: 28px; width: auto; }
.links { display: flex; gap: 22px; }
.links a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.links a:hover { color: var(--ink); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.motion {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 9px;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font: 500 14px var(--text); cursor: pointer;
}
.motion svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 1.6; }
.motion[aria-pressed="true"] svg circle:last-of-type { fill: var(--brand); stroke: var(--brand); }
.motion[aria-pressed="false"] { color: var(--ink-3); }
.motion:hover { color: var(--ink); border-color: var(--ink-3); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 20px;
  border-radius: 11px; border: 1px solid transparent; font: 600 16px var(--text); text-decoration: none; white-space: nowrap;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 88%, #000); }
.btn-ms { background: var(--ink); color: var(--bg); }
.btn-ms:hover { background: color-mix(in srgb, var(--ink) 85%, var(--brand)); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-quiet { height: 36px; padding: 0 14px; font-size: 14px; border-color: var(--line-2); color: var(--ink); border-radius: 9px; }
.btn-quiet:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: var(--night-ink); color: var(--night); }
.l-short { display: none; }
.btn-light:hover { background: #fff; }

/* ---------- 1 · héroe: del plano al isométrico ---------- */
.hero { position: relative; height: 250vh; }
.stage {
  position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); min-height: 560px;
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
}
.hero-copy { text-align: center; padding: clamp(18px, 4vh, 44px) 20px 0; position: relative; z-index: 2; }
h1 {
  font-size: clamp(40px, 5.6vw, 84px); font-stretch: 118%; font-weight: 750; letter-spacing: -.03em; line-height: .98;
}
h1 span { display: block; }
h1 .lift { color: var(--brand-text); }
.lede { max-width: 64ch; margin: 18px auto 0; font-size: clamp(16px, 1.25vw, 19px); color: var(--ink-2); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }

.scene { position: relative; margin: 0; min-height: 0; }
.ground { position: absolute; inset: 0; pointer-events: none; }
/* lienzo de draw.io: retícula de puntos sobre papel */
.ground-flat {
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1.3px, transparent 1.4px);
  background-size: 20px 20px;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}
/* suelo isométrico: cuadrícula a 30° */
.ground-iso {
  opacity: 0;
  background-image: linear-gradient(30deg, var(--grid) 1px, transparent 1px), linear-gradient(150deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 32px;
  mask-image: radial-gradient(ellipse at 50% 55%, #000 45%, transparent 85%);
}
#scene { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.arrowhead { fill: var(--ink); }
.file-tab { position: absolute; left: clamp(16px, 4vw, 56px); top: 14px; font: 600 13px var(--text); color: var(--ink-3); }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line); background: var(--paper); }
.tab-iso { position: absolute; left: 0; top: 0; opacity: 0; color: var(--brand-text); border-color: color-mix(in srgb, var(--brand) 35%, transparent); white-space: nowrap; }
/* pestañas de ejemplos: Azure, AWS, Google Cloud, Kubernetes */
.scene-switch { position: relative; z-index: 3; display: inline-flex; align-items: center; gap: 4px; padding: 4px; margin: 16px auto 0;
  border-radius: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px -12px rgba(15, 26, 46, .35); max-width: calc(100% - 32px); overflow-x: auto; scrollbar-width: none; }
.scene-switch::-webkit-scrollbar { display: none; }
.switch-label { padding: 0 6px 0 8px; font: 600 12px var(--text); color: var(--ink-3); white-space: nowrap; }
.scene-switch button { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border: 0; border-radius: 9px; background: transparent;
  color: var(--ink-2); font: 600 13px var(--text); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.scene-switch button:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.scene-switch button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2), 0 2px 6px -2px rgba(15, 26, 46, .2); }
.scene-switch button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.sw-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.sw-dot.azure { background: #0078d4; }
.sw-dot.aws { background: #ff9900; }
.sw-dot.gcp { background: conic-gradient(#ea4335 0 25%, #fbbc04 0 50%, #34a853 0 75%, #4285f4 0); border-radius: 50%; }
.sw-dot.k8s { background: #326ce5; transform: rotate(45deg) scale(.85); }
.sw-dot.azdo { background: linear-gradient(135deg, #0078d4 50%, #12a37f 50%); }
.sw-dot.devsecops { background: #2088ff; border-radius: 50%; box-shadow: 0 0 0 2px color-mix(in srgb, #12a37f 45%, transparent); }
.switch-sep { width: 1px; height: 18px; margin: 0 4px; background: var(--line-2); flex: none; }
#scene { transition: opacity .26s ease, transform .4s cubic-bezier(.2, .9, .3, 1), filter .26s; }
#scene.swap { opacity: 0; transform: scale(.985); filter: blur(4px); }
.scroll-hint { position: absolute; left: 0; right: 0; bottom: 10px; margin: 0; text-align: center; font-size: 14px; color: var(--ink-3); }
.scroll-hint::after { content: ""; display: block; width: 1.5px; height: 26px; margin: 8px auto 0; background: linear-gradient(var(--ink-3), transparent); }

/* elementos del escenario (dibujados por landing.js) */
.z-top { stroke-width: 1.4; }
.z-face { stroke: none; }
.z-name { font-weight: 600; font-family: var(--text); }
.z-pill text { font-weight: 700; font-family: var(--text); fill: #fff; }
.n-box { fill: var(--tile); stroke: var(--ink); stroke-width: 1.3; }
.n-side { fill: var(--tile-side); }
.n-side2 { fill: var(--tile-side-2); }
.n-label { font-weight: 600; font-family: var(--text); fill: var(--ink); }
.n-warn { fill: #e8a33d; stroke: var(--tile); stroke-width: 2.5; }
.e-flat { stroke: var(--ink); stroke-width: 1.4; fill: none; }
.e-iso { stroke: var(--edge); stroke-width: 2.4; fill: none; stroke-linecap: round; }
.pkt { fill: var(--brand); }
.pkt-halo { fill: color-mix(in srgb, var(--brand) 25%, transparent); }

/* ---------- bandas ---------- */
.band { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.wrap { width: min(1200px, calc(100% - 40px)); margin: 0 auto; position: relative; }

/* 2 · cómo funciona: tres pasos unidos por una conexión con datos */
.how { background: var(--paper); border-top: 1px solid var(--line); }
.flow-wrap { position: relative; margin-top: 56px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); position: relative; z-index: 1; }
.flow li { position: relative; }
.flow p { color: var(--ink-2); margin: 10px 0 0; max-width: 38ch; }
.step-n {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px; border-radius: 10px;
  background: var(--paper); border: 1.5px solid var(--ink); font: 700 18px var(--display); color: var(--ink);
}
.flow li:last-child .step-n { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
/* la conexión une los tres pasos a la altura de sus números y lleva un paquete de datos */
.wire { position: absolute; left: 44px; right: calc((100% - 2 * clamp(24px, 4vw, 64px)) / 3 + 6px); top: 21px; border-top: 1.5px solid var(--edge); z-index: 0; overflow: visible; }
.wire::after { content: ""; position: absolute; right: -2px; top: -6px; border: 5.5px solid transparent; border-left: 9px solid var(--edge); border-right: 0; }
.wire .run { position: absolute; inset: -5px 0 auto 0; height: 9px; transform: translateX(-100%); }
.wire .pk { position: absolute; right: 0; top: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--brand); border: 2px solid var(--paper); opacity: 0; }
.anim .how.inview .wire .run { animation: travel 3.4s cubic-bezier(.45, 0, .2, 1) infinite; }
.anim .how.inview .wire .pk { animation: blink 3.4s linear infinite; }
@keyframes travel { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes blink { 0%, 4% { opacity: 0; } 10%, 90% { opacity: 1; } 100% { opacity: 0; } }

/* 3 · demo */
.demo-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 56px; align-items: end; }
.demo-head h2 { grid-row: span 2; }
.demo-head p { margin: 0; color: var(--ink-2); max-width: 52ch; }
.demo-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.demo-frame {
  margin-top: 40px; position: relative; height: min(70vh, 680px); min-height: 440px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-2); background: var(--paper);
  box-shadow: var(--frame-shadow);
}
.demo-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo-wait { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--ink-3); }
.demo-frame.loaded .demo-wait { display: none; }

/* 4 · funciones: ficha técnica, no tarjetas */
.features { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features h2 { max-width: 20ch; }
.spec { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 96px); }
.spec dl { margin: 0; padding: 26px 0 30px; border-top: 1.5px solid var(--ink); display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 24px; align-content: start; }
.spec dt { grid-row: span 6; font: 700 21px var(--display); font-stretch: 112%; }
.spec dd { margin: 0; color: var(--ink-2); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.spec dd:last-child { border-bottom: 0; }

/* 5 · modo TV: banda de noche */
.screens { background: var(--night); color: var(--night-ink); }
.screens-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.tv { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; border: 9px solid #1d2640; background: #0b1120; box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .7); overflow: hidden; }
.tv::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(30deg, rgba(140, 170, 220, .08) 1px, transparent 1px), linear-gradient(150deg, rgba(140, 170, 220, .08) 1px, transparent 1px); background-size: 46px 26px; }
#tv-scene { position: absolute; inset: 8% 4% 4%; width: 92%; height: 88%; }
.tv-bar { position: absolute; left: 16px; right: 16px; top: 12px; display: flex; justify-content: space-between; font-size: 13px; color: var(--night-ink-2); z-index: 1; }
.live { display: inline-flex; align-items: center; gap: 7px; color: #3ccf9f; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.tv-step { position: absolute; right: 14px; bottom: 14px; max-width: 58%; padding: 10px 14px; border-radius: 10px; background: rgba(19, 28, 48, .94); border: 1px solid rgba(160, 185, 230, .16); display: grid; gap: 2px; font-size: 14px; }
.tv-step small { color: #7fb0ff; font-weight: 700; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.screens h2 { color: #fff; }
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; color: inherit; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 13px; height: 7px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.screens .ticks li { color: var(--night-ink-2); }
.screens .ticks li::before { border-color: #7fb0ff; }
.screens .btn-light { margin-top: 32px; }

/* 6 · equipos e instalación */
.teams-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); }
.teams .ticks li { color: var(--ink-2); }
.soon-note { margin: 14px 0 0; display: inline-flex; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); font-size: 14px; font-weight: 600; }

/* 7 · cierre */
.close { background: var(--paper); border-top: 1px solid var(--line); text-align: center; overflow: hidden; }
.close::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(30deg, var(--grid) 1px, transparent 1px), linear-gradient(150deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 32px; mask-image: radial-gradient(ellipse at 50% 100%, #000 10%, transparent 65%);
}
.close h2 { font-size: clamp(36px, 4.6vw, 68px); font-stretch: 118%; max-width: 22ch; margin: 0 auto; }
.close .cta { margin-top: 34px; }
.contact { margin: 26px 0 0; color: var(--ink-2); }

.foot { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding: 26px clamp(16px, 3vw, 40px); font-size: 14px; color: var(--ink-3); border-top: 1px solid var(--line); }

/* ---------- adaptación ---------- */
@media (max-width: 980px) {
  :root { --top-h: 100px; }
  .top { flex-wrap: wrap; align-content: center; row-gap: 4px; padding-top: 8px; padding-bottom: 6px; }
  .top-actions { margin-left: auto; }
  .links { order: 3; width: 100%; overflow-x: auto; gap: 18px; padding: 4px 0 2px; scrollbar-width: none; }
  .links a { white-space: nowrap; font-size: 14px; }
  .flow { grid-template-columns: 1fr; }
  .wire { display: none; }
  .demo-head, .screens-grid, .teams-grid, .spec { grid-template-columns: 1fr; }
  .demo-head h2 { grid-row: auto; }
  .spec dl { grid-template-columns: 1fr; }
  .spec dt { grid-row: auto; }
}
@media (max-width: 560px) {
  :root { --top-h: 96px; }
  .top { gap: 10px; }
  .brand { font-size: 15px; white-space: nowrap; }
  h1 { font-size: 36px; font-stretch: 108%; }
  .lede { font-size: 15px; margin-top: 12px; }
  .cta { margin-top: 16px; gap: 8px; }
  .hero-copy { padding-top: 14px; }
  .btn-quiet { padding: 0 10px; }
  .l-long { display: none; }
  .l-short { display: inline; }
  .file-tab { top: 4px; }
  .scene-switch { margin-top: 12px; max-width: 100%; gap: 2px; padding: 3px; }
  .scene-switch button { height: 28px; padding: 0 8px; gap: 5px; font-size: 12px; }
  .sw-dot { width: 8px; height: 8px; }
  .switch-label { display: none; }
  .scroll-hint { bottom: 8px; }
  .motion span { display: none; }
  .hero { height: 200vh; }
  .stage { min-height: 520px; }
  .btn { height: 46px; padding: 0 16px; font-size: 15px; }
  .demo-frame { height: 70vh; min-height: 420px; }
  .tv-step { display: none; }
}

@media (max-width: 600px) {
  .hero { height: 320vh; overflow-x: clip; }
  .stage { position: static; display: block; height: 100%; min-height: 0; overflow: visible; }
  .hero-copy { padding-bottom: 8px; }
  .scene { position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); }
  body.static .scene { position: relative; top: 0; height: 78vh; }
}

/* animación pausada: la escena se muestra ya levantada y sin efecto de scroll */
body.static .hero { height: auto; }
body.static .stage { position: relative; top: 0; height: auto; min-height: 0; }
body.static .scene { height: min(64vh, 600px); }

/* la pantalla de TV usa la paleta de noche aunque la página esté en claro */
.tv { --tile: #1c2740; --tile-side: #141d31; --tile-side-2: #0f1727; --edge: #5d6b85; --ink: #e7ecf5; }

/* ---- precios (dominio de la plataforma) */
.pricing { padding: calc(var(--top-h) + 48px) 0 80px; }
.pricing-head { text-align: center; }
.pricing-head h1 { font-family: var(--display); font-size: clamp(30px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -.02em; margin: 0; }
.period { display: inline-flex; gap: 4px; margin: 26px auto 0; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.period label { position: relative; }
.period input { position: absolute; opacity: 0; pointer-events: none; }
.period span { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.period input:checked + span { background: var(--brand); color: var(--brand-ink); }
.period input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.period em { font-style: normal; font-size: 12px; opacity: .85; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 40px 0 0; align-items: stretch; }
.tiers-loading { grid-column: 1 / -1; text-align: center; color: var(--ink-3); }
.tier { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 26px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.tier.featured { border-color: var(--brand); box-shadow: var(--frame-shadow); }
.tier-tag { position: absolute; top: -12px; left: 24px; padding: 3px 10px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 700; }
.tier h2 { margin: 0; font-family: var(--display); font-size: 22px; }
.tier-price { display: grid; gap: 2px; }
.tier-price b { font-family: var(--display); font-size: 38px; line-height: 1; font-variant-numeric: tabular-nums; }
.tier-price small { color: var(--ink-3); font-size: 13.5px; }
.tier ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ink-2); font-size: 14.5px; }
.tier li { padding-left: 22px; position: relative; }
.tier li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 6px; border: solid var(--ok); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.tier .btn { margin-top: auto; justify-content: center; }
.onprem { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin: 40px 0 0; padding: 26px 28px; border: 1px dashed var(--line-2); border-radius: 16px; }
.onprem h2 { margin: 0 0 6px; font-family: var(--display); font-size: 20px; }
.onprem p { margin: 0; max-width: 70ch; color: var(--ink-2); }
.faq { max-width: 760px; margin: 56px auto 0; }
.faq h2 { font-family: var(--display); font-size: 24px; margin: 0 0 12px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 0; color: var(--ink-2); }
@media (max-width: 560px) {
  .pricing { padding-top: calc(var(--top-h) + 28px); }
  .onprem { padding: 20px; }
}
/* ---------- acceso en un modal sobre la landing difuminada ---------- */
.auth-modal { --w: 440px; width: min(var(--w), calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 0; background: transparent; overflow: visible; color: var(--ink); }
.auth-modal::backdrop { background: color-mix(in srgb, #0b1120 34%, transparent); backdrop-filter: blur(14px) saturate(1.25); -webkit-backdrop-filter: blur(14px) saturate(1.25); animation: am-fade .3s ease both; }
.auth-modal[open] .auth-modal-panel { animation: am-in .42s var(--ease) both; }
.auth-modal.closing .auth-modal-panel { animation: am-out .2s ease-in both; }
.auth-modal.closing::backdrop { animation: am-fade .2s ease-in reverse both; }
.auth-modal-panel { position: relative; border-radius: 20px; overflow: hidden; background: var(--paper);
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px -20px rgba(8, 14, 30, .55), 0 8px 24px -12px rgba(8, 14, 30, .3); }
.auth-modal iframe { display: block; width: 100%; height: 420px; border: 0; background: var(--paper); transition: height .32s var(--ease); color-scheme: normal; }
.auth-modal.loading iframe { opacity: 0; }
.auth-modal-x { position: absolute; z-index: 2; top: 14px; right: 14px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 0;
  background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.auth-modal-x:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); color: var(--ink); }
.auth-modal-x:active { transform: scale(.94); }
.auth-modal-x svg { width: 18px; height: 18px; }
.auth-modal-x:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* esqueleto mientras carga la pantalla */
.auth-modal-skel { display: none; position: absolute; inset: 0; padding: 30px 28px; gap: 14px; align-content: start; }
.auth-modal.loading .auth-modal-skel { display: grid; }
.auth-modal-skel i { height: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--line) 25%, color-mix(in srgb, var(--line) 40%, transparent) 50%, var(--line) 75%); background-size: 200% 100%; animation: am-shimmer 1.2s linear infinite; }
.auth-modal-skel i:first-child { width: 50%; height: 24px; }
.auth-modal-skel i:nth-child(2) { width: 85%; }
.auth-modal-skel i:nth-child(3), .auth-modal-skel i:nth-child(4) { height: 40px; }
@keyframes am-fade { from { opacity: 0; } }
@keyframes am-in { from { opacity: 0; transform: translateY(18px) scale(.965); } }
@keyframes am-out { to { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes am-shimmer { to { background-position: -200% 0; } }
/* la página de detrás se aleja un poco */
html.auth-open body > main, html.auth-open body > .top, html.auth-open body > .foot { transition: transform .4s var(--ease), filter .4s; transform: scale(.985); }
body > main, body > .top, body > .foot { transition: transform .3s var(--ease); }
html.auth-open { overflow: hidden; }

/* aviso breve (p. ej. «Has cerrado sesión») */
.landing-toast { position: fixed; left: 50%; bottom: 24px; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 11px 16px 11px 12px; border-radius: 14px;
  background: var(--ink); color: var(--bg); font: 600 14px var(--text); box-shadow: var(--frame-shadow); transform: translate(-50%, 20px); opacity: 0;
  transition: opacity .3s, transform .45s var(--ease); }
.landing-toast.show { opacity: 1; transform: translate(-50%, 0); }
.landing-toast span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; }
.landing-toast svg { width: 15px; height: 15px; }
@media (prefers-reduced-motion: reduce) {
  .auth-modal::backdrop, .auth-modal[open] .auth-modal-panel, .auth-modal.closing .auth-modal-panel { animation: none; }
  .auth-modal iframe, html.auth-open body > main, html.auth-open body > .top, html.auth-open body > .foot { transition: none; transform: none; }
  .landing-toast { transition: opacity .2s; transform: translate(-50%, 0); }
}

/* ---------- 3 · asistente de IA: un vídeo corto hecho con la propia vista ---------- */
.ai { overflow: hidden; }
.ai::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 75% 55%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%),
    radial-gradient(40% 40% at 10% 20%, color-mix(in srgb, #8c4fff 10%, transparent), transparent 70%);
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 5px 12px 5px 10px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-text); font: 700 13px var(--text); letter-spacing: .04em; text-transform: uppercase; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }
.ai-head { max-width: 760px; }
.ai h2 .lift, .plans h2 .lift { color: var(--brand-text); }
.ai-lede { margin: 18px 0 0; color: var(--ink-2); font-size: clamp(16px, 1.2vw, 19px); max-width: 62ch; }

.ai-video { margin: 44px 0 0; position: relative; }
.aiv-win { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: var(--paper); box-shadow: var(--frame-shadow); opacity: var(--fade, 1); transition: opacity .2s; }
.aiv-bar { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.aiv-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.aiv-bar i:nth-child(1) { background: #ff6159; } .aiv-bar i:nth-child(2) { background: #ffbd2e; } .aiv-bar i:nth-child(3) { background: #28c941; }
.aiv-bar span { margin-left: 10px; }
.aiv-model { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); font-size: 12px; }
.aiv-body { display: grid; grid-template-columns: minmax(260px, 0.8fr) minmax(0, 2fr); height: clamp(420px, 46vw, 560px); }
.aiv-chat { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 60%, var(--paper)); min-width: 0; min-height: 0; }
.aiv-log { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 18px; overflow: hidden; min-height: 0; }
.aiv-hint { margin: 0 0 auto; color: var(--ink-3); font-size: 13.5px; }
.aiv-msg { flex: none; max-width: 92%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45;
  opacity: var(--in, 1); transform: translateY(calc((1 - var(--in, 1)) * 10px)); }
.aiv-msg.user { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-bottom-right-radius: 5px; }
.aiv-msg.bot { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); border-bottom-left-radius: 5px; }
.aiv-msg.bot b { color: var(--ink); }
.aiv-msg.thinking { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-3); }
.aiv-msg.thinking[hidden] { display: none; }
.aiv-dots { display: inline-flex; gap: 3px; }
.aiv-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: aiv-dot 1s infinite ease-in-out; }
.aiv-dots i:nth-child(2) { animation-delay: .15s; } .aiv-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes aiv-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.aiv-input { flex: none; display: flex; align-items: flex-end; gap: 10px; margin: 0 14px 14px; padding: 11px 11px 11px 14px; min-height: 56px; border-radius: 14px;
  border: 1.5px solid var(--line-2); background: var(--paper); font-size: 14px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.aiv-input.typing { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.aiv-draft { flex: 1; min-width: 0; line-height: 1.45; }
.aiv-ph { color: var(--ink-3); }
.aiv-input.has .aiv-ph { display: none; }
.aiv-caret { display: none; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: text-bottom; background: var(--brand); animation: aiv-blink 1s steps(1) infinite; }
.aiv-input.typing .aiv-caret { display: inline-block; }
@keyframes aiv-blink { 50% { opacity: 0; } }
.aiv-send { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: var(--brand-ink); }
.aiv-send svg { width: 17px; height: 17px; }

.aiv-canvas { position: relative; min-width: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.aiv-canvas::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(30deg, var(--grid) 1px, transparent 1px), linear-gradient(150deg, var(--grid) 1px, transparent 1px); background-size: 46px 26px;
  mask-image: radial-gradient(ellipse at 50% 55%, #000 30%, transparent 80%); }
/* mientras la IA piensa, una luz recorre el lienzo */
.aiv-canvas::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, var(--brand) 16%, transparent) 50%, transparent 65%); background-size: 250% 100%; }
.aiv-canvas.thinking::after { opacity: 1; animation: aiv-scan 1.4s linear infinite; }
@keyframes aiv-scan { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.aiv-canvas-bar { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 13px; color: var(--ink-3); }
.aiv-stats { font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aiv-create { flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 9px; background: var(--line); color: var(--ink-3); font-weight: 600; font-size: 13.5px;
  transition: background .3s, color .3s, transform .15s, box-shadow .3s; }
.aiv-create.ready { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--brand) 70%, transparent); }
.aiv-create.press { transform: scale(.94); }
#ai-scene { position: relative; flex: 1; width: 100%; min-height: 0; }
.ai-new { fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-dasharray: 6 5; }
.aiv-toast { position: absolute; left: 50%; bottom: 18px; display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px 10px 12px; border-radius: 12px;
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px; white-space: nowrap; box-shadow: var(--frame-shadow);
  transform: translate(-50%, 16px); opacity: 0; transition: opacity .3s, transform .45s var(--ease); }
.aiv-toast svg { width: 20px; height: 20px; padding: 2px; border-radius: 50%; background: var(--ok); color: #fff; }
.aiv-toast.show { opacity: 1; transform: translate(-50%, 0); }

.aiv-controls { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.aiv-play { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); cursor: pointer; }
.aiv-play:hover { border-color: var(--brand); color: var(--brand); }
.aiv-play svg { width: 18px; height: 18px; }
.aiv-play .i-play, .ai-video.paused .aiv-play .i-pause { display: none; }
.ai-video.paused .aiv-play .i-play { display: block; }
.aiv-chapters { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.aiv-chapters button { all: unset; cursor: pointer; display: grid; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.aiv-chapters button:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 4px; }
.aiv-chapters button.on, .aiv-chapters button:hover { color: var(--ink); }
.aiv-chapters i { position: relative; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.aiv-chapters i::after { content: ""; position: absolute; inset: 0; background: var(--brand); transform-origin: left; transform: scaleX(var(--p, 0)); }

.ai-points { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.ai-points li { padding-top: 18px; border-top: 1.5px solid var(--ink); color: var(--ink-2); font-size: 15.5px; }
.ai-points b { display: block; margin-bottom: 6px; color: var(--ink); font: 700 17px var(--display); font-stretch: 108%; }

/* ---------- 4 · plantillas ---------- */
.templates { background: var(--paper); border-top: 1px solid var(--line); }
.tpl-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 56px; align-items: end; }
.tpl-head p { margin: 0; color: var(--ink-2); max-width: 52ch; }
.tpl-cats-grid { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tpl-cats-grid li { position: relative; display: grid; gap: 4px; align-content: start; padding: 18px 52px 18px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg);
  transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.tpl-cats-grid li:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); transform: translateY(-2px); box-shadow: var(--frame-shadow); }
.tpl-cats-grid b { font: 700 17px var(--display); font-stretch: 108%; }
.tpl-cats-grid span { color: var(--ink-3); font-size: 13.5px; line-height: 1.4; }
.tpl-cats-grid em { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand-text); font: 700 14px var(--display); font-style: normal; }
.tpl-cats-grid li.blank { border-style: dashed; background: transparent; }

/* ---------- 8 · equipos ---------- */
.teams-cols { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.team-card { padding: 26px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.team-card .ticks { margin-top: 16px; gap: 11px; font-size: 15px; }
.onprem-band { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; padding: 26px 28px; border: 1px dashed var(--line-2); border-radius: 16px; }
.onprem-band p { margin: 8px 0 0; max-width: 78ch; color: var(--ink-2); }

/* ---------- 9 · planes en la landing y en Precios ---------- */
.plans { background: var(--paper); border-top: 1px solid var(--line); }
.plans-head { text-align: center; }
.plans-head p { margin: 16px auto 0; max-width: 60ch; color: var(--ink-2); }
.plans-more { margin: 28px 0 0; text-align: center; font-weight: 600; }
.tier-plus { margin: 2px 0 -6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.tier li.mod::before { border-color: var(--brand); }
.beta { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 1px 6px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-text); vertical-align: 1px; }
.compare-wrap { margin: 64px 0 0; }
.compare-wrap h2 { font-family: var(--display); font-size: 26px; margin: 0; }
.compare-wrap .muted { margin: 8px 0 0; color: var(--ink-2); max-width: 70ch; }
.compare-scroll { margin-top: 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.compare thead th { background: var(--paper); font: 700 16px var(--display); }
.compare th[scope="row"], .compare thead th:first-child { text-align: left; font-weight: 600; }
.compare th[scope="row"] small { display: block; font-weight: 400; color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.compare tr.grp th { text-align: left; background: var(--bg); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 8px 16px; }
.compare td.yes svg { width: 18px; height: 18px; color: var(--ok); vertical-align: middle; }
.compare td.no { color: var(--ink-3); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 980px) {
  .aiv-body { grid-template-columns: 1fr; grid-template-rows: auto auto; height: auto; }
  .aiv-chat { border-right: 0; border-bottom: 1px solid var(--line); }
  .aiv-log { height: 230px; flex: none; mask-image: linear-gradient(transparent, #000 48px); }
  .aiv-hint { display: none; }
  #ai-scene { height: 340px; flex: none; }
  .ai-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tpl-head { grid-template-columns: 1fr; }
  .tpl-cats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teams-cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .aiv-model { display: none; }
  .aiv-chapters { gap: 6px; }
  .aiv-chapters span { font-size: 11.5px; }
  #ai-scene { height: 260px; }
  .aiv-toast { font-size: 12.5px; }
  .ai-points, .tpl-cats-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .aiv-dots i, .aiv-canvas.thinking::after, .aiv-caret { animation: none; }
  .tpl-cats-grid li { transition: none; }
}

/* ---------- contacto: botón de la cabecera, bloque del cierre, burbuja y formulario ---------- */
.contact-cta { border-color: color-mix(in srgb, var(--brand) 45%, var(--line-2)); color: var(--brand-text); }
.contact-cta:hover { background: var(--brand-soft); }
.talk { margin: 34px auto 0; max-width: 680px; }
.talk-lede { margin: 0 auto; color: var(--ink-2); max-width: 54ch; }
.talk-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 20px; }
.talk-opt { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--paper);
  color: var(--ink); text-align: left; text-decoration: none; font: inherit; cursor: pointer; box-shadow: 0 1px 2px rgba(15, 26, 46, .04);
  transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.talk-opt:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--line-2)); transform: translateY(-2px); box-shadow: var(--frame-shadow); }
.talk-opt b { display: block; font: 700 17px var(--display); font-stretch: 108%; }
.talk-opt small { color: var(--ink-3); font-size: 13.5px; }
.talk-ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; }
.talk-ico svg { width: 24px; height: 24px; }
.talk-ico.mail { background: var(--brand-soft); color: var(--brand-text); }
.talk-ico.wa { background: #25d366; color: #fff; }

/* burbuja flotante */
.contact-fab { position: fixed; right: 20px; bottom: 20px; z-index: 35; display: grid; justify-items: end; gap: 12px; }
.cf-btn { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--brand); color: var(--brand-ink); font: 700 15px var(--text); box-shadow: 0 10px 28px -8px color-mix(in srgb, var(--brand) 70%, transparent), 0 2px 6px rgba(0, 0, 0, .15);
  transition: padding .35s var(--ease), gap .35s var(--ease), transform .2s var(--ease); }
.cf-btn.wa { background: #25d366; color: #fff; box-shadow: 0 10px 28px -8px rgba(37, 211, 102, .7), 0 2px 6px rgba(0, 0, 0, .15); }
.cf-btn svg { width: 26px; height: 26px; flex: none; }
.cf-btn:hover { transform: translateY(-2px); }
.cf-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.cf-label { max-width: 140px; overflow: hidden; white-space: nowrap; transition: max-width .35s var(--ease), opacity .25s; }
.contact-fab.compact:not(.open) .cf-btn { padding: 0 15px; gap: 0; }
.contact-fab.compact:not(.open) .cf-label { max-width: 0; opacity: 0; }
.contact-fab.compact:not(.open) .cf-btn:hover, .contact-fab.compact:not(.open) .cf-btn:focus-visible { padding: 0 22px 0 16px; gap: 10px; }
.contact-fab.compact:not(.open) .cf-btn:hover .cf-label, .contact-fab.compact:not(.open) .cf-btn:focus-visible .cf-label { max-width: 140px; opacity: 1; }
/* pulso suave para que se note (una vez, sin molestar) */
.anim .cf-btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 currentColor; opacity: .35; animation: cf-pulse 2.4s 1.5s 3 ease-out; pointer-events: none; }
.cf-btn { position: relative; }
@keyframes cf-pulse { to { box-shadow: 0 0 0 14px currentColor; opacity: 0; } }
.cf-card { width: min(320px, calc(100vw - 40px)); padding: 16px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--frame-shadow);
  display: grid; gap: 8px; animation: cf-in .3s var(--ease) both; transform-origin: bottom right; }
@keyframes cf-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.cf-head { display: grid; gap: 3px; padding: 2px 4px 8px; }
.cf-head b { font: 700 18px var(--display); font-stretch: 108%; }
.cf-head span { color: var(--ink-3); font-size: 13.5px; line-height: 1.4; }
.cf-opt { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg);
  color: var(--ink); text-decoration: none; text-align: left; font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.cf-opt:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); }
.cf-opt svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-text); }
.cf-opt.wa svg { background: #25d366; color: #fff; }
.cf-opt b { display: block; font-size: 14.5px; }
.cf-opt small { color: var(--ink-3); font-size: 12.5px; }

/* ventana del formulario */
.contact-dlg { width: min(620px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 20px; background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(15, 26, 46, .45); overflow: auto; }
.contact-dlg::backdrop { background: rgba(11, 17, 32, .45); backdrop-filter: blur(4px); }
.contact-dlg[open] { animation: cf-in .3s var(--ease); }
.ct-panel { position: relative; padding: 30px 30px 26px; }
.ct-x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.ct-x:hover { background: var(--brand-soft); color: var(--brand-text); }
.ct-x svg { width: 18px; height: 18px; }
.ct-eyebrow { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 10px; color: var(--brand-text); font: 700 12.5px var(--text); letter-spacing: .05em; text-transform: uppercase; }
.ct-eyebrow svg { width: 18px; height: 18px; }
.ct-panel h2 { font-size: clamp(24px, 3vw, 30px); }
.ct-lede { margin: 10px 0 18px; color: var(--ink-2); font-size: 15px; }
.ct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.ct-field { display: grid; gap: 6px; margin-bottom: 12px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.ct-grid .ct-field { margin-bottom: 0; }
.ct-grid { margin-bottom: 12px; }
.ct-field i { font-style: normal; font-weight: 400; color: var(--ink-3); }
.ct-field input, .ct-field select, .ct-field textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink);
  font: 400 15px var(--text); }
.ct-field textarea { resize: vertical; min-height: 96px; }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.ct-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-error { margin: 0 0 12px; padding: 9px 12px; border-radius: 10px; background: color-mix(in srgb, #d64545 12%, transparent); color: #c13030; font-size: 14px; }
.ct-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 6px; }
.ct-actions small { color: var(--ink-3); font-size: 12.5px; }
.ct-actions .btn svg { width: 20px; height: 20px; }
.ct-done { text-align: center; padding: 18px 0 4px; }
.ct-done p { color: var(--ink-2); }
.ct-done .ct-actions { justify-content: center; }
.ct-ok { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; margin-bottom: 14px; }
.ct-ok svg { width: 34px; height: 34px; }
@media (max-width: 560px) {
  .contact-fab { right: 14px; bottom: 14px; }
  .cf-btn { height: 52px; }
  .ct-panel { padding: 24px 18px 20px; }
  .ct-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .cf-btn, .cf-label, .talk-opt { transition: none; }
  .anim .cf-btn::after, .cf-card, .contact-dlg[open] { animation: none; }
}

/* ---------- cabecera: menú centrado con una píldora que se desliza ---------- */
.top { display: flex; gap: 20px; }
/* marca y botones ocupan lo mismo a cada lado (el menú queda centrado), sin encogerse por debajo de su contenido */
.top .brand, .top .top-actions { flex: 1 1 0; min-width: max-content; }
.top .top-actions { justify-content: flex-end; margin-left: 0; }
.top .links { flex: none; }
.top.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.links { position: relative; gap: 2px; padding: 4px; border-radius: 999px; border: 1px solid transparent; transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease); }
.top.scrolled .links { background: color-mix(in srgb, var(--paper) 75%, transparent); border-color: var(--line); box-shadow: 0 6px 20px -14px rgba(15, 26, 46, .35); }
.links a { position: relative; z-index: 1; padding: 7px 13px; border-radius: 999px; white-space: nowrap; font-size: 14.5px; transition: color .25s var(--ease); }
.links a:hover, .links a[aria-current] { color: var(--ink); }
.links a[aria-current] { color: var(--brand-text); font-weight: 600; }
.links a:focus-visible { outline: 2px solid var(--brand); outline-offset: 0; }
.nav-ink { position: absolute; z-index: 0; left: 0; top: 4px; bottom: 4px; width: var(--ink-w, 0); border-radius: 999px; background: var(--brand-soft);
  transform: translateX(var(--ink-x, 0)); opacity: 0; pointer-events: none; }
.links.has-ink .nav-ink { opacity: 1; }
.links.ink-ready .nav-ink { transition: transform .38s var(--ease), width .38s var(--ease), opacity .2s; }
@media (max-width: 1400px) {
  .top { gap: 14px; }
  .links a { padding: 7px 10px; font-size: 14px; }
  .motion span { display: none; }
  .motion { padding: 0 9px; }
}
@media (max-width: 1300px) {
  .top .contact-cta { display: none; } /* queda «Contacto» en el menú y la burbuja */
  .links a { padding: 6px 8px; font-size: 13.5px; }
}
@media (max-width: 1100px) {
  :root { --top-h: 104px; }
  .top { flex-wrap: wrap; row-gap: 4px; padding-top: 8px; padding-bottom: 6px; align-content: center; }
  .top .brand { flex: 1 1 auto; min-width: 0; }
  .top .top-actions { flex: none; min-width: 0; }
  .top .links { order: 3; flex: 1 1 100%; width: 100%; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
  .links::-webkit-scrollbar { display: none; }
  .top.scrolled .links { background: transparent; border-color: transparent; box-shadow: none; }
}
@media (min-width: 701px) and (max-width: 1100px) { .links { justify-content: safe center; } }
@media (prefers-reduced-motion: reduce) { .links.ink-ready .nav-ink { transition: opacity .2s; } }

/* ---------- SEO: frase clave sobre el titular, preguntas frecuentes y enlaces del pie ---------- */
h1 .kicker { display: block; width: fit-content; margin: 0 auto 14px; padding: 5px 13px; border-radius: 999px; background: var(--brand-soft);
  color: var(--brand-text); font: 700 clamp(11.5px, .95vw, 13.5px)/1.3 var(--text); letter-spacing: .05em; text-transform: uppercase; font-stretch: 100%; }
.faq-band .faq { margin-top: 0; }
.faq-band .faq h2 { font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 18px; }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--brand-text); font-weight: 700; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot-links a { color: inherit; text-decoration: none; }
.foot-links a:hover { color: var(--brand-text); text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- botón de animación: solo icono; un dato viaja por la conexión mientras está activa ---------- */
.top .motion { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 999px; position: relative; }
.top .motion svg { width: 22px; height: 22px; fill: none; stroke: none; overflow: visible; }
.motion .mo-wire { stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; opacity: .45; }
.motion .mo-node { fill: currentColor; }
.motion .mo-dot { fill: var(--brand); }
.motion[aria-pressed="true"] { color: var(--brand-text); border-color: color-mix(in srgb, var(--brand) 40%, var(--line-2)); background: var(--brand-soft); }
.motion[aria-pressed="true"] .mo-dot { animation: mo-travel 1.6s cubic-bezier(.45, 0, .25, 1) infinite; }
.motion[aria-pressed="true"]::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid var(--brand); opacity: 0; animation: mo-ring 3.2s ease-out infinite; pointer-events: none; }
.motion[aria-pressed="false"] { color: var(--ink-3); }
.motion[aria-pressed="false"] .mo-wire { stroke-dasharray: 2 2.4; }
.motion[aria-pressed="false"] .mo-dot { fill: var(--ink-3); }
.motion:hover { color: var(--ink); border-color: var(--ink-3); }
.motion[aria-pressed="true"]:hover { color: var(--brand-text); border-color: var(--brand); }
@keyframes mo-travel { 0% { transform: translateX(-5px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(5px); opacity: 0; } }
@keyframes mo-ring { 0%, 60% { opacity: 0; transform: scale(1); } 70% { opacity: .5; } 100% { opacity: 0; transform: scale(1.35); } }
@media (max-width: 1400px) { .top .motion { padding: 0; } }

/* ---------- textos legales y aceptación en el formulario de contacto ---------- */
.ct-consent { display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 12px; font-size: 13px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.ct-consent input { flex: none; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--brand); }
.ct-consent a { color: var(--brand-text); }
.legal { max-width: 820px; padding-top: calc(var(--top-h) + 40px); padding-bottom: 64px; }
.legal h1 { font-size: clamp(32px, 4vw, 52px); text-align: left; }
.legal .lede { margin: 16px 0 0; max-width: none; text-align: left; }
.legal-meta { margin: 0 0 12px; color: var(--ink-3); font-size: 13.5px; }
.legal-toc { margin: 28px 0 8px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 14.5px; }
.legal-toc li { margin: 3px 0; break-inside: avoid; }
.legal-toc a, .legal section a { color: var(--brand-text); }
.legal section { scroll-margin-top: calc(var(--top-h) + 16px); }
.legal h2 { margin: 36px 0 10px; font-size: 21px; }
.legal p, .legal li { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.legal ul { padding-left: 22px; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }

/* versión desplegada (vX.Y.Z) en el pie: discreta, al final */
.foot-version { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--ink-3); opacity: .8; }

/* guías interactivas */
.guides-head { display: grid; gap: 12px; max-width: 860px; }
.guides-head h2 { margin: 0; }
.guides-head > p:last-child { margin: 0; color: var(--ink-2); max-width: 70ch; }
.guides-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 32px; align-items: start; margin-top: 36px; }
.guides-frame { margin-top: 0; height: min(64vh, 620px); }
.guides-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.guides-points li { padding-top: 14px; border-top: 1.5px solid var(--ink); color: var(--ink-2); font-size: 15px; }
.guides-points b { display: block; color: var(--ink); margin-bottom: 2px; }
.guides-actions { margin-top: 18px; }
@media (max-width: 960px) { .guides-grid { grid-template-columns: 1fr; } .guides-frame { height: 70vh; min-height: 420px; } }
