/* ==========================================================================
   AERIA · aer-ia.com — hoja de estilos (2026-10)
   Marca: manual light-turquesa. Bricolage Grotesque / DM Sans / DM Mono.
   Turquesa = acento (puntos, botones con texto Ink, detalles). Nunca texto largo.
   ========================================================================== */

:root {
  --ink: #0A0F1A;
  --ink-2: #131B2B;
  --ink-3: #1C2638;
  --bg: #F6F8FC;
  --panel: #FFFFFF;
  --panel-2: #EEF2F8;
  --cyan: #2DD4DE;
  --cyan-hover: #22C2CC;
  --cyan-soft: rgba(45, 212, 222, .14);
  --teal: #0A7682;            /* turquesa legible sobre claro (texto pequeño) */
  --fog: #E6EAF2;
  --slate: #8893A7;
  --text-2: #4B5568;          /* secundario con contraste AA sobre --bg */
  --line: rgba(10, 15, 26, .09);
  --line-2: rgba(10, 15, 26, .14);
  --ok: #22C55E;
  --hold: #F59E0B;
  --ko: #EF4444;

  --f-display: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  --f-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --f-mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 22px;
  --radius-lg: 32px;
  --shadow-sm: 0 1px 2px rgba(10, 15, 26, .05), 0 2px 8px rgba(10, 15, 26, .04);
  --shadow-md: 0 2px 6px rgba(10, 15, 26, .05), 0 18px 40px -16px rgba(10, 15, 26, .18);
  --shadow-lg: 0 30px 80px -30px rgba(10, 15, 26, .35);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 68px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.04; letter-spacing: -.025em; margin: 0; font-optical-sizing: auto; }
p { margin: 0; }
:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--cyan); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
.mono { font-family: var(--f-mono); }

/* Etiqueta pequeña de sección (dato, no titular) */
.on-dark 
.h-sec { font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 18ch; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-2); max-width: 58ch; }
.on-dark .lead { color: #AEB8CA; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head--center { justify-items: center; text-align: center; }
.sec-head--center .h-sec, .sec-head--center .lead { margin-inline: auto; }

section { position: relative; }
.sec { padding-block: clamp(80px, 11vw, 150px); }
.on-dark { background: var(--ink); color: #F2F5FA; }

/* ---------- botones ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: 999px;
  font-family: var(--f-body); font-size: 16px; font-weight: 600; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer; border: 0;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--cyan); color: var(--ink); box-shadow: none; }
.btn--primary:hover { background: var(--cyan-hover); transform: translateY(-1px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); transform: translateY(-1px); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.on-dark .btn--line { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); }
.on-dark .btn--line:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 15px; }

/* Distintivo oficial de Apple: sin modificar, con su área de respeto */
.appstore { display: inline-flex; flex: none; border-radius: 12px; transition: transform .25s var(--ease), opacity .25s; }
.appstore img { height: 52px; width: auto; }
.appstore:hover { transform: translateY(-1px); }
.appstore--sm img { height: 42px; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* Estado de plataforma */
.platforms { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 10px;
  border-radius: 999px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13.5px; font-weight: 500; color: var(--ink); white-space: nowrap;
}
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(34, 197, 94, .16); }
.pill--soon i { background: var(--hold); box-shadow: 0 0 0 3px rgba(245, 158, 11, .16); }
.pill small { color: var(--text-2); font-size: 13px; font-weight: 400; }
.on-dark .pill { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: #fff; }
.on-dark .pill small { color: #AEB8CA; }

/* ---------- cabecera ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), transform .4s var(--ease);
}
.header.is-scrolled { background: rgba(246, 248, 252, .82); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 1px 0 var(--line); }
.header .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.header__logo { display: flex; align-items: center; flex: none; }
.header__logo img { height: 24px; width: auto; }
.header__nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.header__nav a { padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--text-2); text-decoration: none; transition: color .2s, background-color .2s; }
.header__nav a:hover, .header__nav a[aria-current="page"] { color: var(--ink); background: rgba(10, 15, 26, .045); }
.header__end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header__login { font-size: 15px; font-weight: 600; text-decoration: none; padding: 8px 12px; }
.header__login:hover { color: var(--teal); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span { position: relative; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: background-color .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease); }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { display: none; }

@media (max-width: 960px) {
  .header__nav, .header__login { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-menu {
    display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    background: var(--bg); padding: 24px var(--gutter) 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
  .menu-open .header { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
  .mobile-menu nav { display: grid; }
  .mobile-menu nav a { font-family: var(--f-display); font-size: 30px; font-weight: 600; letter-spacing: -.02em; padding: 12px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
  .mobile-menu .cta-row { margin-top: 28px; }
}
@media (max-width: 420px) { .header .btn--sm { display: none; } }

/* ---------- marcos de dispositivo ---------- */
/* iPhone 17 Pro (marco renderizado con el componente AeriaPhone de la skill videos-opus) */
.iphone { position: relative; width: var(--w, 320px); aspect-ratio: 1170 / 2134; flex: none; }
.iphone__screen {
  position: absolute; left: 13.887%; top: 5.733%; width: 72.226%; height: 86.074%;
  border-radius: 15.4% / 7.1%; overflow: hidden; background: #F6F8FC; isolation: isolate;
}
.iphone__screen picture, .iphone__screen img { position: absolute; inset: 0; width: 100%; height: 100%; }
.iphone__screen img { object-fit: cover; object-position: top center; }
.iphone__screen::after { /* brillo del cristal */
  content: ""; position: absolute; inset: 0; z-index: 99; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .05) 100%);
}
.iphone__frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; user-select: none; }
.iphone .layer { opacity: 0; }
.iphone .layer.is-on { opacity: 1; }

/* MacBook Pro (Negro espacial) dibujado en CSS */
.mac { position: relative; width: var(--w, 100%); --b: calc(var(--w-num, 900) * 1px); }
.mac__lid {
  position: relative; margin-inline: 6.2%; padding: 1.55% 1.55% 2.4%;
  background: #0B0C0E; border-radius: 2.6% / 4%;
  box-shadow: 0 0 0 1.5px #3A3D44, 0 0 0 2.5px #1A1C20, inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.mac__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: .5% / .8%; background: #F6F8FC; }
.mac__screen picture, .mac__screen img { position: absolute; inset: 0; width: 100%; height: 100%; }
.mac__screen img { object-fit: cover; object-position: top left; }
.mac__screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 35%); }
.mac__notch { position: absolute; left: 50%; top: 1.55%; transform: translateX(-50%); width: 11%; height: 3.1%; background: #0B0C0E; border-radius: 0 0 9px 9px / 0 0 7px 7px; z-index: 2; }
.mac__notch::after { content: ""; position: absolute; left: 50%; top: 32%; width: 6.5%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 40% 40%, #2A3346 0 30%, #0B0E15 60%); }
.mac__base {
  position: relative; height: clamp(10px, 2.1vw, 22px); margin-top: -1px;
  background: linear-gradient(180deg, #4A4E56 0%, #2C2F35 22%, #1D1F23 60%, #121315 100%);
  border-radius: 2px 2px 40% 40% / 2px 2px 100% 100%;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset;
}
.mac__base::before { /* hendidura para abrir la tapa */
  content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 14%; height: 42%; border-radius: 0 0 12px 12px / 0 0 8px 8px;
  background: linear-gradient(180deg, #121316, #2A2D33);
}
.mac__shadow { position: absolute; left: 4%; right: 4%; bottom: -26px; height: 40px; background: radial-gradient(50% 50% at 50% 50%, rgba(10, 15, 26, .32), rgba(10, 15, 26, 0)); filter: blur(6px); z-index: -1; }
.mac .layer { opacity: 0; transition: opacity .5s var(--ease); }
.mac .layer.is-on { opacity: 1; }

/* ---------- héroe ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(36px, 6vw, 84px)); padding-bottom: clamp(24px, 3vw, 40px); overflow: clip; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero__grid {
  position: absolute; inset: -10% 0 0 0;
  background-image:
    linear-gradient(rgba(10, 15, 26, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 15, 26, .055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(75% 65% at 70% 40%, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 80%);
  mask-image: radial-gradient(75% 65% at 70% 40%, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 80%);
}
.hero__glow { position: absolute; width: 900px; height: 900px; right: -220px; top: -120px; border-radius: 50%; background: radial-gradient(closest-side, rgba(45, 212, 222, .26), rgba(45, 212, 222, .08) 55%, rgba(45, 212, 222, 0)); }
.hero__chart { position: absolute; right: -4%; top: 4%; width: min(980px, 82vw); opacity: .9; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero__copy { display: grid; gap: 28px; align-content: center; }
.hero h1 { display: grid; gap: 18px; }
.hero__title { font-size: clamp(3rem, 7vw, 6.1rem); line-height: .98; letter-spacing: -.03em; font-weight: 600; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; }
.hero__title .dot { color: var(--cyan); }
.hero .lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); max-width: 46ch; }
.hero__meta { display: grid; gap: 14px; }

.hero__stage { position: relative; height: clamp(440px, 52vw, 640px); }
.hero__mac { position: absolute; right: -8%; top: 4%; width: 112%; }
.hero__phone { position: absolute; left: 2%; bottom: -4%; --w: clamp(190px, 21vw, 300px); }
.hero__zone { position: absolute; z-index: 5; pointer-events: none; }
.notif {
  position: absolute; z-index: 6; width: min(360px, 88vw);
  display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start;
  padding: 13px 14px 14px; border-radius: 22px;
  background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: saturate(1.8) blur(22px); backdrop-filter: saturate(1.8) blur(22px);
  box-shadow: 0 18px 50px -18px rgba(10, 15, 26, .35), inset 0 0 0 1px rgba(255, 255, 255, .7);
  font-size: 14px; line-height: 1.35;
}
.notif img { width: 38px; height: 38px; border-radius: 9px; }
.notif__top { display: flex; justify-content: space-between; gap: 8px; color: var(--text-2); font-size: 12.5px; }
.notif strong { display: block; font-size: 14.5px; font-weight: 600; margin-top: 1px; }
.notif p { color: #2B3446; }
.hero__notif { left: 24%; top: 0; }
.chip-data {
  position: absolute; z-index: 6; display: inline-flex; align-items: center; gap: 10px; padding: 9px 13px; border-radius: 12px;
  background: var(--ink); color: #E6EAF2; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .02em; box-shadow: var(--shadow-md);
}
.chip-data i:not(*) { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(45, 212, 222, .22); }
.hero__coords { right: 6%; bottom: 10%; }

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { text-align: left; }
  .hero__stage { height: clamp(380px, 92vw, 560px); margin-top: 8px; }
  .hero__mac { right: -18%; width: 108%; top: 6%; }
  .hero__phone { left: 0; --w: clamp(170px, 42vw, 250px); }
  .hero__notif { left: auto; right: 0; top: -2%; width: min(320px, 78vw); }
  .hero__coords { right: 2%; bottom: 6%; }
}
@media (max-width: 520px) {
  .hero__mac { right: -32%; width: 118%; top: 9%; }
  .hero__notif { top: -4%; }
  .notif { padding: 11px 12px; grid-template-columns: 32px 1fr; gap: 10px; }
  .notif img { width: 32px; height: 32px; }
}

/* Franja de autoridades */
.marquee { border-block: 1px solid var(--line); background: rgba(255, 255, 255, .55); overflow: hidden; }
.marquee__track { display: flex; gap: 56px; width: max-content; padding-block: 22px; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.marquee__item::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 18px 36px; padding-inline: var(--gutter); } .marquee__item[aria-hidden="true"] { display: none; } }

/* ---------- cómo funciona (vídeo + pasos) ---------- */
.how { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.video-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #EDF1F7;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); aspect-ratio: 1 / 1;
}
.video-card video { width: 100%; height: 100%; object-fit: cover; }
.video-card__btn {
  position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(10, 15, 26, .78); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.video-card__btn svg { width: 16px; height: 16px; }
.video-card__btn .i-play { display: none; }
.video-card.is-paused .video-card__btn .i-play { display: block; }
.video-card.is-paused .video-card__btn .i-pause { display: none; }
.video-card__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: rgba(10, 15, 26, .08); }
.video-card__bar i { display: block; height: 100%; width: 0; background: var(--cyan); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.step {
  position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 6px 18px; padding: 22px 22px 22px 18px; border-radius: 20px; cursor: pointer;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.step:hover { background: rgba(255, 255, 255, .6); }
.step.is-active { background: #fff; box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line); }
.step__n { grid-row: span 2; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-family: var(--f-mono); font-size: 14px; font-weight: 500; background: var(--panel-2); color: var(--text-2); transition: background-color .35s, color .35s; }
.step.is-active .step__n { background: var(--ink); color: var(--cyan); }
.step h3 { font-size: clamp(1.25rem, 1.9vw, 1.55rem); letter-spacing: -.02em; line-height: 1.15; padding-top: 2px; }
.step p { color: var(--text-2); font-size: 16px; }
.step__prog { position: absolute; left: 18px; right: 22px; bottom: 10px; height: 2px; border-radius: 2px; background: var(--panel-2); overflow: hidden; opacity: 0; transition: opacity .3s; }
.step.is-active .step__prog { opacity: 1; }
.step__prog i { display: block; height: 100%; width: 0; background: var(--cyan); }
@media (max-width: 960px) { .how { grid-template-columns: 1fr; } }

/* ---------- funciones (carteles) ---------- */
/* (ver bloque «carteles» al final) */
.stack { position: relative; display: grid; gap: 10px; margin-top: auto; }
.stack .notif { position: relative; width: 100%; background: rgba(255, 255, 255, .95); color: var(--ink); }
.stack .notif p { color: #2B3446; font-size: 14px; }
.stack .notif .notif__top { color: var(--text-2); }

/* ---------- autoridades (oscuro) ---------- */
.routes { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.routes__map { position: relative; aspect-ratio: 1 / 1; max-width: 620px; width: 100%; justify-self: center; }
.routes__map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route-node { position: absolute; transform: translate(-50%, -7px); display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; width: 170px; }
.route-node--up { transform: translate(-50%, calc(-100% + 7px)); flex-direction: column-reverse; }
.route-node b { font-family: var(--f-display); font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.route-node span { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em; color: #94A0B6; }
.route-node i { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 2px solid var(--cyan); margin-bottom: 8px; box-shadow: 0 0 0 5px rgba(45, 212, 222, .12); }
.route-node--up i { margin: 8px 0 0; }
.route-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 42%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center;
  background: radial-gradient(closest-side, rgba(45, 212, 222, .16), rgba(45, 212, 222, .03) 70%, transparent);
}
.route-core__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(45, 212, 222, .45); }
.route-core img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 10px 30px -8px rgba(45, 212, 222, .5); }
.route-core b { font-family: var(--f-display); font-size: 17px; font-weight: 600; }
.route-core span { font-family: var(--f-mono); font-size: 11.5px; color: #94A0B6; letter-spacing: .04em; }
.route-list { display: none; }
.routes__note { margin-top: 28px; display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); color: #C4CCDA; font-size: 15.5px; }
.routes__note svg { flex: none; width: 20px; height: 20px; color: var(--hold); margin-top: 2px; }
@media (max-width: 960px) {
  .routes { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .routes__map { display: none; }
  .route-list { display: grid; gap: 10px; list-style: none; padding: 0; margin: 8px 0 0; }
  .route-list li { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
  .route-list b { font-family: var(--f-display); font-weight: 600; }
  .route-list span { font-family: var(--f-mono); font-size: 12px; color: #94A0B6; }
}

/* ---------- plataformas ---------- */
.devices { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.devices__stage { position: relative; padding-bottom: 30px; }
.devices__phone { position: absolute; right: -2%; bottom: -6%; --w: clamp(140px, 15vw, 210px); z-index: 3; }
.theme-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--panel-2); gap: 2px; margin-top: 26px; }
.theme-switch button { height: 36px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-2); }
.theme-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.plat-list { display: grid; gap: 12px; margin-top: 30px; }
.plat {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px;
  background: var(--panel); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
}
.plat__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-2); }
.plat__ico svg { width: 22px; height: 22px; }
.plat b { display: block; font-size: 16px; }
.plat small { display: block; color: var(--text-2); font-size: 14px; line-height: 1.35; }
.plat .state { font-family: var(--f-mono); font-size: 11.5px; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.state--ok { background: rgba(34, 197, 94, .12); color: #11713A; }
.state--soon { background: rgba(245, 158, 11, .14); color: #8A5300; }
.plat a.state { text-decoration: none; }
@media (max-width: 960px) { .devices { grid-template-columns: 1fr; } .devices__stage { order: 2; } }

/* ---------- precios ---------- */
.pricing { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pack {
  position: relative; display: grid; gap: 4px; align-content: start; padding: 24px 20px 22px; border-radius: 24px; background: var(--panel);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
}
.pack__cr { font-family: var(--f-display); font-size: 2.6rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.pack__cr small { font-family: var(--f-body); font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--text-2); margin-left: 4px; }
.pack__price { font-size: 20px; font-weight: 600; margin-top: 14px; }
.pack__unit { font-size: 14px; color: var(--text-2); line-height: 1.45; }
.pack__off { position: absolute; top: 18px; right: 16px; font-family: var(--f-mono); font-size: 12px; padding: 4px 8px; border-radius: 8px; background: var(--panel-2); color: var(--ink); }
.pack--best { background: var(--ink); color: #fff; box-shadow: 0 30px 60px -30px rgba(10, 15, 26, .6); }
.pack--best .pack__cr small, .pack--best .pack__unit { color: #AEB8CA; }
.pack--best .pack__off { background: var(--cyan); color: var(--ink); }
.pack__flag { justify-self: start; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--cyan); }
.pricing-free { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.free {
  display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 20px; background: rgba(255, 255, 255, .6);
  box-shadow: inset 0 0 0 1px var(--line);
}
.free b { font-family: var(--f-display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; display: block; }
.free span { color: var(--text-2); font-size: 14.5px; }
.free .num { flex: none; min-width: 64px; height: 44px; padding: 0 10px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--cyan); font-family: var(--f-mono); font-size: 13px; }
.pricing-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 28px; color: var(--text-2); font-size: 15px; }
.pricing-foot a { color: var(--ink); font-weight: 600; }
@media (max-width: 1080px) { .pricing { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pricing-free { grid-template-columns: 1fr; } .pack--best { grid-column: 1 / -1; } }

/* ---------- equipo / seguro ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { border-radius: var(--radius-lg); background: var(--panel); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); padding: clamp(28px, 4vw, 48px); display: grid; gap: 16px; align-content: start; }
.panel h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -.025em; }
.panel p { color: var(--text-2); }
.panel--quote { background: linear-gradient(160deg, #fff 0%, #F0FAFB 100%); }
.panel .partner-logo { height: 34px; width: auto; }
.panel small { color: var(--text-2); font-size: 13px; line-height: 1.5; }
.panel .cta-row { margin-top: 6px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- blog ---------- */
.posts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.post-card { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--panel); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line); }
.post-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel-2); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__body { display: grid; gap: 10px; padding: 20px 20px 22px; }
.post-card h3 { font-size: 1.22rem; line-height: 1.2; letter-spacing: -.015em; }
.post-card p { font-size: 15px; color: var(--text-2); }
.post-card__meta { font-family: var(--f-mono); font-size: 12px; color: var(--text-2); margin-top: 4px; }
@media (max-width: 1080px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__list { display: grid; gap: 10px; }
.faq details { border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s var(--ease); }
.faq details[open] { box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 22px; font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--panel-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0F1A' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .3s var(--ease), background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--cyan); }
.faq .answer { padding: 0 22px 22px; color: var(--text-2); display: grid; gap: 10px; }
.faq .answer a { color: var(--ink); font-weight: 600; }
.faq__aside { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 18px; }
@media (max-width: 960px) { .faq { grid-template-columns: 1fr; } .faq__aside { position: static; } }

/* ---------- CTA final ---------- */
.final { overflow: clip; text-align: center; }
.final__glow { position: absolute; left: 50%; top: 58%; width: 1200px; height: 700px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(45, 212, 222, .28), rgba(45, 212, 222, .06) 60%, transparent); pointer-events: none; }
.final .wrap { position: relative; display: grid; justify-items: center; gap: 26px; }
.final h2 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); letter-spacing: -.03em; max-width: 14ch; line-height: .98; }
.final .lead { margin-inline: auto; }
.final__icon img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 30px 80px -20px rgba(45, 212, 222, .55), 0 0 0 1px rgba(255, 255, 255, .08); }

/* ---------- pie ---------- */
.footer { background: var(--ink); color: #C4CCDA; padding: clamp(64px, 8vw, 96px) 0 32px; font-size: 15px; position: relative; z-index: 1; }
.footer a { color: #E6EAF2; text-decoration: none; }
.footer a:hover { color: var(--cyan); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer__brand { display: grid; gap: 18px; align-content: start; max-width: 360px; }
.footer__brand > img { height: 26px; width: auto; }
.footer__brand p { color: #AEB8CA; }
.footer h4 { font-size: 14px; font-weight: 600; color: #8893A7; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__news { display: grid; gap: 10px; margin-top: 6px; }
.footer__news form { display: grid; gap: 10px; }
.nl-row { display: flex; gap: 8px; }
.footer__news input[type="email"] { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: #fff; font: inherit; font-size: 15px; }
.footer__news input[type="email"]::placeholder { color: #8893A7; }
.footer__news label.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #AEB8CA; line-height: 1.45; }
.footer__news label.consent input { margin-top: 3px; accent-color: var(--cyan); }
.footer__news .msg { font-size: 13.5px; min-height: 1.2em; }
.footer__disclaimer { margin-top: 32px; padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, .04); color: #AEB8CA; font-size: 14px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 28px; color: #8893A7; font-size: 13.5px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); }
.footer__social svg { width: 17px; height: 17px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 960px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- aviso de cookies ---------- */
.cookies {
  position: fixed; left: 16px; bottom: 16px; z-index: 60; width: min(420px, calc(100vw - 32px)); padding: 18px 18px 16px; border-radius: 20px;
  background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line);
  font-size: 14px; color: var(--text-2); display: grid; gap: 12px;
}
.cookies[hidden] { display: none; }
.cookies a { color: var(--ink); font-weight: 600; }
.cookies .cta-row { gap: 8px; }

/* ---------- animaciones de entrada (solo con JS y sin movimiento reducido) ---------- */
.js-motion [data-reveal] { opacity: 0; transform: translateY(28px); }

/* ---------- páginas interiores (blog, legal, app) ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px)); padding-bottom: clamp(36px, 5vw, 64px); position: relative; overflow: clip; }
.page-hero .hero__grid { -webkit-mask-image: radial-gradient(70% 90% at 80% 0%, #000 0%, transparent 75%); mask-image: radial-gradient(70% 90% at 80% 0%, #000 0%, transparent 75%); }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); letter-spacing: -.035em; max-width: 18ch; }
.page-hero .lead { margin-top: 18px; }
.crumb { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--text-2); margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumb a { color: var(--text-2); text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.crumb span[aria-current] { color: var(--ink); }

.narrow { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: var(--gutter); }
.post { padding-bottom: clamp(64px, 8vw, 110px); }
.post-head { display: grid; gap: 16px; }
.post-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.035em; line-height: 1.02; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--f-mono); font-size: 12.5px; color: var(--text-2); }
.post-lead { font-size: 1.2rem; color: #2B3446; }
.post-figure { margin: 32px 0; }
.post-figure img { width: 100%; border-radius: 22px; box-shadow: var(--shadow-md); }
.post-figure figcaption { margin-top: 10px; font-size: 13.5px; color: var(--text-2); }
.prose { font-size: 18px; line-height: 1.72; color: #1E2636; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); letter-spacing: -.025em; line-height: 1.12; margin-top: 2em; }
.prose h3 { font-size: 1.3rem; letter-spacing: -.015em; line-height: 1.2; margin-top: 1.6em; }
.prose a { color: var(--ink); text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 500; }
.prose a:hover { color: var(--teal); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--teal); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose code { font-family: var(--f-mono); font-size: .88em; background: var(--panel-2); padding: .12em .4em; border-radius: 6px; }
.prose pre { font-family: var(--f-mono); font-size: 14px; background: var(--ink); color: #E6EAF2; padding: 18px 20px; border-radius: 16px; overflow-x: auto; line-height: 1.6; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.prose th { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); font-weight: 500; }
.prose blockquote { margin-left: 0; padding-left: 18px; border-left: 3px solid var(--cyan); color: #2B3446; }
.note { padding: 18px 20px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 16.5px; }
.note strong:first-child { color: var(--teal); }
.post-cta { margin-top: 2.2em; padding: 28px; border-radius: 24px; background: var(--ink); color: #E6EAF2; display: grid; gap: 14px; }
.post-cta h2, .post-cta h3 { color: #fff; margin: 0; font-size: 1.6rem; }
.post-cta p { color: #AEB8CA; }
.post-cta a:not(.btn) { color: var(--cyan); }
.post-cta .btn { justify-self: start; text-decoration: none; }
.related { margin-top: 3em; }
.related-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.related-list a { display: block; padding: 16px 18px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; font-weight: 600; }
.related-list a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* Bloque de partner de seguros (blog) */
.partner-box, .partner-card { margin: 2em 0; padding: 24px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 12px; }
.partner-box__head, .partner-card__body { display: grid; gap: 8px; }
.partner-box__label, .footer-partner__label { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.partner-box__title, .partner-card__title { font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.partner-box__ctas, .partner-card__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.partner-cta, .partner-link { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: #fff !important; text-decoration: none !important; font-weight: 600; font-size: 15px; }
.partner-link { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.partner-disc { font-size: 13px; color: var(--text-2); }
.partner-plate { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.partner-plate img { height: 26px; width: auto; }
.footer-partner { display: none; }

/* Página de la app */
.app-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.app-hero__phones { position: relative; display: flex; justify-content: center; gap: 18px; }
.app-hero__phones .iphone { --w: clamp(170px, 19vw, 260px); }
.app-hero__phones .iphone:nth-child(2) { margin-top: 60px; }
.qr-card { display: inline-grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 14px 18px 14px 14px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.qr-card img { width: 96px; height: 96px; image-rendering: pixelated; }
.qr-card small { color: var(--text-2); font-size: 14px; display: block; }
@media (max-width: 860px) { .app-hero { grid-template-columns: 1fr; } .qr-card { display: none; } }

/* Listado del blog */
.blog-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.blog-list .post-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.blog-list .post-card:first-child .post-card__img { aspect-ratio: auto; min-height: 100%; }
.blog-list .post-card:first-child .post-card__body { align-content: center; padding: clamp(24px, 4vw, 48px); }
.blog-list .post-card:first-child h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.blog-list h2 { font-size: 1.3rem; line-height: 1.18; letter-spacing: -.015em; }
@media (max-width: 960px) { .blog-list { grid-template-columns: 1fr 1fr; } .blog-list .post-card:first-child { grid-template-columns: 1fr; } .blog-list .post-card:first-child .post-card__img { aspect-ratio: 16 / 10; } }
@media (max-width: 600px) { .blog-list { grid-template-columns: 1fr; } }

.news-box { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--ink); color: #fff; }
.news-box p { color: #AEB8CA; margin-top: 8px; }
.news-box form { display: flex; flex-wrap: wrap; gap: 8px; }
.news-box input[type="email"] { height: 52px; min-width: 260px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; }
.news-box label.consent { flex-basis: 100%; display: flex; gap: 10px; font-size: 13px; color: #AEB8CA; }
.news-box label.consent input { accent-color: var(--cyan); }
.news-box .msg { flex-basis: 100%; font-size: 14px; min-height: 1.2em; }
@media (max-width: 860px) { .news-box { grid-template-columns: 1fr; } .news-box input[type="email"] { min-width: 0; flex: 1; } }

/* Imagen en marco dentro de artículos */
.figure-device { display: flex; justify-content: center; gap: 18px; margin: 36px 0; flex-wrap: wrap; }
.figure-device .iphone { --w: min(240px, 42vw); }

/* ---------- entrada del héroe (CSS puro: sin parpadeo y sin depender de JS) ---------- */
.hero__notif, .hero__coords { opacity: 0; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.hero__notif { transform: translateY(-14px) scale(.97); }
.hero__coords { transform: translateY(10px); }
.hero__notif.is-on, .hero__coords.is-on { opacity: 1; transform: none; }
@keyframes aeria-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes aeria-line { from { transform: translateY(108%); } to { transform: none; } }
@keyframes aeria-device { from { opacity: 0; transform: translateY(46px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes aeria-pulse { 0% { box-shadow: 0 0 0 0 rgba(45, 212, 222, .55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(45, 212, 222, 0); } }
@media (prefers-reduced-motion: no-preference) {
  .hero__title .line > span { animation: aeria-line 1.15s var(--ease) backwards; }
  .hero__title .line:nth-child(1) > span { animation-delay: .2s; }
  .hero__title .line:nth-child(2) > span { animation-delay: .32s; }
  .hero [data-hero="lead"] { animation: aeria-up .9s var(--ease) .48s backwards; }
  .hero [data-hero="cta"] { animation: aeria-up .9s var(--ease) .6s backwards; }
  .hero [data-hero="mac"] { animation: aeria-device 1.4s var(--ease) .3s backwards; }
  .hero [data-hero="phone"] { animation: aeria-device 1.4s var(--ease) .55s backwards; }
  .hero__chart-pt { transform-box: fill-box; transform-origin: center; }
}

/* ---------- ajustes móviles ---------- */
@media (max-width: 960px) {
  .hero__phone { --w: clamp(176px, 46vw, 260px); left: 2%; }
  .hero__mac { top: 12%; }
}
@media (max-width: 720px) {
  .sec-head--split { grid-template-columns: 1fr !important; align-items: start !important; }
}
@media (max-width: 600px) {
  .posts { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 16px; scrollbar-width: none; }
  .posts::-webkit-scrollbar { display: none; }
  .posts .post-card { flex: 0 0 82%; scroll-snap-align: start; }
}

.page-article { padding-top: calc(var(--header-h) + clamp(28px, 4vw, 48px)); }
.page-article .post-head { margin-bottom: 8px; }
.post-cta .cta-row { margin-top: 4px; }
html { overflow-x: clip; }
#app { overflow-x: clip; }
@media (max-width: 960px) { .devices__phone { right: 0; } }
@media (max-width: 420px) {
  .hero .appstore img, .final .appstore img { height: 48px; }
  .hero .btn--primary, .final .btn--primary { --h: 48px; padding: 0 18px; font-size: 15px; }
  .cta-row { gap: 10px; }
}

/* ==========================================================================
   Carteles de funciones (estilo Apple / DJI): tipografía grande + una pieza de interfaz animada
   ========================================================================== */
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 28px;
  min-height: 460px; padding: clamp(26px, 3vw, 40px); border-radius: var(--radius-lg);
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
}
.tile__copy { position: relative; z-index: 2; display: grid; gap: 10px; max-width: 34ch; }
.tile h3 { font-size: clamp(1.55rem, 2.3vw, 2.1rem); line-height: 1.05; letter-spacing: -.03em; }
.tile p { color: var(--text-2); font-size: 15.5px; line-height: 1.5; }
.tile--dark { background: var(--ink); color: #F2F5FA; box-shadow: none; }
.tile--dark p { color: #AEB8CA; }
.tile--soft { background: linear-gradient(180deg, #EEF2F8, #E7EDF6); box-shadow: none; }
.t-w4 { grid-column: span 4; } .t-w3 { grid-column: span 3; } .t-w2 { grid-column: span 2; }
.tile .ui { position: relative; z-index: 2; margin-top: auto; display: grid; gap: 10px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot--hold { background: var(--hold); box-shadow: 0 0 0 4px rgba(245, 158, 11, .18); }
.dot--ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.glass { background: rgba(14, 20, 33, .62); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 60px -30px rgba(0, 0, 0, .6); border-radius: 20px; }

/* 1 · mapa (cartel oscuro tipo DJI) */
.tile--map { min-height: 560px; }
/* El mapa se coloca para que Cádiz (56 % · 83 % de la imagen) caiga en el punto --px/--py del cartel */
.map-canvas { position: absolute; z-index: 0; left: var(--px, 66%); top: var(--py, 60%); width: var(--cw, 125%); aspect-ratio: 720 / 680; transform: translate(-56%, -83%); transform-origin: 56% 83%; }
.map-canvas img { width: 100%; height: 100%; display: block; }
.tile--map::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(10, 15, 26, .96) 0%, rgba(10, 15, 26, .78) 38%, rgba(10, 15, 26, .15) 75%), linear-gradient(0deg, rgba(10, 15, 26, .6), transparent 40%); }
.tile__credit { position: absolute; right: 16px; bottom: 12px; z-index: 2; font-size: 11px; color: rgba(230, 234, 242, .55); }
.map-ui { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.map-pin { position: absolute; left: 56%; top: 83%; width: 0; height: 0; }
.map-pin i { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(10, 15, 26, .6), 0 0 24px rgba(45, 212, 222, .9); }
.map-pin b { position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%; border: 2px solid var(--cyan); background: rgba(45, 212, 222, .12); }
.map-result { position: absolute; right: clamp(20px, 4%, 44px); top: 12%; width: min(320px, 46%); padding: 18px; color: #E6EAF2; display: grid; gap: 10px; }
.map-result__head { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; }
.map-result__head b { font-size: 16px; }
.map-result__head small { grid-column: 2; color: #AEB8CA; font-size: 13px; }
.map-result__row { display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.map-result__row em { font-style: normal; font-family: var(--f-mono); font-size: 12px; color: var(--cyan); white-space: nowrap; }
.map-coords { left: auto; right: clamp(20px, 4%, 44px); bottom: 44px; position: absolute; }

/* 2 · tramitar */
.ui-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.ui-row b { display: block; font-size: 14.5px; }
.ui-row small { display: block; font-size: 12.5px; color: var(--text-2); }
.st { position: relative; display: inline-grid; flex: none; }
.st i { grid-area: 1 / 1; font-style: normal; font-size: 11.5px; font-weight: 600; padding: 5px 9px; border-radius: 999px; text-align: center; white-space: nowrap; }
.st__a { background: rgba(239, 68, 68, .1); color: #B42318; }
.st__a--soft { background: rgba(245, 158, 11, .14); color: #8A5300; }
.st__b { background: rgba(34, 197, 94, .14); color: #11713A; opacity: 0; }
.ui-btn { position: relative; height: 50px; border: 0; border-radius: 999px; background: var(--cyan); color: var(--ink); font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: default; }
.ui-btn__spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(10, 15, 26, .25); border-top-color: var(--ink); display: none; }
.tap { position: absolute; left: 50%; bottom: 25px; width: 44px; height: 44px; margin: 0 0 -22px -22px; border-radius: 50%; background: rgba(10, 15, 26, .18); box-shadow: inset 0 0 0 2px rgba(10, 15, 26, .35); opacity: 0; pointer-events: none; }

/* 3 · pase de Wallet */
.pass-stage { margin-top: auto; perspective: 1100px; display: flex; justify-content: center; padding-bottom: 6px; }
.pass {
  position: relative; overflow: hidden; width: min(360px, 100%); padding: 20px 20px 18px; border-radius: 18px; background: #0B111C; color: #fff;
  box-shadow: 0 40px 70px -30px rgba(10, 15, 26, .7), inset 0 0 0 1px rgba(255, 255, 255, .06); transform: rotateX(14deg) rotateY(-16deg) rotateZ(2deg); transform-style: preserve-3d;
}
.pass small { display: block; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.pass__top { display: flex; justify-content: space-between; align-items: flex-start; }
.pass__top img { height: 28px; width: auto; }
.pass__top span { text-align: right; font-size: 15px; letter-spacing: .02em; }
.pass__zone { margin-top: 14px; font-size: 20px; }
.pass__grid { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px 8px; font-size: 13px; }
.pass__grid .r { text-align: right; }
.pass__qr { margin: 18px auto 0; width: max-content; padding: 10px 10px 6px; border-radius: 8px; background: #fff; text-align: center; }
.pass__qr img { width: 84px; height: 84px; }
.pass__qr small { color: var(--ink); font-size: 9px; margin-top: 4px; letter-spacing: .02em; }
.pass__shine { position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .14), transparent); transform: skewX(-12deg); pointer-events: none; }

/* 5 · flota */
.idcard { position: relative; padding: 16px; border-radius: 18px; color: #fff; background: radial-gradient(120% 120% at 100% 0%, #1C3A44 0%, #0E1A26 55%, #0A0F1A 100%); box-shadow: 0 24px 40px -24px rgba(10, 15, 26, .55); display: grid; gap: 12px; }
.idcard__top { display: flex; justify-content: space-between; align-items: center; }
.idcard__top img { height: 18px; width: auto; }
.idcard__top small { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #AEB8CA; }
.idcard__who { display: flex; gap: 12px; align-items: center; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.idcard__who b { display: block; font-size: 15px; }
.idcard__who small { font-family: var(--f-mono); font-size: 11px; color: #AEB8CA; }
.idcard__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.idcard__chips span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; padding: 4px 8px; border-radius: 999px; background: rgba(34, 197, 94, .16); color: #7EE2A4; }
.idcard__chips span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.alert-row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(245, 158, 11, .1); box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .25); }
.alert-row b { display: block; font-size: 14px; } .alert-row small { font-size: 12.5px; color: #8A5300; }

/* 6 · EARO */
.cred { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; background: var(--ink); color: #fff; }
.cred small { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; color: var(--cyan); display: block; }
.cred b { display: block; font-family: var(--f-display); font-size: 20px; letter-spacing: -.01em; }
.cred span { font-size: 12.5px; color: #AEB8CA; }
.check { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ok); }
.check::after { content: ""; position: absolute; left: 10px; top: 7px; width: 7px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* 7 · informes */
.doc { position: relative; padding: 16px 16px 18px; border-radius: 12px; background: #fff; box-shadow: 0 24px 40px -24px rgba(10, 15, 26, .35), inset 0 0 0 1px var(--line); display: grid; gap: 9px; transform: rotate(-2deg); }
.doc__head { display: flex; justify-content: space-between; align-items: center; }
.doc__head img { height: 16px; width: auto; }
.doc__head small { font-family: var(--f-mono); font-size: 10px; color: var(--text-2); }
.doc__title { font-family: var(--f-display); font-size: 16px; }
.doc__map { height: 70px; border-radius: 8px; overflow: hidden; background: #BFE3F2; }
.doc__map svg { width: 100%; height: 100%; display: block; }
.doc__line { display: block; height: 7px; border-radius: 4px; background: var(--panel-2); width: 100%; transform-origin: left; }
.doc__pdf { position: absolute; right: -10px; bottom: -10px; padding: 7px 11px; border-radius: 10px; background: var(--ink); color: #fff; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; }

/* 8 · formación */
.big-word { position: relative; z-index: 2; margin-top: auto; font-family: var(--f-display); font-weight: 600; font-size: clamp(4.2rem, 8vw, 7rem); line-height: .9; letter-spacing: -.05em; color: var(--ink); }
.big-word span { color: var(--cyan); }
.ui--courses { margin-top: 0 !important; }
.course { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .75); }
.course b { display: block; font-size: 14px; } .course small { font-size: 12.5px; color: var(--text-2); }
.ring { --p: .5; flex: none; width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(var(--cyan) calc(var(--p) * 360deg), var(--panel-2) 0); -webkit-mask: radial-gradient(circle, transparent 9px, #000 10px); mask: radial-gradient(circle, transparent 9px, #000 10px); }

/* 9 · bitácora */
.log-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: center; padding: 13px 16px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; }
.log-row .mono { font-size: 12px; color: var(--text-2); }
.log-row em { font-style: normal; font-family: var(--f-mono); font-size: 13px; }
.log-foot { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 0; font-family: var(--f-mono); font-size: 12.5px; color: var(--text-2); }
.ui-mini-btn { font-family: var(--f-body); font-size: 13px; font-weight: 600; color: var(--ink); padding: 7px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-2); }

@media (max-width: 1080px) {
  .t-w4 { grid-column: span 6; } .t-w3 { grid-column: span 3; } .t-w2 { grid-column: span 3; }
}
@media (max-width: 720px) {
  .tiles { grid-template-columns: 1fr; }
  .t-w4, .t-w3, .t-w2 { grid-column: auto; }
  .tile { min-height: 0; }
  .tile--map { min-height: 620px; }
  .tile--map::before { background: linear-gradient(180deg, rgba(10, 15, 26, .96) 0%, rgba(10, 15, 26, .7) 40%, rgba(10, 15, 26, .2) 70%, rgba(10, 15, 26, .6) 100%); }
  .map-result { left: 20px; right: 20px; width: auto; top: auto; bottom: 90px; }
  .tile--map { --px: 55%; --py: 50%; --cw: 230%; }
  .map-coords { right: auto; left: 20px; bottom: 40px; }
}

/* ==========================================================================
   Plazos: escena anclada al scroll
   ========================================================================== */
.plazos { position: relative; overflow: clip; }
.plazos::before { content: ""; position: absolute; left: 60%; top: 50%; width: 1100px; height: 900px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(45, 212, 222, .16), transparent 70%); pointer-events: none; }
.plazos__pin { display: flex; align-items: center; padding-block: clamp(80px, 9vw, 120px); }
@media (min-width: 961px) { .js-motion .plazos__pin { min-height: 100vh; } }
.plazos__grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.plazos__copy { display: grid; gap: 20px; align-content: center; }
.pz-steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; counter-reset: pz; }
.pz-steps li { position: relative; padding: 14px 0 14px 46px; border-top: 1px solid rgba(255, 255, 255, .08); opacity: .38; transition: opacity .4s var(--ease); counter-increment: pz; }
.pz-steps li::before { content: "0" counter(pz); position: absolute; left: 0; top: 15px; font-family: var(--f-mono); font-size: 13px; color: var(--cyan); }
.pz-steps li.is-on { opacity: 1; }
.pz-steps b { display: block; font-family: var(--f-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -.015em; }
.pz-steps span { display: block; color: #AEB8CA; font-size: 15.5px; margin-top: 4px; }
.plazos__stage { position: relative; min-height: 620px; }
.panel-ui { position: absolute; border-radius: 26px; background: #fff; color: var(--ink); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .7); }
.pz-cal { left: 0; top: 0; width: min(430px, 86%); padding: 22px 22px 18px; }
.pz-cal__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.pz-cal__head b { font-family: var(--f-display); font-size: 1.2rem; }
.pz-cal__head span { font-family: var(--f-mono); font-size: 13px; color: var(--text-2); }
.pz-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.pz-cal__wd span { text-align: center; font-family: var(--f-mono); font-size: 11px; color: var(--text-2); padding-bottom: 4px; }
.pz-day { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; font-size: 14px; font-weight: 500; background: var(--bg); color: var(--ink); transition: none; }
.pz-day.is-today { box-shadow: inset 0 0 0 2px var(--ink); }
.pz-day .f { position: absolute; inset: 0; border-radius: inherit; opacity: 0; }
.pz-day .f--hold { background: rgba(245, 158, 11, .22); }
.pz-day .f--ok { background: rgba(34, 197, 94, .2); }
.pz-day .f--sel { background: var(--cyan); box-shadow: 0 8px 18px -6px rgba(45, 212, 222, .8); }
.pz-day b { position: relative; font-weight: 500; }
.pz-cal__legend { display: flex; gap: 16px; margin-top: 14px; font-size: 12.5px; color: var(--text-2); }
.pz-cal__legend span { display: inline-flex; gap: 6px; align-items: center; }
.lg { width: 10px; height: 10px; border-radius: 3px; }
.lg--hold { background: rgba(245, 158, 11, .5); } .lg--ok { background: rgba(34, 197, 94, .5); }
.pz-toast { position: absolute; left: 0; top: 392px; display: inline-flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
.pz-permits { right: 0; top: 456px; width: min(400px, 82%); padding: 10px; display: grid; gap: 6px; }
.pz-permit { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 14px; border-radius: 16px; background: var(--bg); }
.pz-permit b { display: block; font-size: 14.5px; } .pz-permit small { font-size: 12.5px; color: var(--text-2); font-family: var(--f-mono); }
.pz-st { display: inline-grid; flex: none; }
.pz-st i { grid-area: 1 / 1; font-style: normal; font-size: 11.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; text-align: center; opacity: 0; }
.pz-st i:nth-child(1) { background: var(--panel-2); color: var(--text-2); opacity: 1; }
.pz-st i:nth-child(2) { background: rgba(45, 212, 222, .18); color: #0A5F68; }
.pz-st i:nth-child(3) { background: rgba(34, 197, 94, .16); color: #11713A; }
.pz-notif { right: -4%; top: -34px; width: min(330px, 70%); }
.plazos .notif { position: absolute; color: var(--ink); background: rgba(255, 255, 255, .97); }
.plazos .notif p { color: #2B3446; }
.plazos .notif .notif__top { color: var(--text-2); }
@media (max-width: 960px) {
  .plazos__grid { grid-template-columns: 1fr; }
  .plazos__stage { min-height: 640px; }
  .pz-steps li { opacity: 1; }
}
@media (max-width: 560px) {
  .plazos__stage { min-height: 0; display: grid; gap: 12px; }
  .plazos__stage > * { position: relative !important; inset: auto !important; width: 100% !important; }
  .pz-toast { justify-self: start; width: auto !important; }
}
