/* ==========================================================================
   CENIT — estudio web
   Lenguaje visual: estilo Apple. Tipografía Inter (equivalente libre de SF Pro,
   disponible también en Canva para redes), mucho aire, bloques negro / niebla /
   blanco y un único acento ámbar. La "cota" (línea de medida de plano) es el
   sello de la marca.
   ========================================================================== */

:root {
  /* Marca */
  --black: #000000;
  --graphite: #1D1D1F;      /* texto sobre claro */
  --mist: #F5F5F7;          /* secciones claras */
  --white: #FFFFFF;
  --gray: #86868B;          /* texto secundario */
  --gray-2: #6E6E73;
  --hair: rgba(0, 0, 0, .1);
  --amber: #F0B23F;         /* Ámbar Cenit: acento único */
  --amber-hover: #FFC457;
  --amber-ink: #A86A05;     /* ámbar legible sobre claro */
  --plan: #8FB8DE;          /* trazo de plano (solo en maquetas) */

  --f: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  --gutter: max(22px, env(safe-area-inset-left, 0px));
  --gutter-r: max(22px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.25, .1, .25, 1);
  --spring: cubic-bezier(.2, .8, .2, 1);

  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--f);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.011em;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; letter-spacing: inherit; }
::selection { background: var(--amber); color: var(--black); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%; max-width: 1068px; margin-inline: auto;
  padding-left: var(--gutter); padding-right: var(--gutter-r);
}
.wrap--wide { max-width: 1300px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--amber); color: var(--black); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 12px; }

/* ---------- Tipografía (escala tipo Apple) ---------- */
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 700; }
.t-hero { font-size: clamp(52px, 9vw, 112px); line-height: 1.02; letter-spacing: -.045em; }
.t-1 { font-size: clamp(40px, 6vw, 80px); line-height: 1.04; letter-spacing: -.04em; }
.t-3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -.026em; }
.t-sub { font-size: clamp(19px, 2vw, 26px); line-height: 1.3; letter-spacing: -.02em; font-weight: 500; }
.muted { color: var(--gray); }

/* ---------- Botones y enlaces ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 980px; border: 0; cursor: pointer;
  font-size: 17px; font-weight: 500; letter-spacing: -.01em;
  transition: background-color .25s var(--ease), transform .2s var(--ease);
}
.pill:active { transform: scale(.98); }
.pill--amber { background: var(--amber); color: var(--black); }
.pill--amber:hover { background: var(--amber-hover); }
.pill--dark { background: var(--graphite); color: var(--white); }
.pill--dark:hover { background: #333336; }
.pill--sm { min-height: 30px; padding: 0 14px; font-size: 13px; }

.link { color: var(--amber); font-size: 19px; font-weight: 500; display: inline-flex; align-items: center; gap: 3px; background: none; border: 0; padding: 0; cursor: pointer; }
.link::after { content: "›"; font-size: 1.2em; line-height: 1; transform: translateY(-1px); transition: transform .2s var(--ease); }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.link:hover::after { transform: translate(2px, -1px); }
.on-light .link, .on-white .link { color: var(--amber-ink); }

.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 32px; }

/* ---------- Línea de cota (sello de marca) ---------- */
.dim {
  display: flex; align-items: center; gap: 12px; height: 12px;
  border-inline: 1px solid currentColor;
  font: 500 11px/1 var(--f-mono); letter-spacing: .02em; color: #48484A;
}
.dim::before, .dim::after { content: ""; flex: 1; height: 1px; background: currentColor; }
.dim span { white-space: nowrap; }

/* ==========================================================================
   NAV (vidrio esmerilado)
   ========================================================================== */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  background: rgba(22,22,23,.95); z-index: 110;
}
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: rgba(22, 22, 23, .78);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 52px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 700; letter-spacing: -.05em; }
.logo svg { width: 21px; height: 22px; color: var(--amber); flex: none; }
.nav__links { display: flex; align-items: center; gap: 32px; font-size: 13px; }
.nav__links a { color: rgba(255,255,255,.8); transition: color .2s; }
.nav__links a:hover { color: var(--white); }
.nav__links .pill { color: var(--black); }
.nav__toggle { display: none; background: none; border: 0; color: var(--white); width: 40px; height: 40px; cursor: pointer; padding: 0; place-items: center; }
.nav__toggle svg { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .nav__toggle { display: grid; }
  .nav__links {
    position: absolute; top: 52px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(22,22,23,.98); padding: 6px var(--gutter-r) 24px var(--gutter);
    display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { font-size: 26px; font-weight: 600; letter-spacing: -.025em; padding: 10px 0; color: var(--white); }
  .nav__links .pill { margin-top: 16px; font-size: 17px; min-height: 48px; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding-block: clamp(72px, 10vw, 128px) clamp(80px, 10vw, 136px); text-align: center; overflow: hidden; }
.hero .t-hero { max-width: 10ch; margin-inline: auto; }
.hero .t-sub { color: var(--gray); max-width: 28ch; margin: 24px auto 0; }
.hero .actions { margin-top: 38px; }

.showcase { margin-top: clamp(64px, 9vw, 104px); }
.showcase .dim { margin-bottom: 16px; }
.showcase__cap { margin-top: 22px; font-size: 14px; color: var(--gray); }

.frame {
  position: relative; border-radius: 18px; overflow: hidden; background: #0B0B0C; text-align: left;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 50px 100px -30px rgba(0,0,0,.9), 0 40px 140px -50px rgba(240,178,63,.22);
}
.frame__bar { display: flex; align-items: center; gap: 14px; height: 36px; padding: 0 14px; background: #1C1C1E; }
.frame__dots { display: flex; gap: 7px; }
.frame__dots i { width: 11px; height: 11px; border-radius: 50%; background: #3A3A3C; }
.frame__url {
  flex: 1; max-width: 300px; margin-inline: auto; height: 22px; border-radius: 6px; background: #2C2C2E;
  color: var(--gray); font-size: 12px; line-height: 22px; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-inline: 10px;
}
.frame__bar::after { content: ""; width: 47px; }

.stage { position: relative; container-type: inline-size; aspect-ratio: 16 / 10; overflow: hidden; --pos: 40; }
.stage .mk { position: absolute; inset: 0; isolation: isolate; }
.stage .mk--real { clip-path: inset(0 0 0 calc(var(--pos) * 1%)); }
.stage__handle { position: absolute; top: 0; bottom: 0; left: calc(var(--pos) * 1%); width: 0; z-index: 3; pointer-events: none; }
.stage__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--white); box-shadow: 0 0 20px rgba(0,0,0,.5); }
.stage__knob {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--black);
  display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
.stage__knob svg { width: 20px; height: 20px; }
.stage__range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.stage__range:focus-visible + .stage__handle .stage__knob { outline: 3px solid var(--amber); outline-offset: 3px; }
.stage__tag {
  position: absolute; bottom: 14px; z-index: 2; pointer-events: none;
  font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 980px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.stage__tag--plan { left: 14px; color: var(--white); background: rgba(0,0,0,.6); }
.stage__tag--real { right: 14px; color: var(--black); background: rgba(255,255,255,.88); }

/* ==========================================================================
   MAQUETA RALLY (1em = fracción del ancho del marco)
   ========================================================================== */
.mk { font-size: 1.12cqw; line-height: 1.35; overflow: hidden; font-family: var(--f); letter-spacing: -.01em; }
.mk .box { position: relative; }
.mk .ph { position: relative; overflow: hidden; }
.mk .ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.rally { background: #F3F1EC; color: #101A22; display: grid; grid-template-rows: auto auto 1fr; }
.r-nav { display: flex; align-items: center; justify-content: space-between; height: 4.6em; padding: 0 3.2em; background: #0D1F2B; color: #F3F1EC; }
.r-logo { font-weight: 800; letter-spacing: .14em; font-size: 1.3em; }
.r-nav nav { display: flex; gap: 2.4em; font-size: .95em; opacity: .85; }
.r-cart { font-size: .9em; border: 1px solid rgba(243,241,236,.35); padding: .45em .9em; border-radius: 2em; }
.r-hero { height: 31em; background: #183447; color: #F3F1EC; display: flex; align-items: center; }
.r-copy { position: relative; z-index: 1; padding: 0 3.2em; width: 50%; }
.r-kick { font-size: .95em; color: #F0B23F; margin-bottom: 1em; }
.r-h { font-size: 3.7em; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.r-ctas { display: flex; align-items: center; gap: 1.6em; margin-top: 2em; font-size: .95em; }
.r-btn { background: #F0B23F; color: #0D1F2B; font-weight: 700; padding: 1em 1.8em; border-radius: 2em; }
.r-link { opacity: .85; }
.r-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4em; padding: 1.8em 3.2em 2.2em; }
.r-card { font-size: .95em; }
.r-thumb { aspect-ratio: 16/9; border-radius: .6em; background: #DDE2E4; margin-bottom: .8em; }
.r-card:nth-child(1) .r-thumb > img { transform: scale(2.2); transform-origin: 72% 34%; }
.r-card:nth-child(2) .r-thumb > img { transform: scale(3.4); transform-origin: 74% 88%; }
.r-card:nth-child(3) .r-thumb > img { transform: scale(1.5); transform-origin: 70% 50%; }
.r-card:nth-child(4) .r-thumb > img { transform: scale(3.6); transform-origin: 66% 74%; }
.r-price { font-weight: 700; margin-top: .2em; }

/* Modo plano: la misma maqueta como wireframe */
.mk--plan {
  background-color: #05080B !important;
  background-image:
    linear-gradient(rgba(143,184,222,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,184,222,.07) 1px, transparent 1px) !important;
  background-size: 2em 2em !important;
}
.mk--plan * {
  color: var(--plan) !important; background: transparent !important;
  border-color: rgba(143,184,222,.45) !important; box-shadow: none !important;
  font-family: var(--f-mono) !important; font-weight: 400 !important; letter-spacing: 0 !important;
}
.mk--plan .box { outline: 1px dashed rgba(143,184,222,.5); outline-offset: -1px; }
.mk--plan .ph > img { display: none; }
.mk--plan .ph {
  outline: 1px solid rgba(143,184,222,.45); outline-offset: -1px;
  background-image:
    linear-gradient(to top right, transparent calc(50% - .5px), rgba(143,184,222,.3) 50%, transparent calc(50% + .5px)),
    linear-gradient(to bottom right, transparent calc(50% - .5px), rgba(143,184,222,.3) 50%, transparent calc(50% + .5px)) !important;
}
.mk--plan .r-h { font-size: 2.9em; line-height: 1.1; }
.mk--plan [data-dim]::after {
  content: attr(data-dim); position: absolute; left: .6em; top: .5em; z-index: 2;
  font-size: .78cqw; line-height: 1; padding: .45em .7em; border-radius: 1em;
  color: var(--black) !important; background: var(--amber) !important; font-family: var(--f-mono) !important; white-space: nowrap;
}
.mk--plan .r-h[data-dim]::after { top: calc(100% + .4em); left: 0; }
.mk--plan .r-btn[data-dim]::after { top: calc(100% + .5em); left: 0; }
.mk--plan .r-nav[data-dim]::after { left: auto; right: .6em; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   SECCIONES
   ========================================================================== */
.sec { padding-block: clamp(96px, 12vw, 160px); }
.on-light { background: var(--mist); color: var(--graphite); }
.on-white { background: var(--white); color: var(--graphite); }
.on-light .muted, .on-white .muted { color: var(--gray-2); }
.sec__head { text-align: center; margin-bottom: clamp(48px, 6vw, 80px); }
.sec__head .t-sub { margin: 18px auto 0; max-width: 32ch; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile {
  background: var(--white); border-radius: 28px; padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 10px; overflow: hidden; min-width: 0; min-height: 400px;
}
.tile p { color: var(--gray-2); font-size: 17px; max-width: 32ch; }
.tile__vis { margin-top: auto; padding-top: 28px; display: flex; justify-content: center; align-items: flex-end; }
.tile--wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 40px; }
.tile--wide .tile__copy { flex: 0 1 42%; display: grid; gap: 10px; }
.tile--wide .tile__vis { flex: 1; margin: 0; padding: 0; }
.tile--tall { grid-row: span 2; }
.tile__vis--phone { padding-bottom: 0; margin-bottom: calc(-1 * clamp(28px, 3vw, 40px)); }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--tall { grid-row: auto; }
}
@media (max-width: 720px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile--wide { grid-column: auto; flex-direction: column; align-items: stretch; min-height: 0; gap: 10px; }
  .tile--wide .tile__vis { padding-top: 24px; }
}

.vis-plan { width: 100%; max-width: 380px; color: var(--graphite); }
.vis-plan svg { width: 100%; height: auto; display: block; }

.vis-speed { width: 100%; max-width: 380px; display: grid; gap: 16px; }
.vis-speed__num { font-size: clamp(80px, 10vw, 124px); font-weight: 700; letter-spacing: -.065em; line-height: .86; color: var(--graphite); font-variant-numeric: tabular-nums; }
.vis-speed__num small { font-size: .36em; letter-spacing: -.02em; color: var(--gray-2); margin-left: .14em; font-weight: 600; }
.vis-speed__bar { height: 8px; border-radius: 8px; background: #E8E8ED; overflow: hidden; }
.vis-speed__bar i { display: block; height: 100%; width: 80%; border-radius: inherit; background: var(--amber); }
.vis-speed .dim { color: #AEAEB2; }

.vis-phone {
  width: 250px; aspect-ratio: 9 / 19.5; border-radius: 40px; background: var(--graphite);
  padding: 9px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35); margin-bottom: -70px; position: relative;
}
.vis-phone__screen { position: relative; height: 100%; border-radius: 28px; overflow: hidden; background: #0D1F2B; color: #F3F1EC; container-type: inline-size; }
.vis-phone__screen img { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 64%; object-fit: cover; object-position: 74% 40%; }
.vis-phone__copy { position: absolute; left: 0; right: 0; top: 50%; padding: 12cqw 9cqw; background: linear-gradient(transparent, #0D1F2B 22%); display: grid; gap: 5cqw; }
.vis-phone__copy small { font-size: 5.5cqw; color: #F0B23F; }
.vis-phone__copy b { font-size: 11cqw; line-height: 1; letter-spacing: -.04em; }
.vis-phone__copy span { justify-self: start; font-size: 6cqw; font-weight: 700; background: #F0B23F; color: #0D1F2B; padding: 3.5cqw 7cqw; border-radius: 20cqw; }
.vis-phone__isl { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 30%; height: 20px; border-radius: 12px; background: #000; z-index: 2; }

.vis-own { width: 100%; max-width: 380px; display: grid; }
.vis-own__url { display: flex; align-items: center; gap: 10px; background: var(--mist); border-radius: 14px; padding: 14px 16px; font-size: 17px; font-weight: 600; color: var(--graphite); margin-bottom: 8px; }
.vis-own__url svg { width: 15px; height: 15px; color: var(--gray-2); flex: none; }
.vis-own__row { display: flex; justify-content: space-between; align-items: center; padding: 13px 4px; border-bottom: 1px solid var(--hair); font-size: 15px; color: var(--graphite); }
.vis-own__row:last-child { border-bottom: 0; }
.vis-own__row span:last-child { color: var(--gray-2); font-size: 13px; }

/* ---------- Trabajos (espacios para completar) ---------- */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.work { display: grid; gap: 18px; align-content: start; min-width: 0; }
.work__media { aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; position: relative; background: var(--mist); }
.work__media img { width: 100%; height: 100%; object-fit: cover; }
.work__media--empty {
  display: grid; place-items: center;
  background-color: var(--mist);
  background-image:
    linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 24px 24px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.work__name { font-size: 21px; font-weight: 650; letter-spacing: -.022em; color: var(--graphite); }
.work__kind { font-size: 15px; color: var(--gray-2); margin-top: 2px; }
.work--empty .work__name, .work--empty .work__kind { color: #C7C7CC; }
@media (max-width: 900px) { .works { grid-template-columns: 1fr 1fr; } .works .work:last-child { display: none; } }
@media (max-width: 600px) { .works { grid-template-columns: 1fr; } .works .work:last-child { display: grid; } .work__media { aspect-ratio: 4 / 3; } }

/* ---------- Atención 24 h ---------- */
.care__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.care__copy { text-align: left; }
.care__copy .actions { justify-content: flex-start; }
.care__dial { width: 112px; margin: 0 0 36px; }
@media (max-width: 860px) { .care__grid { grid-template-columns: 1fr; } .care__copy { text-align: center; } .care__copy .actions { justify-content: center; } .care__dial { margin-inline: auto; } }
.care__dial svg { width: 100%; height: auto; display: block; }
.care .t-sub { color: var(--gray); max-width: 30ch; margin-top: 24px; }
@media (max-width: 860px) { .care .t-sub { margin-inline: auto; } }
.care .actions { margin-top: 40px; }

/* ---------- Cierre ---------- */
.close { text-align: center; }
.close .t-sub { max-width: 28ch; margin: 24px auto 0; }
.close .actions { margin-top: 40px; }
.contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 56px; margin: 72px 0 0; padding-top: 40px; border-top: 1px solid var(--hair); }
.contact div { display: grid; gap: 4px; }
.contact dt { font-size: 13px; color: var(--gray-2); }
.contact dd { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }

.foot { background: var(--mist); color: var(--gray-2); font-size: 12px; padding-block: 0 28px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.foot__in { border-top: 1px solid var(--hair); padding-top: 18px; width: 100%; display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }

/* ==========================================================================
   ASISTENTE (chat)
   ========================================================================== */
.chat-launch {
  position: fixed; z-index: 120;
  right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px 0 18px;
  border: 0; border-radius: 980px; cursor: pointer;
  background: rgba(29,29,31,.86); color: var(--white);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 12px 32px rgba(0,0,0,.35);
  font-size: 15px; font-weight: 600; transition: transform .25s var(--spring), opacity .2s;
}
.chat-launch:hover { transform: translateY(-2px); }
.chat-launch__dot { width: 8px; height: 8px; border-radius: 50%; background: #34C759; box-shadow: 0 0 0 3px rgba(52,199,89,.25); }
.chat-launch[aria-expanded="true"] { opacity: 0; pointer-events: none; }

.chat {
  position: fixed; z-index: 130;
  right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(400px, calc(100vw - 32px)); height: min(640px, calc(100vh - 100px));
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 24px; background: rgba(28,28,30,.95); color: var(--white);
  backdrop-filter: saturate(180%) blur(28px); -webkit-backdrop-filter: saturate(180%) blur(28px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 30px 80px rgba(0,0,0,.5);
  transform-origin: bottom right;
  transition: transform .35s var(--spring), opacity .25s var(--ease), visibility 0s;
}
.chat.is-closed { opacity: 0; transform: scale(.92) translateY(12px); pointer-events: none; visibility: hidden; transition: transform .25s var(--ease), opacity .2s var(--ease), visibility 0s .25s; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.chat__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--black); display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.chat__avatar svg { width: 19px; height: 20px; color: var(--amber); }
.chat__title { display: grid; gap: 1px; flex: 1; min-width: 0; }
.chat__title b { font-size: 15px; }
.chat__title span { font-size: 12px; color: var(--gray); display: flex; align-items: center; gap: 6px; }
.chat__title span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34C759; }
.chat__close { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: var(--white); cursor: pointer; display: grid; place-items: center; }
.chat__close:hover { background: rgba(255,255,255,.18); }
.chat__close svg { width: 11px; height: 11px; }

.chat__log { flex: 1; overflow-y: auto; padding: 18px 14px 8px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 20px; font-size: 15px; line-height: 1.38; white-space: pre-line; animation: msgIn .3s var(--spring); overflow-wrap: anywhere; }
.msg--bot { align-self: flex-start; background: #2C2C2E; border-bottom-left-radius: 6px; }
.msg--user { align-self: flex-end; background: var(--amber); color: var(--black); border-bottom-right-radius: 6px; }
.msg--typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--gray); animation: dot 1s infinite ease-in-out; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 6px; }
.chip {
  border: 1px solid rgba(240,178,63,.55); background: transparent; color: var(--amber);
  border-radius: 980px; padding: 8px 14px; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background-color .2s; text-align: left;
}
.chip:hover { background: rgba(240,178,63,.12); }
.chip--solid { background: var(--amber); color: var(--black); border-color: var(--amber); }
.chip--solid:hover { background: var(--amber-hover); }

.chat__form { display: flex; gap: 8px; padding: 10px 12px 8px; border-top: 1px solid rgba(255,255,255,.08); }
.chat__input {
  flex: 1; min-width: 0; height: 40px; border-radius: 980px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06); color: var(--white); padding: 0 16px; font: 16px var(--f); outline: none;
}
.chat__input::placeholder { color: var(--gray); }
.chat__input:focus { border-color: var(--amber); }
.chat__send { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--amber); color: var(--black); cursor: pointer; display: grid; place-items: center; flex: none; }
.chat__send svg { width: 16px; height: 16px; }
.chat__note { font-size: 11px; color: var(--gray); text-align: center; padding: 0 12px 10px; }

@media (max-width: 520px) {
  .chat { right: 0; bottom: 0; width: 100vw; height: calc(100% - 60px - env(safe-area-inset-top, 0px)); border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
}

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

/* ---------- Visuales extra del bento ---------- */
.vis-serp { width: 100%; max-width: 360px; display: grid; gap: 14px; }
.vis-serp__bar { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 22px; background: var(--white); box-shadow: 0 0 0 1px var(--hair), 0 4px 14px rgba(0,0,0,.06); font-size: 15px; color: var(--graphite); }
.vis-serp__bar svg { width: 15px; height: 15px; color: var(--gray-2); flex: none; }
.vis-serp__res { display: grid; gap: 3px; padding: 4px 6px; }
.vis-serp__res small { font-size: 12px; color: var(--gray-2); }
.vis-serp__res b { font-size: 17px; font-weight: 500; color: #1A0DAB; letter-spacing: -.01em; }
.vis-serp__res span { font-size: 13px; color: var(--gray-2); }

.vis-wa { width: 100%; max-width: 340px; background: var(--mist); border-radius: 20px; padding: 14px 16px 16px; display: grid; gap: 8px; box-shadow: 0 10px 30px -12px rgba(0,0,0,.18); }
.vis-wa__head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--graphite); }
.vis-wa__head i { width: 22px; height: 22px; border-radius: 6px; background: #25D366; }
.vis-wa__head span { margin-left: auto; font-weight: 400; color: var(--gray-2); }
.vis-wa p { font-size: 15px; line-height: 1.38; color: var(--graphite); max-width: none; }

/* ---------- Rubros (cinta) ---------- */
.ticker { display: flex; overflow: hidden; border-block: 1px solid rgba(255,255,255,.08); padding-block: 22px; background: var(--black); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker__track { display: flex; align-items: center; gap: 28px; padding: 0 14px; margin: 0; list-style: none; flex: none; animation: tick 48s linear infinite; }
.ticker__track li { white-space: nowrap; font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; letter-spacing: -.025em; color: #D2D2D7; }
.ticker__sep { color: var(--amber) !important; display: flex; }
.ticker__sep svg { width: 15px; height: 16px; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-100%); } }

/* ---------- Servicios (carrusel) ---------- */
.services { background: var(--black); padding-bottom: clamp(96px, 11vw, 150px); }
.services__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; }
.services__nav { display: flex; gap: 12px; }
.arrow { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: #1D1D1F; color: var(--white); display: grid; place-items: center; transition: background-color .2s, opacity .2s; }
.arrow:hover { background: #2C2C2E; }
.arrow:disabled { opacity: .35; cursor: default; }
.arrow svg { width: 16px; height: 16px; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(400px, 82vw); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline-offset: -2px;
  padding-inline: max(var(--gutter), calc((100vw - 1300px) / 2 + 22px));
  scroll-padding-inline: max(var(--gutter), calc((100vw - 1300px) / 2 + 22px));
}
.rail::-webkit-scrollbar { display: none; }
.card { position: relative; scroll-snap-align: start; aspect-ratio: 4 / 5.2; border-radius: 28px; overflow: hidden; background: #1D1D1F; color: var(--white); display: flex; flex-direction: column; }
.card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,0) 46%); }
.card--light::after { background: linear-gradient(180deg, rgba(232,240,238,.97) 0%, rgba(232,240,238,.85) 30%, rgba(232,240,238,0) 58%); }
.card__txt { position: relative; z-index: 1; padding: 30px 30px 0; display: grid; gap: 8px; }
.card__kick { font-size: 14px; font-weight: 600; color: var(--amber); letter-spacing: -.005em; }
.card h3 { font-size: clamp(24px, 2.2vw, 28px); line-height: 1.12; letter-spacing: -.026em; max-width: 15ch; }
.card--light { color: var(--graphite); }
.card--light .card__kick { color: var(--amber-ink); }

.card--landing { background: linear-gradient(180deg, #1D1D1F, #111112); }
.lp { margin: auto 30px 30px; display: grid; justify-items: center; gap: 6px; }
.lp__ad { width: 100%; display: flex; align-items: center; gap: 10px; background: #2C2C2E; border-radius: 14px; padding: 12px 14px; font-size: 13px; }
.lp__ad i { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, #F0B23F, #E1306C); }
.lp__ad span { margin-left: auto; color: var(--gray); }
.lp__arrow { width: 12px; height: 26px; color: #48484A; }
.lp__page { width: 100%; background: #F3F1EC; color: #101A22; border-radius: 14px; padding: 14px; display: grid; gap: 7px; font-size: 13px; }
.lp__page span { height: 7px; border-radius: 4px; background: #D9D6CE; }
.lp__page span:nth-child(3) { width: 70%; }
.lp__page em { font-style: normal; justify-self: start; background: #F0B23F; color: #000; font-weight: 600; padding: 6px 12px; border-radius: 20px; font-size: 12px; }
.lp__wa { width: 100%; text-align: center; background: rgba(37,211,102,.14); color: #5BE38F; border-radius: 14px; padding: 12px; font-size: 13px; font-weight: 600; }

.card--redo { background: #F5F5F7; color: var(--graphite); }
.card--redo .card__kick { color: var(--amber-ink); }
.redo { margin: auto 30px 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.redo > div { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.redo small { position: absolute; left: 0; right: 0; bottom: -24px; text-align: center; font-size: 12px; color: var(--gray-2); }
.redo__old { background: #E3E3E8; }
.redo__old span { height: 14px; background: #C7C7CC; border-radius: 2px; }
.redo__old span:nth-child(2) { width: 60%; background: #B4B4BA; }
.redo__old span:nth-child(3) { height: 40px; }
.redo__new { background: #000; color: #fff; justify-content: flex-end; }
.redo__new b { font-size: 20px; line-height: 1; letter-spacing: -.04em; }
.redo__new em { width: 56%; height: 18px; border-radius: 10px; background: #F0B23F; }

/* ---------- Vista previa del asistente ---------- */
.convo { background: #1C1C1E; border-radius: 28px; padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 120px -40px rgba(240,178,63,.25); }
.convo__head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
.convo__head div { display: grid; }
.convo__head b { font-size: 15px; }
.convo__head span:not(.chat__avatar) { font-size: 12px; color: #34C759; }
.convo__time { align-self: center; font-size: 12px; color: var(--gray); margin: 4px 0; }
.convo .msg { animation: none; }
.convo .chips { padding-top: 6px; }
.convo .chip { cursor: default; }

@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }
@media (max-width: 600px) { .services__nav { display: none; } .services__head { margin-bottom: 32px; } }
