/* =========================================================
   Biel Calmet · Portafolio comercial — versión 2026
   ========================================================= */

:root {
  --ink: #06121f;
  --blue: #0a7fd6;
  --blue-deep: #0560a8;
  --sky: #38bdff;
  --sky-soft: #9fdcff;
  --paper: #f5f9ff;
  --blue-50: #f3f8ff;
  --blue-100: #e6f1fe;
  --blue-200: #cfe5fd;
  --white: #ffffff;
  --text: #0b1726;
  --muted: #56677c;
  --line: rgba(10, 70, 140, 0.1);
  --glass: rgba(255, 255, 255, 0.66);
  --glass-blur: blur(18px) saturate(1.3);
  --shadow-soft: 0 30px 60px -34px rgba(10, 80, 160, 0.35);
  --ok: #17b26a;
  --warn: #f5a524;

  --radius: 28px;
  --radius-sm: 16px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 72px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, var(--blue-50) 0, var(--white) 900px) no-repeat, var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

em {
  font-style: normal;
  font-weight: inherit;
}

::selection { background: var(--sky); color: var(--ink); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}
.scroll-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 12px;
  --pad-x: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
  will-change: transform;
}
.btn span { transition: transform 0.35s var(--ease); }
.btn:hover span { transform: translate(2px, -2px); }
.btn:active { transform: scale(0.97); }
.btn-sm { --pad-y: 10px; --pad-x: 16px; font-size: 14px; }
.btn-lg { --pad-y: 17px; --pad-x: 26px; font-size: 16px; }
.btn-xl { --pad-y: 21px; --pad-x: 32px; font-size: 17px; }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, #1a9cf0 100%);
  box-shadow: 0 10px 30px -10px rgba(10, 127, 214, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(10, 127, 214, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25); }

.btn-ghost {
  color: var(--text);
  border-color: var(--blue-200);
  background: var(--white);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn-dark { color: #fff; background: var(--blue); }
.btn-dark:hover { background: var(--blue-deep); }

.btn-white { color: var(--blue-deep); background: #fff; box-shadow: 0 14px 34px -14px rgba(0, 30, 80, 0.5); }
.btn-white:hover { box-shadow: 0 20px 40px -14px rgba(0, 30, 80, 0.6); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

/* ---------- Pills, eyebrows, tags ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--blue);
  background: var(--white);
  border: 1px solid var(--blue-200);
}
.pill-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 0 rgba(56, 189, 255, 0.6);
  animation: ping 2.2s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 255, 0.6); }
  80%, 100% { box-shadow: 0 0 0 10px rgba(56, 189, 255, 0); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(calc(100% - 28px), 1120px);
  height: 60px;
  padding: 0 10px 0 18px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 10px 40px -24px rgba(10, 80, 160, 0.35);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transform: translateX(-50%);
  transition: background 0.4s, color 0.4s, border-color 0.4s, box-shadow 0.4s, transform 0.5s var(--ease);
}
.nav.is-hidden { transform: translate(-50%, -120%); }

.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.nav-cloud { width: 34px; height: 34px; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.78;
  transition: opacity 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.is-current { opacity: 1; background: rgba(127, 170, 220, 0.14); }

/* ---------- Nube global ---------- */
.cloud {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}
main { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 88px;
  color: var(--text);
  background: radial-gradient(900px circle at 62% 50%, rgba(56, 189, 255, 0.1), transparent 60%);
}

/* Zona que ocupa la nube: el script la usa como centro y tamaño */
.hero-cloud-anchor {
  position: absolute;
  top: 10%;
  bottom: 16%;
  left: 40%;
  right: 4%;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "title title"
    "actions sub";
  align-items: end;
  row-gap: clamp(40px, 7vh, 88px);
}

.hero-title {
  grid-area: title;
  display: grid;
  font-size: clamp(3.2rem, 7.4vw, 7.4rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.2em; margin-bottom: -0.12em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease-out) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.08s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.18s; }
.hero-title .line-em { justify-self: end; margin-top: 0.12em; }
.hero-title em {
  padding-right: 0.04em;
  background: linear-gradient(100deg, var(--blue) 0%, #1a9cf0 55%, var(--sky) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes rise { to { transform: translateY(0); } }

.hero-sub {
  grid-area: sub;
  justify-self: end;
  max-width: 30ch;
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  line-height: 1.55;
  color: var(--muted);
  text-shadow: 0 0 12px #fff, 0 0 24px #fff;
  animation: fadeUp 0.9s var(--ease-out) 0.45s both;
}

.hero-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: fadeUp 0.9s var(--ease-out) 0.55s both;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Barra de navegador (se usa en las fichas de proyecto) */
.hv-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #4a5b6f;
  font-size: 12px;
  font-weight: 600;
}
.hv-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.hv-bar i:nth-child(2) { background: #febc2e; }
.hv-bar i:nth-child(3) { background: #28c840; }
.hv-bar b {
  flex: 1;
  max-width: 220px;
  margin: 0 auto;
  padding: 4px 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  background: #eef2f7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 26px;
  height: 42px;
  border-radius: 20px;
  border: 1.5px solid var(--blue-200);
  transform: translateX(-50%);
}
.hero-scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--blue);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 22px 0;
  color: var(--blue-deep);
  background: transparent;
  border-block: 1px solid var(--line);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee span { font-size: clamp(1.25rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.marquee i { font-style: normal; color: var(--sky); font-size: 1.1rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(88px, 11vw, 150px) 0; }
.section-soft { background: rgba(243, 248, 255, 0.5); }

.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head h2 {
  margin: 18px 0 18px;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
/* Frases destacadas: degradado de azul intenso a azul claro */
h2 em {
  background: linear-gradient(100deg, var(--blue-deep) 0%, var(--blue) 35%, #1a9cf0 65%, var(--sky) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.section-head p { max-width: 58ch; font-size: 1.12rem; color: var(--muted); }

.section-head-split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: end;
  gap: 32px;
  max-width: none;
}
.section-head-split h2 { margin-bottom: 0; }

/* ---------- Services (tarjetas que se apilan al bajar) ---------- */
.services { display: grid; gap: 28px; }

.service {
  position: sticky;
  top: calc(104px + var(--i, 0) * 22px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 28px clamp(28px, 5vw, 72px);
  min-height: 340px;
  padding: clamp(28px, 4vw, 56px);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 -24px 60px -40px rgba(10, 80, 160, 0.45);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  overflow: hidden;
  transform-origin: 50% 0;
  transform: scale(var(--stack-scale, 1));
  filter: brightness(var(--stack-dim, 1));
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(520px circle at var(--sx, 50%) var(--sy, 0%), rgba(56, 189, 255, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.service:hover::before { opacity: 1; }

.service-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 26px;
  border-radius: 20px;
  color: var(--blue);
  background: linear-gradient(135deg, rgba(56, 189, 255, 0.18), rgba(10, 127, 214, 0.08));
}
.service-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-num {
  position: absolute;
  top: 18px;
  right: 30px;
  font-size: clamp(4rem, 9vw, 7.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgba(10, 127, 214, 0.08);
  pointer-events: none;
}
.service h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.08; letter-spacing: -0.04em; margin-bottom: 14px; max-width: 18ch; }
.service p { color: var(--muted); font-size: 1.05rem; max-width: 46ch; }
.service ul { position: relative; display: grid; gap: 12px; }
.service li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 700;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
}
.service li::before {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.5 2.6 2.5L14 7.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.service-featured { color: #fff; background: linear-gradient(160deg, #1a9cf0 0%, var(--blue) 45%, var(--blue-deep) 100%); border-color: transparent; }
.service-featured p { color: rgba(255, 255, 255, 0.85); }
.service-featured .service-num { color: rgba(255, 255, 255, 0.14); }
.service-featured .service-icon { color: #fff; background: rgba(255, 255, 255, 0.18); }
.service-featured li { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.22); }
.service-featured li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.5 2.6 2.5L14 7.5' fill='none' stroke='%230a7fd6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ---------- Proyectos: selector con pantalla luminosa ---------- */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.section-work { background: transparent; }
.section-head-split > p { color: var(--muted); font-size: 1.12rem; }

.showcase { --accent: var(--blue); position: relative; }

.sc-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 68px; }
.sc-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 12px 12px;
  border-radius: 22px;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s, background 0.3s;
}
.sc-tab:hover { transform: translateY(-3px); border-color: var(--blue-200); }
.sc-tab.is-active {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(10, 127, 214, 0.1), 0 22px 44px -24px rgba(10, 127, 214, 0.7);
}
.sc-tab-thumb { flex: none; width: 68px; height: 50px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.sc-tab-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.6s var(--ease); }
.sc-tab:hover .sc-tab-thumb img { transform: scale(1.08); }
.sc-tab-text { min-width: 0; line-height: 1.25; }
.sc-tab-text small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.sc-tab-text strong { display: block; font-size: 1.08rem; letter-spacing: -0.02em; }
.sc-tab-text span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Haz de luz que baja desde la pestaña activa hasta la pantalla */
.sc-tab::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 1px);
  width: 2px;
  height: 66px;
  margin-left: -1px;
  background: linear-gradient(var(--blue-200), transparent);
  opacity: 0.6;
  transition: opacity 0.4s, box-shadow 0.4s;
}
.sc-tab.is-active::after {
  background: linear-gradient(var(--blue), var(--sky));
  opacity: 1;
  box-shadow: 0 0 14px rgba(56, 189, 255, 0.9);
}
.sc-tab::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px 4px var(--sky);
  opacity: 0;
  pointer-events: none;
}
.sc-tab.is-active::before { animation: beamDot 1.5s ease-in infinite; }
@keyframes beamDot {
  0% { transform: translateY(0); opacity: 0; }
  15%, 80% { opacity: 1; }
  100% { transform: translateY(62px); opacity: 0; }
}

.sc-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}

.sc-screen {
  position: relative;
  isolation: isolate;
  padding: 2px;
  border-radius: 26px;
  background: conic-gradient(from var(--angle), rgba(10, 127, 214, 0.18) 0deg 230deg, var(--sky) 290deg, #fff 315deg, rgba(10, 127, 214, 0.18) 360deg);
  animation: spinGlow 6s linear infinite;
  box-shadow: 0 50px 100px -50px rgba(10, 127, 214, 0.7);
}
.sc-screen::after {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: -1;
  border-radius: 38px;
  background: inherit;
  filter: blur(26px);
  opacity: 0.5;
  animation: spinGlow 6s linear infinite;
}
@keyframes spinGlow { to { --angle: 360deg; } }

.sc-browser { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: #fff; }
.sc-browser .hv-bar b { transition: opacity 0.3s; }
.sc-browser .hv-bar b.is-swapping { opacity: 0; }
.sc-shots { position: relative; height: clamp(320px, 38vw, 520px); overflow: hidden; background: var(--blue-50); }
.sc-shot {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(100% 0 0 0);
  transform: scale(1.06);
  filter: blur(8px);
  transition: clip-path 0.95s var(--ease-out), transform 0.95s var(--ease-out), filter 0.95s var(--ease-out);
}
.sc-shot.is-active { z-index: 2; clip-path: inset(0 0 0 0); transform: none; filter: none; }
.sc-shot.is-leaving { z-index: 1; clip-path: inset(0 0 100% 0); transform: scale(0.94); filter: blur(6px); }
.sc-shot img { position: absolute; inset: 0 0 auto 0; width: 100%; }
.sc-shot.is-active img { animation: pan var(--pan-dur, 22s) ease-in-out 1.2s infinite alternate; }
.sc-shot:hover img { animation-play-state: paused; }
@keyframes pan {
  0%, 6% { transform: translateY(0); }
  94%, 100% { transform: translateY(var(--pan, -60%)); }
}

.sc-info { display: flex; flex-direction: column; min-height: 100%; }
.sc-panel { flex: 1; display: flex; flex-direction: column; }
.sc-panel[hidden] { display: none; }
.sc-panel > * { animation: fadeUp 0.7s var(--ease-out) both; }
.sc-panel > :nth-child(2) { animation-delay: 0.06s; }
.sc-panel > :nth-child(3) { animation-delay: 0.12s; }
.sc-panel > :nth-child(4) { animation-delay: 0.18s; }
.sc-panel > :nth-child(5) { animation-delay: 0.24s; }
.sc-panel h3 { margin: 18px 0 10px; font-size: clamp(2.2rem, 3.6vw, 3.4rem); line-height: 1; letter-spacing: -0.045em; }

.case-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; color: var(--muted); }
.case-index { padding: 5px 10px; border-radius: 999px; color: #fff; background: var(--accent); }
.case-summary { font-size: 1.15rem; line-height: 1.45; color: var(--text); font-weight: 600; max-width: 34ch; }

.case-steps { position: relative; display: grid; gap: 16px; margin: 28px 0; padding-left: 26px; }
.case-steps::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--line), var(--accent));
}
.case-steps li { position: relative; font-size: 0.97rem; color: var(--muted); line-height: 1.5; }
.case-steps li::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--accent);
}
.case-steps li:last-child::before { background: var(--accent); }
.case-steps span { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); margin-bottom: 2px; }

.case-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; }

.sc-controls { display: flex; align-items: center; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.sc-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--blue-200);
  background: #fff;
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  transition: background 0.25s, color 0.25s, transform 0.3s var(--ease);
}
.sc-arrow:hover { background: var(--blue); color: #fff; transform: scale(1.06); }
.sc-count { font-size: 14px; font-weight: 800; color: var(--muted); letter-spacing: 0.04em; }
.sc-count b { color: var(--text); }
.sc-progress { flex: 1; height: 3px; border-radius: 3px; background: var(--blue-100); overflow: hidden; }
.sc-progress i { display: block; height: 100%; width: calc(100% / 3); background: linear-gradient(90deg, var(--blue), var(--sky)); transform: translateX(calc(var(--sc-i, 0) * 100%)); transition: transform 0.7s var(--ease-out); }

/* ---------- Mid CTA ---------- */
.midcta { padding: 0 0 clamp(88px, 10vw, 130px); }
.midcta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.midcta-inner > p {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.midcta-inner > p span { display: block; color: var(--muted); font-weight: 600; }

/* ---------- Dark sections ---------- */
.section-dark { color: var(--text); background: rgba(243, 248, 255, 0.55); overflow: hidden; isolation: isolate; }
.section-dark p { color: var(--muted); }
.section-dark-2 { background: linear-gradient(180deg, rgba(243, 248, 255, 0.55) 0%, rgba(255, 255, 255, 0) 100%); padding-top: 0; }
.dark-glow {
  position: absolute;
  z-index: -1;
  top: -10%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 255, 0.16), transparent 65%);
  filter: blur(20px);
}

/* Booking */
.booking { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(40px, 6vw, 96px); }
.booking-copy h2 { margin: 18px 0 20px; font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.03; letter-spacing: -0.045em; }
.booking-copy > p { max-width: 52ch; font-size: 1.1rem; }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 32px 0; }
.checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--white);
  border: 1px solid var(--line);
}
.checks li::before {
  content: "✓";
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  font-size: 13px;
  color: #fff;
  background: var(--blue);
}

.booking-real {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--line);
}
.booking-real img { flex: none; width: 92px; height: 72px; object-fit: cover; object-position: top; border-radius: 12px; }
.booking-real span { font-size: 0.92rem; color: var(--muted); line-height: 1.45; }
.booking-real strong { display: block; color: var(--text); font-size: 1rem; }

.phone-stage { position: relative; display: grid; justify-items: center; gap: 18px; }
.phone-stage::before {
  content: "";
  position: absolute;
  inset: 10% 5% 15%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 255, 0.3), transparent 65%);
  filter: blur(30px);
}
/* Móvil realista: marco de titanio, bisel fino, isla dinámica y barra de estado */
.phone {
  position: relative;
  width: min(300px, 80vw);
  aspect-ratio: 300 / 616;
  padding: 9px;
  border-radius: 52px;
  color: var(--text);
  background: #0c1016;
  box-shadow:
    0 0 0 2px #d7dee7,
    0 0 0 4px #aeb9c6,
    0 0 0 5px #8e9aa8,
    0 70px 120px -40px rgba(10, 80, 160, 0.55),
    0 30px 50px -30px rgba(6, 18, 31, 0.45);
}
.phone-btn { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #8e9aa8, #c9d2dc); }
.phone-btn-action { left: -8px; top: 94px; height: 26px; }
.phone-btn-up { left: -8px; top: 138px; height: 48px; }
.phone-btn-down { left: -8px; top: 196px; height: 48px; }
.phone-btn-power { right: -8px; top: 158px; height: 76px; background: linear-gradient(270deg, #8e9aa8, #c9d2dc); }

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 43px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--blue-50) 100%);
}
.phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 35%);
  pointer-events: none;
}
.phone-status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 4px 24px 0 30px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 96px;
  height: 28px;
  border-radius: 20px;
  background: #000;
  transform: translateX(-50%);
}
.phone-icons { display: flex; align-items: center; gap: 6px; }
.phone-icons svg { height: 10px; width: auto; fill: var(--text); }
.phone-battery {
  position: relative;
  width: 25px;
  height: 12px;
  padding: 1.5px;
  border-radius: 4px;
  border: 1.5px solid rgba(11, 23, 38, 0.4);
}
.phone-battery::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; border-radius: 1px; background: rgba(11, 23, 38, 0.4); }
.phone-battery i { display: block; width: 78%; height: 100%; border-radius: 2px; background: var(--text); }

.phone-app { flex: 1; padding: 8px 14px 0; font-size: 0.92em; }
.phone-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.phone-head span { display: block; font-size: 13px; font-weight: 700; color: var(--muted); }
.phone-head strong { display: block; font-size: 28px; line-height: 1; letter-spacing: -0.04em; }
.phone-avatar {
  display: grid !important;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 13px !important;
  font-weight: 800;
  color: #fff !important;
  background: linear-gradient(135deg, var(--sky), var(--blue));
}
.phone-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-bottom: 12px; }
.phone-week span {
  display: grid;
  place-items: center;
  height: 28px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--blue-100);
}
.phone-week .is-today { color: #fff; background: var(--blue); border-color: var(--blue); }
.phone-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.phone-summary span {
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--blue-100);
}
.phone-summary strong { display: block; font-size: 18px; line-height: 1.1; letter-spacing: -0.03em; color: var(--blue); }
.phone-tabbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 8px 14px 20px;
  background: rgba(255, 255, 255, 0.85);
  border-top: 1px solid var(--blue-100);
  backdrop-filter: blur(12px);
}
.phone-tabbar span { display: grid; justify-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; color: #8a99ab; }
.phone-tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.phone-tabbar .is-on { color: var(--blue); }
.phone-home {
  position: absolute;
  bottom: 9px;
  left: 50%;
  width: 110px;
  height: 4px;
  border-radius: 3px;
  background: var(--text);
  transform: translateX(-50%);
}
.phone-list { display: grid; gap: 8px; }

.bk {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 10px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px -16px rgba(6, 18, 31, 0.4);
  border-left: 4px solid var(--ok);
}
.bk time { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.bk strong { display: block; font-size: 13px; line-height: 1.2; }
.bk small { display: block; font-size: 10.5px; color: var(--muted); }
.bk b {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #0b7a47;
  background: rgba(23, 178, 106, 0.14);
}
.bk-wait { border-left-color: var(--warn); }
.bk-wait b { color: #9a5b00; background: rgba(245, 165, 36, 0.18); }

.bk-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #1a9cf0);
  box-shadow: 0 18px 30px -16px rgba(10, 127, 214, 0.9);
}
.bk-alert small { display: block; font-size: 11px; opacity: 0.8; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.bk-alert strong { font-size: 12.5px; line-height: 1.25; }
.bk-bell { font-size: 20px; }
.phone-note { max-width: 32ch; text-align: center; font-size: 0.85rem; color: var(--muted) !important; }

.js .phone-list > * { opacity: 0; transform: translateY(26px) scale(0.96); }
.js .phone-stage.is-in .phone-list > * { animation: pop 0.7s var(--ease-out) forwards; }
.js .phone-stage.is-in .phone-list > :nth-child(1) { animation-delay: 0.3s; }
.js .phone-stage.is-in .phone-list > :nth-child(2) { animation-delay: 0.75s; }
.js .phone-stage.is-in .phone-list > :nth-child(3) { animation: pop 0.7s var(--ease-out) 1.4s forwards, nudge 4s ease-in-out 2.4s infinite; }
@keyframes pop { to { opacity: 1; transform: none; } }
@keyframes nudge { 0%, 88%, 100% { transform: none; } 92% { transform: rotate(-2deg) scale(1.02); } 96% { transform: rotate(2deg) scale(1.02); } }

/* ---------- Automatizaciones: recorrido del cliente ---------- */
.journey { margin-bottom: clamp(40px, 5vw, 64px); }
.jr-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
/* Línea que une las etapas y punto que la recorre */
.jr-track::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue-200) 0 8px, transparent 8px 16px);
}
.jr-track::after {
  content: "";
  position: absolute;
  top: 29px;
  left: 10%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 4px rgba(56, 189, 255, 0.25), 0 0 16px var(--sky);
  transform: translateX(-50%);
  animation: jrTravel 11s linear infinite;
}
@keyframes jrTravel {
  0% { left: 10%; opacity: 0; }
  4% { opacity: 1; }
  92% { left: 90%; opacity: 1; }
  100% { left: 90%; opacity: 0; }
}

.jr-stage { display: flex; flex-direction: column; align-items: center; text-align: center; }
.jr-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 22px;
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--blue-200);
  box-shadow: 0 16px 30px -18px rgba(10, 80, 160, 0.5);
  animation: jrLit 11s ease-out infinite;
  animation-delay: calc(0.44s + var(--i) * 2.2s);
}
@keyframes jrLit {
  0% { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 7px rgba(56, 189, 255, 0.22), 0 22px 40px -16px rgba(10, 127, 214, 0.8); transform: translateY(-4px) scale(1.06); }
  20%, 100% { color: var(--blue); background: #fff; border-color: var(--blue-200); box-shadow: 0 16px 30px -18px rgba(10, 80, 160, 0.5); transform: none; }
}
.jr-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.jr-label { display: grid; gap: 2px; margin: 16px 0 14px; line-height: 1.25; }
.jr-label small { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; color: var(--blue); }
.jr-label strong { font-size: 1.3rem; letter-spacing: -0.03em; }
.jr-label span { font-size: 13px; color: var(--muted); }

.jr-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 20px;
  border-radius: 22px;
  text-align: left;
  border: 1px solid var(--line);
  animation: jrCard 11s ease-out infinite;
  animation-delay: calc(0.44s + var(--i) * 2.2s);
}
@keyframes jrCard {
  0% { border-color: var(--blue); box-shadow: 0 24px 50px -30px rgba(10, 127, 214, 0.7); transform: translateY(-4px); }
  20%, 100% { border-color: var(--line); box-shadow: none; transform: none; }
}
.jr-card h3 { font-size: 1.02rem; letter-spacing: -0.02em; }
.section-dark .jr-card p { font-size: 0.9rem; line-height: 1.5; }
.jr-ai {
  align-self: flex-start;
  margin-top: auto;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-deep);
  background: linear-gradient(90deg, rgba(56, 189, 255, 0.16), rgba(10, 127, 214, 0.1));
  border: 1px solid var(--blue-200);
}
.jr-ai i, .agents-badge i { font-style: normal; display: inline-block; animation: sparkle 2.4s ease-in-out infinite; }
@keyframes sparkle { 50% { transform: rotate(90deg) scale(1.25); } }

/* Bloque de agentes de IA */
.agents {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 28px clamp(28px, 4vw, 48px);
  margin-bottom: clamp(64px, 8vw, 100px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: 32px;
  color: #fff;
  background: linear-gradient(140deg, #1a9cf0 0%, var(--blue) 50%, var(--blue-deep) 100%);
  box-shadow: 0 40px 80px -40px rgba(10, 127, 214, 0.7);
  overflow: hidden;
  isolation: isolate;
}
.agents::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -40%;
  right: -10%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 65%);
}
/* Robot: flota, parpadea, saluda y la antena se enciende */
.robot { width: 150px; }
.robot svg { width: 100%; height: auto; overflow: visible; }
.robot-body { animation: robotFloat 3.6s ease-in-out infinite; }
@keyframes robotFloat { 50% { transform: translateY(-8px); } }
.robot-shadow { fill: rgba(0, 30, 80, 0.25); transform-origin: 80px 180px; animation: robotShadow 3.6s ease-in-out infinite; }
@keyframes robotShadow { 50% { transform: scaleX(0.82); opacity: 0.6; } }
.robot-eyes { transform-origin: 80px 70px; animation: robotBlink 4.2s infinite; }
@keyframes robotBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
.robot-light { fill: #9fdcff; animation: robotLight 1.6s ease-in-out infinite; }
@keyframes robotLight { 50% { fill: #ffffff; filter: drop-shadow(0 0 6px #fff); } }
.robot-arm { transform-origin: 123px 100px; animation: robotWave 3.6s ease-in-out infinite; }
@keyframes robotWave { 0%, 60%, 100% { transform: rotate(0deg); } 70% { transform: rotate(-150deg); } 78% { transform: rotate(-120deg); } 86% { transform: rotate(-150deg); } }

.agents-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.agents h3 { margin: 16px 0 10px; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; letter-spacing: -0.04em; }
.section-dark .agents p { color: rgba(255, 255, 255, 0.85); }
.agents-list { display: grid; gap: 10px; }
.agents-list li {
  display: grid;
  gap: 2px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.agents-list strong { font-size: 1rem; }
.agents-list span { font-size: 0.92rem; color: rgba(255, 255, 255, 0.82); }

.flows-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.flows-head h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); letter-spacing: -0.03em; }

/* Flows */
.flows {
  padding: clamp(18px, 3vw, 36px);
  border-radius: 36px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.flow-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: var(--blue-50);
  border: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.flow-tabs::-webkit-scrollbar { display: none; }
.flow-tabs button {
  flex: 1 0 auto;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  white-space: nowrap;
  transition: color 0.25s, background 0.25s;
}
.flow-tabs button:hover { color: var(--blue); }
.flow-tabs button[aria-selected="true"] { color: #fff; background: var(--blue); box-shadow: 0 8px 20px -10px rgba(10, 127, 214, 0.8); }

.flow-intro { max-width: 70ch; margin: 28px 4px 32px; font-size: 1.02rem; }

.flow-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 64px);
}
.flow-track::before,
.flow-track::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 12%;
  right: 12%;
  height: 2px;
  z-index: 0;
}
.flow-track::before { background: repeating-linear-gradient(90deg, var(--blue-200) 0 8px, transparent 8px 16px); }
.flow-track::after {
  right: auto;
  width: 60px;
  height: 4px;
  margin-top: -1px;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--sky), var(--blue));
  box-shadow: 0 0 14px rgba(56, 189, 255, 0.7);
  animation: travel 3.2s linear infinite;
}
@keyframes travel { from { left: 12%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { left: calc(88% - 60px); opacity: 0; } }

.flow-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 22px;
  border-radius: 24px;
  text-align: left;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s, background 0.3s;
}
.flow-step:hover { transform: translateY(-4px); border-color: var(--blue-200); }
.flow-step.is-active {
  background: var(--blue-50);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(10, 127, 214, 0.1), 0 24px 50px -24px rgba(10, 127, 214, 0.5);
}
.flow-step small { font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: 0.04em; text-transform: uppercase; }
.flow-step strong { font-size: 1.15rem; letter-spacing: -0.02em; }
.flow-logos { display: flex; gap: 6px; margin-bottom: 14px; }
.flow-logos img { width: 40px; height: 40px; padding: 7px; border-radius: 12px; background: #fff; border: 1px solid var(--line); object-fit: contain; }
.flow-badge {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--blue);
}

.flow-detail {
  margin-top: 28px;
  padding: 26px 28px;
  border-radius: 24px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  min-height: 150px;
}
.flow-detail-tag { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.flow-detail h3 { margin: 8px 0 8px; font-size: 1.4rem; letter-spacing: -0.02em; }
.flow-detail p { max-width: 80ch; }
.flow-detail.is-swap > * { animation: fadeUp 0.45s var(--ease-out) both; }

/* ---------- Process ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.process::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  transform-origin: 0 50%;
  transform: scaleX(var(--line-progress, 0));
  transition: transform 1.4s var(--ease-out);
}
.process::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 28px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: var(--line);
}
.process li { position: relative; }
.process-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 28px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 0 0 8px var(--white);
}
.process h3 { font-size: 1.45rem; letter-spacing: -0.03em; margin-bottom: 10px; }
.process p { color: var(--muted); max-width: 32ch; }

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.bento > * {
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
}
.b-label { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }

.b-portrait {
  position: relative;
  grid-column: span 4;
  grid-row: span 2;
  min-height: 460px;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(159, 220, 255, 0.7), transparent 60%),
    linear-gradient(170deg, var(--sky) 0%, var(--blue) 55%, var(--blue-deep) 100%);
  border: 0;
}
.b-portrait img {
  position: absolute;
  bottom: 0;
  left: 50%;
  height: 92%;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
  transition: transform 0.8s var(--ease);
}
.b-portrait:hover img { transform: translateX(-50%) scale(1.03); }
.b-portrait-name {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: grid;
  padding: 12px 16px;
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  line-height: 1.3;
}
.b-portrait-name span { font-size: 13px; opacity: 0.75; }
.b-portrait-link {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-deep);
  background: #fff;
  transition: transform 0.3s var(--ease);
}
.b-portrait-link:hover { transform: translateY(-2px); }

.b-role { grid-column: span 5; display: flex; flex-direction: column; justify-content: center; }
.b-role h3 { font-size: 1.6rem; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 12px; }
.b-role p { color: var(--muted); margin-bottom: 22px; }
.b-role .tags { margin-top: auto; }

.b-stat {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background: linear-gradient(150deg, var(--blue), var(--blue-deep));
  border: 0;
}
.b-stat strong { font-size: clamp(3rem, 5vw, 4.4rem); line-height: 0.95; letter-spacing: -0.06em; }
.b-stat > span { margin-top: 8px; opacity: 0.85; font-weight: 600; }

.b-cred {
  grid-column: span 4;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.b-cred:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: rgba(10, 127, 214, 0.3); }
.b-cred img { flex: none; width: 64px; height: 64px; border-radius: 16px; object-fit: contain; background: var(--paper); padding: 6px; }
.b-cred > span { flex: 1; line-height: 1.35; }
.b-cred small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.b-cred strong { display: block; font-size: 1.1rem; letter-spacing: -0.02em; }
.b-cred em { font-family: var(--font); font-style: normal; font-size: 13px; color: var(--muted); }
.b-cred > i { font-style: normal; color: var(--blue); font-weight: 800; }

.b-tools { grid-column: span 7; }
.tool-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-cloud span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.tool-cloud span:hover { transform: translateY(-3px); border-color: rgba(10, 127, 214, 0.35); }
.tool-cloud img { width: 26px; height: 26px; padding: 3px; border-radius: 50%; background: #fff; object-fit: contain; }

.b-linkedin { grid-column: span 5; }
.b-linkedin ul { display: grid; }
.b-linkedin a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  transition: color 0.2s, padding 0.3s var(--ease);
}
.b-linkedin li:first-child a { border-top: 0; }
.b-linkedin a:hover { color: var(--blue); padding-left: 6px; }
.b-linkedin strong { font-size: 1rem; }
.b-linkedin small { grid-row: 2; font-size: 12.5px; color: var(--muted); }
.b-linkedin i { grid-row: 1 / span 2; grid-column: 2; font-style: normal; color: var(--blue); font-weight: 800; }

/* ---------- Final CTA ---------- */
.final {
  position: relative;
  padding: clamp(110px, 14vw, 190px) 0 0;
  color: #fff;
  /* Más transparente en el centro para que la nube se vea detrás del titular */
  background: radial-gradient(ellipse 60% 55% at 50% 42%, rgba(10, 127, 214, 0.5) 0%, rgba(10, 127, 214, 0.82) 70%, rgba(5, 96, 168, 0.94) 100%);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.final-glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 0;
  width: 1100px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.25), transparent 60%);
}
.final-inner { display: grid; justify-items: center; }
.final h2 {
  max-width: 16ch;
  margin: 26px 0 22px;
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}
.final h2 em { background-image: linear-gradient(100deg, #ffffff 0%, #d6efff 50%, #9fdcff 100%); }
.final p { max-width: 52ch; font-size: 1.15rem; color: rgba(255, 255, 255, 0.85); }
.final .pill { color: #fff; background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); }
.final .pill-live i { background: #fff; }
.final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 38px; }
.final-mail {
  margin-top: 28px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: color 0.2s, border-color 0.2s;
}
.final-mail:hover { color: #fff; border-color: #fff; }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: clamp(90px, 12vw, 150px);
  padding-top: 26px;
  padding-bottom: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Cristal: tarjetas translúcidas sobre la nube ---------- */
.flows,
.jr-card,
.checks li,
.booking-real,
.bento > :not(.b-portrait):not(.b-stat) {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.flow-step:not(.is-active) { background: rgba(255, 255, 255, 0.7); }
.tags span,
.tool-cloud span { background: rgba(245, 249, 255, 0.75); }

/* ---------- Mobile CTA ---------- */
.mobile-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px;
  border-radius: 999px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #1a9cf0);
  box-shadow: 0 18px 40px -12px rgba(10, 127, 214, 0.8);
  transform: translateY(140%);
  transition: transform 0.5s var(--ease);
}
.mobile-cta.is-visible { transform: none; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--delay, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .service { grid-template-columns: 1fr; min-height: 0; }
  .sc-stage { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(3.2rem, 9vw, 7.4rem); }
  /* El recorrido pasa a ser una línea vertical */
  .jr-track { grid-template-columns: 1fr; gap: 18px; }
  .jr-track::before { top: 34px; bottom: 34px; left: 33px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--blue-200) 0 8px, transparent 8px 16px); }
  .jr-track::after { display: none; }
  .jr-stage { display: grid; grid-template-columns: 68px 1fr; column-gap: 18px; align-items: start; text-align: left; }
  .jr-node { grid-row: span 2; }
  .jr-label { margin: 4px 0 10px; }
  .agents { grid-template-columns: 1fr; }
  .robot { width: 120px; }
  .booking { grid-template-columns: 1fr; }
  .bento > .b-portrait { grid-column: span 12; grid-row: auto; min-height: 420px; }
  .b-role { grid-column: span 8; }
  .b-stat { grid-column: span 4; }
  .b-cred { grid-column: span 6; }
  .b-tools, .b-linkedin { grid-column: span 12; }
  .section-head-split { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { top: 10px; height: 54px; }
  .nav-brand span { font-size: 15px; }
  .hero { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 72px; }
  .hero { align-items: stretch; padding-bottom: 40px; }
  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto auto;
    grid-template-areas: "title" "cloud" "sub" "actions";
    row-gap: 20px;
  }
  .hero-cloud-anchor { position: static; grid-area: cloud; min-height: 230px; }
  .hero-title { font-size: clamp(2.9rem, 14vw, 4rem); line-height: 1.02; }
  .hero-title .line-em { justify-self: start; }
  .hero-sub { justify-self: start; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-scroll { display: none; }
  /* En móvil la tarjeta es más alta que la pantalla: sin apilar para que se lea entera */
  .service { position: relative; top: auto; transform: none; filter: none; padding: 26px 22px; border-radius: 28px; }
  .service li { padding: 12px 14px; font-size: 0.95rem; }
  .sc-tabs { gap: 8px; margin-bottom: 46px; }
  .sc-tab { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px; border-radius: 18px; }
  .sc-tab-thumb { width: 100%; height: 56px; }
  .sc-tab-text { padding: 0 4px 2px; }
  .sc-tab-text small, .sc-tab-text span { display: none; }
  .sc-tab-text strong { font-size: 0.88rem; line-height: 1.15; white-space: normal; }
  .sc-tab::after { height: 44px; }
  @keyframes beamDot { 0% { transform: translateY(0); opacity: 0; } 15%, 80% { opacity: 1; } 100% { transform: translateY(40px); opacity: 0; } }
  .sc-shots { height: 340px; }
  .case-foot .btn { width: 100%; }
  .midcta-inner .btn { width: 100%; }
  .checks { grid-template-columns: 1fr; }
  .phone-btn { display: none; }
  .flow-track { grid-template-columns: 1fr; gap: 14px; }
  .flow-track::before { top: 12%; bottom: 12%; left: 42px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(56, 189, 255, 0.45) 0 8px, transparent 8px 16px); }
  .flow-track::after { display: none; }
  .flow-step { grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 16px; }
  .flow-step .flow-logos { grid-row: span 2; margin: 0; }
  .flow-detail { padding: 22px; }
  .process { grid-template-columns: 1fr; gap: 36px; }
  .process::before, .process::after { top: 28px; bottom: 28px; left: 28px; right: auto; width: 2px; height: auto; }
  .process::before { transform: scaleY(var(--line-progress, 0)); transform-origin: 50% 0; }
  .process li { padding-left: 84px; }
  .process-dot { position: absolute; left: 0; top: -6px; margin: 0; }
  .bento > * { grid-column: span 12 !important; padding: 24px; }
  .b-portrait { min-height: 400px; }
  .final-actions .btn { flex: 1 1 100%; }
  .footer { padding-bottom: 100px; }
  .mobile-cta { display: flex; }
}

@media (max-width: 380px) {
  .nav { gap: 10px; padding: 0 8px 0 12px; }
  .nav-cloud { width: 30px; height: 30px; }
  .nav .btn-sm { --pad-x: 12px; font-size: 13px; }
  .hero-title { font-size: 2.45rem; }
  .sc-tab-thumb { height: 46px; }
  .phone-status { padding: 4px 20px 0 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .hero-title .line > span { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .phone-list > * { opacity: 1; transform: none; }
}
