/* JKJ SYSTEMS — estilos del sitio
   Tokens en :root. No se usan estilos en línea en el HTML para poder
   aplicar una política CSP estricta (style-src 'self'). */

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #9FE3B1;
  --accent-hi: #B4F0C3;
  --accent-deep: #1E6B4A;
  --on-accent: #0E1A14;
  --bg: #0D1215;
  --bg-2: #101519;
  --ink: #F2F6F4;
  --ink-hi: #F6FAF8;
  --muted: #B9C4BF;
  --muted-2: #A9B4AF;
  --faint: #93A09A;
  --line: rgba(255, 255, 255, .1);
  --card: rgba(21, 28, 32, .86);
  --danger: #FFB4A6;
  --wrap: 1120px;
  --pad: 24px;
  --header: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(1100px 760px at 78% -8%, rgba(159, 227, 177, .10), transparent 62%),
    radial-gradient(900px 700px at -10% 60%, rgba(60, 120, 140, .08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--on-accent); }

img { max-width: 100%; height: auto; }
h1, h2, h3, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }

a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: var(--accent-hi); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 10px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 12px 16px; border-radius: 10px; font-weight: 600; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; color: var(--on-accent); }

/* ---------- Fondo: red de partículas en 3D ---------- */
.net {
  position: fixed; left: 0; top: 0; z-index: 0;
  width: 100vw; height: 100vh; height: 100lvh;
  display: block; pointer-events: none;
}
.header, main, .footer { position: relative; z-index: 1; }

/* ---------- Estructura ---------- */
.wrap {
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
}

.section { position: relative; padding: 112px 0 120px; scroll-margin-top: var(--header); overflow: hidden; overflow: clip; }
.section--a { background: linear-gradient(to bottom, transparent, rgba(8, 12, 15, .5) 12%, rgba(8, 12, 15, .5) 88%, transparent); }
.section--b { background: linear-gradient(to bottom, transparent, rgba(20, 28, 32, .42) 12%, rgba(20, 28, 32, .42) 88%, transparent); }
.section--c { background: linear-gradient(to bottom, transparent, rgba(6, 9, 11, .62) 14%); padding: 104px 0 112px; }

.section__head { max-width: 46em; }

.grid { display: grid; gap: 24px; margin-top: 56px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.steps { margin-top: 64px; }
.demos { gap: 28px; }

/* ---------- Tipografía ---------- */
.h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.02em;
  color: var(--ink-hi); text-wrap: balance;
}
.h2--narrow { max-width: 14em; }
.h2--xl { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -.025em; text-shadow: 0 16px 36px rgba(0, 0, 0, .5); }
.h3 { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.2; letter-spacing: -.01em; color: #fff; }
.h4 { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.25; color: #fff; margin-top: 22px; }
.lead { margin-top: 14px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.lead--wide { max-width: 38em; }
.lead--narrow { margin-top: 22px; max-width: 28em; }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 18px; border: 0; border-radius: 999px;
  font-family: var(--body); font-weight: 600; font-size: 14px; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--ease), background-color .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hi); color: var(--on-accent); transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0) scale(.98); }
.btn--lg { min-height: 52px; padding: 15px 26px; font-size: 16px; box-shadow: 0 18px 30px -12px rgba(159, 227, 177, .45); }
.btn--block { width: 100%; white-space: normal; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid rgba(255, 255, 255, .2); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-hi); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; font-size: 16px; text-underline-offset: 5px; transition: opacity .2s ease; }
.link:hover { opacity: .75; }

/* ---------- Encabezado ---------- */
.header {
  position: sticky; top: 0; z-index: 20;
  padding-top: env(safe-area-inset-top);
  background: rgba(13, 18, 21, .72);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header__in { height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.brand__mark { display: block; width: 40px; height: auto; }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .04em; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 8px; }
.nav__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: #C4CDC9; font-size: 14px; text-decoration: none; transition: color .2s ease; }
.nav__link:hover { color: #fff; }
.btn--sm { margin-left: 8px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; margin-right: -8px;
  border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle__bars { display: grid; gap: 5px; width: 22px; margin: 0 auto; }
.nav-toggle__bars span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s ease; }
.nav-open .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px max(var(--pad), env(safe-area-inset-left)) 20px;
    background: #0D1215;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .8);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s ease, transform .25s var(--ease), visibility 0s linear .25s;
  }
  .nav-open .nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__link { min-height: 48px; font-size: 16px; padding: 0 4px; }
  .btn--sm { margin: 8px 0 0; min-height: 48px; font-size: 15px; }
}

/* ---------- Profundidad 3D ---------- */
.tilt {
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.tilt.is-live { will-change: transform; }
.glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: var(--glare, 0); translate: 0 0 1px;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .17), transparent 55%);
}
.d-12 { translate: 0 0 12px; } .d-14 { translate: 0 0 14px; } .d-16 { translate: 0 0 16px; }
.d-18 { translate: 0 0 18px; } .d-20 { translate: 0 0 20px; } .d-22 { translate: 0 0 22px; }
.d-24 { translate: 0 0 24px; } .d-26 { translate: 0 0 26px; } .d-28 { translate: 0 0 28px; }
.d-30 { translate: 0 0 30px; } .d-34 { translate: 0 0 34px; } .d-38 { translate: 0 0 38px; }
.d-40 { translate: 0 0 40px; } .d-42 { translate: 0 0 42px; } .d-46 { translate: 0 0 46px; }
.d-48 { translate: 0 0 48px; } .d-54 { translate: 0 0 54px; } .d-56 { translate: 0 0 56px; }
.d-58 { translate: 0 0 58px; } .d-62 { translate: 0 0 62px; }

/* ---------- Inicio ---------- */
.hero { padding: 80px 0 96px; }
.hero__in { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero__copy { flex: 1 1 440px; min-width: 0; }
.hero__title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(36px, 5.4vw, 72px); line-height: 1.05; letter-spacing: -.025em;
  color: var(--ink-hi); text-wrap: balance; text-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.hero__lead { margin-top: 28px; max-width: 30em; font-size: 18px; line-height: 1.6; color: var(--muted); }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

.hero__logo { position: relative; flex: 0 1 460px; width: 100%; max-width: 460px; margin: 0 auto; }
.logo-glow {
  position: absolute; left: 50%; top: 46%; width: 150%; aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(circle, rgba(159, 227, 177, .22), transparent 62%);
  pointer-events: none;
}
.logo-stage { position: relative; width: 100%; aspect-ratio: 100 / 116; touch-action: pan-y; cursor: grab; }
.logo-stage.is-drag { cursor: grabbing; }
.logo-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.logo-stage.is-live .logo-canvas { display: block; }
.logo-stage.is-live .logo-fallback { visibility: hidden; }
.logo-fallback { position: absolute; left: 50%; translate: -50% 0; display: block; }
.logo-fallback--emblem { top: 4.1%; width: 92%; }
.logo-fallback--word { top: 53.9%; width: 80%; }
.logo-fallback--tag { top: 92%; width: 80%; }
.logo-shadow {
  position: absolute; left: 12%; right: 12%; bottom: -8px; height: 36px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .6), transparent 70%); filter: blur(6px);
  transform: translateX(var(--shx, 0px)) scaleX(var(--shs, 1)); pointer-events: none;
}

/* ---------- Tarjetas ---------- */
.card {
  position: relative; min-width: 0; border-radius: 28px; padding: 40px;
  background: var(--card);
  box-shadow: calc(var(--sx, 0) * 1px) calc(34px + var(--sy, 0) * 1px) 60px -30px rgba(0, 0, 0, .85), 0 0 0 1px var(--line);
}
.card--accent { box-shadow: calc(var(--sx, 0) * 1px) calc(34px + var(--sy, 0) * 1px) 60px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(159, 227, 177, .2); }
.card--service { display: flex; flex-direction: column; }
.card--step { border-radius: 24px; padding: 32px; }
.card__text { margin-top: 14px; font-size: 16px; line-height: 1.65; color: #B7C2BD; }
.card__text--sm { margin-top: 10px; font-size: 15px; color: var(--muted-2); }
.card__demo { margin-top: auto; padding-top: 40px; transform-style: preserve-3d; }

.browser { transform-style: preserve-3d; border: 1px solid #E3E8E5; border-radius: 16px; background: #F7F9F8; box-shadow: 0 30px 44px -26px rgba(0, 0, 0, .7); }
.browser__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #fff; border-bottom: 1px solid #EDF1EE; border-radius: 15px 15px 0 0; }
.browser__dot { width: 9px; height: 9px; border-radius: 50%; background: #D8DEDB; }
.browser__url { margin-left: 8px; padding: 3px 12px; border-radius: 999px; background: #F0F3F1; font-size: 11px; color: #55625E; }
.browser__body { padding: 22px 22px 24px; transform-style: preserve-3d; }
.browser__nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12px; color: #55625E; }
.browser__nav strong { color: #12181B; font-weight: 600; }
.browser__title { margin-top: 18px; font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; color: #12181B; }
.browser__btns { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.pill { font-size: 12px; font-weight: 600; padding: 9px 16px; border-radius: 999px; }
.pill--green { background: var(--accent-deep); color: #fff; box-shadow: 0 10px 16px -8px rgba(30, 107, 74, .6); }
.pill--ghost { border: 1px solid #D4DBD7; color: #12181B; background: #fff; padding: 8px 16px; }

.convo { transform-style: preserve-3d; border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; background: #192127; padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 30px 44px -26px rgba(0, 0, 0, .7); }
.convo__label { font-size: 12px; color: var(--faint); }
.msg { max-width: 80%; font-size: 14px; line-height: 1.45; padding: 10px 14px; border-radius: 14px; box-shadow: 0 12px 16px -8px rgba(0, 0, 0, .6); }
.msg--in { align-self: flex-start; background: #27323A; color: #E8EEEB; }
.msg--out { align-self: flex-end; background: var(--accent); color: #10201A; }
.convo.is-play .msg { animation: msg-in .6s var(--ease) both; }
.convo.is-play .msg:nth-of-type(1) { animation-delay: .3s; }
.convo.is-play .msg:nth-of-type(2) { animation-delay: 1.1s; }
.convo.is-play .msg:nth-of-type(3) { animation-delay: 1.9s; }
.convo.is-play .msg:nth-of-type(4) { animation-delay: 2.7s; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

.num3d { position: relative; height: 60px; transform-style: preserve-3d; font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 60px; color: var(--accent); }
.num3d__layer { position: absolute; left: 0; top: 0; }

/* ---------- Proyectos de muestra ---------- */
.demo { min-width: 0; }
.demo__shot { aspect-ratio: 4 / 3; border-radius: 22px; }
.demo__shot--resto { background: #2A1C15; color: #F6E7D8; box-shadow: calc(var(--sx, 0) * 1px) calc(34px + var(--sy, 0) * 1px) 50px -30px rgba(0, 0, 0, .8); }
.demo__shot--clinic { background: #E8F2F5; color: #12303B; box-shadow: calc(var(--sx, 0) * 1px) calc(34px + var(--sy, 0) * 1px) 50px -30px rgba(0, 0, 0, .8); }
.demo__shot--shop { background: #FFF4E6; color: #4A3420; box-shadow: calc(var(--sx, 0) * 1px) calc(34px + var(--sy, 0) * 1px) 50px -30px rgba(0, 0, 0, .8); }
.demo__in { position: absolute; inset: 0; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; transform-style: preserve-3d; }
.demo__in--gap { gap: 12px; }
.demo__top { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; }
.demo__top strong { font-weight: 600; }
.demo__shot--resto .demo__top span { color: #D9C2B0; }
.demo__shot--clinic .demo__top span { color: #4C6670; }
.demo__shot--shop .demo__top span { color: #8A6A48; }
.demo__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; transform-style: preserve-3d; }
.demo__block { transform-style: preserve-3d; }
.demo__title { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.15; }
.demo__btn { display: inline-block; font-size: 11px; font-weight: 600; padding: 7px 14px; border-radius: 999px; }
.demo__btn--resto { margin-top: 12px; background: #E9B872; color: #2A1C15; box-shadow: 0 10px 14px -8px rgba(0, 0, 0, .6); }
.demo__btn--shop { align-self: flex-start; background: #4A3420; color: #FFF4E6; box-shadow: 0 12px 16px -8px rgba(74, 52, 32, .7); }
.demo__plate { flex: 0 0 auto; width: 74px; height: 74px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F4D9AE, #B9783A 70%); box-shadow: 0 0 0 8px rgba(233, 184, 114, .15), 0 22px 24px -10px rgba(0, 0, 0, .7); }
.slots { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 7px; transform-style: preserve-3d; }
.slot { font-size: 11px; padding: 6px 11px; border-radius: 9px; background: #fff; color: #12303B; box-shadow: 0 8px 10px -6px rgba(18, 48, 59, .5); }
.slot--on { background: #1F7A8C; color: #fff; font-weight: 600; box-shadow: 0 14px 16px -8px rgba(31, 122, 140, .8); }
.goods { display: flex; gap: 10px; transform-style: preserve-3d; }
.good { flex: 1; min-width: 0; }
.good__img { aspect-ratio: 1; border-radius: 12px; box-shadow: 0 14px 16px -8px rgba(74, 52, 32, .55); }
.good__img--a { background: #F2B880; } .good__img--b { background: #8FBF9F; } .good__img--c { background: #E58F7A; }
.good__bar { margin-top: 7px; height: 6px; border-radius: 3px; background: #D9C3A8; }
.good__bar--a { width: 70%; } .good__bar--b { width: 55%; } .good__bar--c { width: 65%; }
.demo__name { margin-top: 22px; font-family: var(--display); font-weight: 800; font-size: 18px; color: #fff; }
.demo__meta { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--muted-2); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 56px; align-items: start; }
.contact__col { min-width: 0; }
.rows { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; }
.row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px; padding: 16px 22px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px;
  background: rgba(13, 18, 21, .82); color: var(--ink); text-decoration: none;
  box-shadow: calc(var(--sx, 0) * 1px) calc(22px + var(--sy, 0) * 1px) 34px -22px rgba(0, 0, 0, .9);
  transition: border-color .25s ease, background-color .25s ease;
}
.row:hover { border-color: rgba(159, 227, 177, .6); background-color: rgba(22, 36, 31, .9); color: var(--ink); }
.row__txt { min-width: 0; }
.row__label { display: block; font-size: 13px; color: var(--faint); }
.row__value { display: block; margin-top: 2px; font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.row__arrow { flex: 0 0 auto; color: var(--accent); }

/* ---------- Formulario ---------- */
.quote { padding: 32px; border-radius: 24px; }
.quote__hint { margin-top: 8px; font-size: 14px; color: var(--muted-2); }
.field { margin-top: 18px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 0 16px; }
.field__label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; color: #D5DDD9; }
.field__input {
  display: block; width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px;
  background: #0D1316; color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.4;
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field__input::placeholder { color: #7F8C86; }
.field__input:hover { border-color: rgba(255, 255, 255, .28); }
.field__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(159, 227, 177, .22); }
.field__input--area { min-height: 112px; resize: vertical; }
.field__input--select {
  padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 21px) 21px, calc(100% - 15px) 21px;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.field__input--select option { background: #12191D; color: var(--ink); }
.field__input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255, 180, 166, .16); }
.field__err { margin-top: 6px; font-size: 13px; color: var(--danger); }
.field__count { margin-top: 6px; font-size: 12px; color: var(--faint); text-align: right; font-variant-numeric: tabular-nums; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.check { margin-top: 20px; display: flex; gap: 12px; align-items: flex-start; }
.check__box { flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.check__label { font-size: 14px; line-height: 1.5; color: #C9D2CE; }
.btn--block { margin-top: 22px; }
.quote__status { margin-top: 12px; min-height: 1.4em; font-size: 14px; color: var(--muted); }
.quote__status.is-ok { color: var(--accent); }
.quote__status.is-err { color: var(--danger); }
.quote__result { margin-top: 12px; padding: 16px; border: 1px solid rgba(159, 227, 177, .3); border-radius: 14px; background: rgba(159, 227, 177, .06); }
.quote__result-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.quote__result-body { margin: 10px 0 12px; padding: 12px; max-height: 220px; overflow: auto; border-radius: 10px; background: #0D1316; color: #D5DDD9; font-family: var(--body); font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Pie ---------- */
.footer { border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(6, 9, 11, .62); padding-bottom: env(safe-area-inset-bottom); }
.footer__in { padding-top: 26px; padding-bottom: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 13px; color: #A3AEA9; }
.footer__brand { font-family: var(--display); font-weight: 700; color: var(--ink); }
.footer__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.footer__link { color: #C4CDC9; }

/* ---------- Asistente (chatbot) ---------- */
.chat { position: fixed; z-index: 40; right: max(18px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); }
.chat__fab {
  display: grid; place-items: center; width: 60px; height: 60px; padding: 0; border: 0; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); cursor: pointer;
  box-shadow: 0 18px 30px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(159, 227, 177, .4);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--ease), background-color .2s ease;
}
.chat__fab:hover { background: var(--accent-hi); transform: translateY(-2px); }
.chat.is-open .chat__fab { transform: scale(.9); }
.chat.is-away .chat__fab { opacity: 0; pointer-events: none; transform: translateY(12px); }
.chat__fab { transition: transform .25s var(--ease), background-color .2s ease, opacity .2s ease; }
.chat__panel {
  position: absolute; right: 0; bottom: 74px;
  width: min(380px, calc(100vw - 36px)); height: min(560px, calc(100vh - 120px)); height: min(560px, calc(100dvh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 22px; background: #12191D; border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 40px 70px -24px rgba(0, 0, 0, .9);
  transform-origin: 100% 100%;
  animation: chat-in .28s var(--ease) both;
}
.chat__panel[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
.chat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); background: #161E23; }
.chat__title { font-family: var(--display); font-weight: 700; font-size: 15px; color: #fff; }
.chat__sub { display: block; font-size: 12px; color: var(--faint); }
.chat__close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; }
.chat__close:hover { background: rgba(255, 255, 255, .08); }
.chat__log { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat__msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat__msg--bot { align-self: flex-start; background: #222C33; color: #E8EEEB; border-bottom-left-radius: 6px; }
.chat__msg--user { align-self: flex-end; background: var(--accent); color: #10201A; border-bottom-right-radius: 6px; }
.chat__typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 14px; border-radius: 16px; background: #222C33; }
.chat__typing span { width: 6px; height: 6px; border-radius: 50%; background: #9AA7A1; animation: dot 1s ease-in-out infinite; }
.chat__typing span:nth-child(2) { animation-delay: .15s; }
.chat__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.chat__chip { min-height: 40px; padding: 8px 14px; border: 1px solid rgba(159, 227, 177, .4); border-radius: 999px; background: transparent; color: var(--accent); font-family: var(--body); font-size: 14px; cursor: pointer; touch-action: manipulation; transition: background-color .2s ease; }
.chat__chip:hover { background: rgba(159, 227, 177, .12); }
.chat__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(255, 255, 255, .08); background: #161E23; padding-bottom: calc(12px + env(safe-area-inset-bottom) * 0); }
.chat__input { flex: 1 1 auto; min-width: 0; min-height: 46px; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; background: #0D1316; color: var(--ink); font-family: var(--body); font-size: 16px; -webkit-appearance: none; appearance: none; }
.chat__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(159, 227, 177, .22); }
.chat__send { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 14px; background: var(--accent); color: var(--on-accent); cursor: pointer; }
.chat__send:hover { background: var(--accent-hi); }

@media (max-width: 560px) {
  .chat.is-open { inset: 0; right: 0; bottom: 0; }
  .chat.is-open .chat__fab { display: none; }
  .chat__panel {
    position: fixed; left: 0; right: 0; top: 0; bottom: auto;
    width: 100%; height: var(--chat-h, 100dvh); border-radius: 0; border: 0;
    padding-top: env(safe-area-inset-top);
  }
  .chat__form { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  html.chat-lock, html.chat-lock body { overflow: hidden; }
}

/* ---------- Página legal ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 0 96px; }
.legal h1 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; letter-spacing: -.02em; }
.legal h2 { margin-top: 36px; font-family: var(--display); font-weight: 700; font-size: 20px; }
.legal p, .legal li { margin-top: 12px; color: #C9D2CE; max-width: 68ch; }
.legal ul { padding-left: 20px; }
.legal__note { margin-top: 20px; padding: 14px 16px; border: 1px solid rgba(255, 180, 166, .4); border-radius: 12px; background: rgba(255, 180, 166, .07); color: #FFD3C9; font-size: 14px; }

/* ---------- Ajustes móviles ---------- */
@media (max-width: 640px) {
  .section { padding: 80px 0 88px; }
  .section--c { padding: 80px 0 88px; }
  .hero { padding: 48px 0 72px; }
  .hero__in { gap: 36px; }
  .hero__logo { max-width: 340px; }
  .card { padding: 26px; border-radius: 24px; }
  .card--step { padding: 26px; }
  .quote { padding: 24px; }
  .grid { margin-top: 40px; }
  .steps { margin-top: 44px; }
  .contact { gap: 44px; }
  .hero__actions .btn--lg { width: 100%; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .tilt { transform: none; }
}
