/* ═══════════════════════════════════════════════════════
   EHS AI — Landing Page · Style System v2
   Concepto: Hero dark (imagen) → scroll → blanco puro
   Navbar: transparente dark → blur white al scrollear
═══════════════════════════════════════════════════════ */

/* Inter se carga desde <link> en index.html (evita @import render-blocking) */

/* ─── TOKENS ────────────────────────────────────────── */
:root {
  /* Palette */
  --ink:        #0a0a0a;
  --ink-soft:   #3a3a3a;
  --ink-muted:  #6b6b6b;
  --ink-faint:  #9a9a9a;
  --canvas:     #ffffff;
  --canvas-off: #f5f5f5;
  --canvas-dim: #efefef;
  --border:     rgba(0,0,0,0.09);
  --border-md:  rgba(0,0,0,0.14);

  /* On-dark (hero) */
  --od-text:    rgba(255,255,255,0.95);
  --od-soft:    rgba(255,255,255,0.60);
  --od-faint:   rgba(255,255,255,0.35);
  --od-border:  rgba(255,255,255,0.14);

  /* Accent: blanco/negro puro */
  --accent:     #0a0a0a;
  --accent-inv: #ffffff;

  /* Nav */
  --nav-h: 64px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);

  /* Radius */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 9999px;

  /* Hero (landing empresas): capas estilo Resend */
  --hero-ambient: none;
}

/* ─── RESET ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, video { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ═══════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 40px;
  z-index: 900;
  background: transparent;
  border-bottom: none;
  transition:
    background 0.45s var(--ease-out),
    border-color 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}

.nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  position: relative;
}

.nav.light {
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 2;
}
.nav-logo-img {
  width: auto;
  height: 14px;
  object-fit: contain;
  display: block;
  transition: filter 0.45s var(--ease-out);
}
.nav.light .nav-logo-img {
  filter: invert(1);
}

.nav-links {
  display: flex;
  gap: 32px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--od-soft);
  letter-spacing: -0.1px;
  transition: color 0.25s ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--od-text); }
.nav.light .nav-links a { color: var(--ink-muted); }
.nav.light .nav-links a:hover { color: var(--ink); }

.nav-lang {
  position: relative;
  margin-left: auto;
  margin-right: 10px;
  z-index: 4;
  flex-shrink: 0;
}
.nav-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 6px 2px;
  border: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  color: var(--od-soft);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  transition: color 0.25s ease;
}
.nav-lang-btn:hover,
.nav-lang.is-open .nav-lang-btn {
  color: var(--od-text);
}
.nav-lang-btn:focus-visible {
  outline: none;
  color: var(--od-text);
}
.nav-lang-btn:focus-visible .nav-lang-code {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.nav-lang-btn:active {
  transform: scale(0.97);
}
.nav.light .nav-lang-btn { color: var(--ink-muted); }
.nav.light .nav-lang-btn:hover,
.nav.light .nav-lang.is-open .nav-lang-btn,
.nav.light .nav-lang-btn:focus-visible {
  color: var(--ink);
}
.nav-lang-code {
  font-variant-numeric: tabular-nums;
}
.nav-lang-chevron {
  width: 10px;
  height: 10px;
  display: block;
  flex-shrink: 0;
  opacity: 0.72;
  transform-origin: 50% 55%;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
}
.nav-lang-chevron path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-lang.is-open .nav-lang-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 168px;
  padding: 6px;
  background: rgba(16, 16, 16, 0.92);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.48),
    0 1px 0 rgba(255,255,255,0.06) inset;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(0.92);
  transform-origin: top right;
  transition:
    opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.2s;
  z-index: 20;
}
.nav-lang.is-open .nav-lang-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.nav-lang-opt {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 10px;
  border: 0;
  background: none;
  border-radius: 8px;
  color: rgba(255,255,255,0.55);
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-lang-opt:hover,
.nav-lang-opt:focus-visible {
  outline: none;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
}
.nav-lang-opt.is-active {
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.07);
}
.nav-lang-opt-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.15px;
}
.nav-lang-opt-code {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  opacity: 0.45;
}
.nav-lang-opt.is-active .nav-lang-opt-code {
  opacity: 0.7;
}

.nav.light .nav-lang-menu {
  background: rgba(255,255,255,0.96);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow:
    0 16px 40px rgba(15, 23, 42, 0.12),
    0 1px 0 rgba(255,255,255,0.8) inset;
}
.nav.light .nav-lang-opt { color: var(--ink-muted); }
.nav.light .nav-lang-opt:hover,
.nav.light .nav-lang-opt:focus-visible {
  background: rgba(15, 23, 42, 0.045);
  color: var(--ink);
}
.nav.light .nav-lang-opt.is-active {
  color: var(--ink);
  background: rgba(15, 23, 42, 0.055);
}

@media (prefers-reduced-motion: reduce) {
  .nav-lang-btn,
  .nav-lang-chevron,
  .nav-lang-menu,
  .nav-lang-opt {
    transition: none;
  }
}

.nav-actions {
  margin-left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.btn-nav-ghost {
  padding: 7px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--od-border);
  font-size: 13px;
  font-weight: 500;
  color: var(--od-text);
  letter-spacing: -0.1px;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.45s var(--ease-out);
}
.btn-nav-ghost:hover { background: rgba(255,255,255,0.1); }
.nav.light .btn-nav-ghost { border-color: var(--border-md); color: var(--ink); }
.nav.light .btn-nav-ghost:hover { background: var(--canvas-off); }

.btn-nav-solid {
  padding: 7px 18px;
  border-radius: var(--r-pill);
  background: var(--od-text);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.1px;
  transition: background 0.25s ease, color 0.45s var(--ease-out), opacity 0.25s ease;
}
.btn-nav-solid:hover { opacity: 0.88; }
.nav.light .btn-nav-solid { background: var(--ink); color: var(--canvas); }

/* Mobile toggle */
.nav-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  border-radius: var(--r-sm);
  color: var(--od-text);
  margin-left: 2px;
  z-index: 2;
  transition: color 0.45s var(--ease-out);
}
.nav.light .nav-mobile-toggle { color: var(--ink); }
.nav-mobile-toggle-icon {
  position: relative;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}
.nav-mobile-toggle-icon .icon-svg {
  width: 24px;
  height: 24px;
  grid-area: 1 / 1;
}
.nav-mobile-toggle .icon-svg[hidden],
.nav-mobile-toggle[aria-expanded="false"] .icon-close,
.nav-mobile-toggle[aria-expanded="true"] .icon-menu {
  display: none !important;
}
.nav-mobile-toggle[aria-expanded="true"] .icon-close {
  display: block !important;
}

/* Mobile drawer */
.nav-mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 850;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-mobile-backdrop.open,
body.nav-mobile-open .nav-mobile-backdrop {
  display: block;
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 90vw);
  background: var(--canvas);
  z-index: 860;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.4s var(--ease-out), visibility 0s linear 0.4s;
}
.nav-mobile-drawer.open,
body.nav-mobile-open .nav-mobile-drawer {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.4s var(--ease-out), visibility 0s linear 0s;
}
body.nav-mobile-open {
  overflow: hidden;
}
.nav-mobile-links { display: flex; flex-direction: column; gap: 4px; margin-top: 48px; }
.nav-mobile-links a {
  display: block;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--r-sm);
  transition: background 0.2s ease;
}
.nav-mobile-links a:hover { background: var(--canvas-off); }
.nav-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.btn-ghost--block, .btn-solid--block {
  display: block;
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.btn-ghost--block { border: 1px solid var(--border-md); color: var(--ink); }
.btn-solid--block { background: var(--ink); color: var(--canvas); }

/* ═══════════════════════════════════════════════════════
   HERO — ambiente + copy
═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
  background-color: #000;
}

/* Capa de ambiente: piso + rayo (mismo stacking que Resend) */
.hero-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #000;
}
.hero-bg-floor,
.hero-bg-light {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  user-select: none;
}
.hero-bg-floor {
  opacity: 1;
}
.hero-bg-light {
  top: 0;
}

.hero-foreground {
  position: relative;
  z-index: 2;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 12px) 40px max(24px, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  padding: 0;
  max-width: none;
  width: 100%;
  margin: 0;
  flex-shrink: 0;
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(260px, 520px) minmax(280px, 1fr);
  gap: 20px;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  overflow: visible;
}

.hero-demo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  perspective: 1600px;
  perspective-origin: 18% 42%;
}
.hero-demo::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 4%;
  bottom: -6px;
  height: 56px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.78) 0%, transparent 72%);
  filter: blur(16px);
  pointer-events: none;
  z-index: 1;
}
.hero-demo .fbrowser {
  width: 100%;
  max-width: none;
  margin: 0;
  z-index: 2;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  transform: rotateY(-16deg) rotateX(8deg);
  transform-origin: center center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 0 0 1px rgba(255,255,255,0.06),
    0 2px 4px rgba(0,0,0,0.4),
    0 24px 48px rgba(0,0,0,0.5),
    0 60px 110px rgba(0,0,0,0.58),
    0 110px 160px rgba(0,0,0,0.4);
}
.hero-demo .fbrowser-url {
  min-width: 0;
  flex: 1;
  max-width: min(340px, 100%);
}

.fb-mouse-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 88px;
  height: 88px;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
  transform: translate3d(-200px, -200px, 0) translate(-50%, -50%);
  transition: opacity 0.12s ease;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(255,255,255,0.11) 0%,
      rgba(255,255,255,0.04) 32%,
      transparent 64%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='80' height='80' filter='url(%23g)' opacity='0.12'/%3E%3C/svg%3E");
  background-size: 100% 100%, 80px 80px;
  background-blend-mode: overlay;
  -webkit-mask-image: radial-gradient(circle, #000 12%, transparent 72%);
  mask-image: radial-gradient(circle, #000 12%, transparent 72%);
}
.fb-mouse-glow.is-on {
  opacity: 0.45;
  transition: none;
}

/* Title */
.hero-title {
  font-size: clamp(32px, 4.4vw, 58px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -2px;
  color: var(--od-text);
  position: relative;
  margin-top: 0;
  margin-bottom: 16px;
  transform: none;
  max-width: none;
}

/* Primera línea: gris metálico, peso 700, shimmer por letra */
.hero-title-shine {
  background: none;
  color: #888888;
  -webkit-text-fill-color: #888888;
  white-space: nowrap;
  font-weight: 700;
}

.hero-title em {
  font-style: normal;
  font-weight: 300;
  letter-spacing: -2px;
  color: var(--od-text);
  -webkit-text-fill-color: var(--od-text);
}
.hero-title .shine-char {
  backface-visibility: hidden;
}

/* Cada letra individual — mismo gris base, sin transición para evitar flash */
.shine-char {
  display: inline-block;
  white-space: pre;
  font-weight: 700;
  color: #888888;
  -webkit-text-fill-color: #888888;
}

/* Shimmer por letra — se activa cuando JS añade shimmer-active al padre */
.hero-title-shine.shimmer-active .shine-char {
  animation: char-shimmer 2s ease-in-out infinite;
}
/* anima color (repinta en cada cuadro): se pausa mientras el hero no está en pantalla */
.hero-title-shine.shimmer-offscreen .shine-char {
  animation-play-state: paused;
}

@keyframes char-shimmer {
  0%,100% { color: #888888; -webkit-text-fill-color: #888888; }
  50%      { color: #ffffff; -webkit-text-fill-color: #ffffff; }
}

/* Subtitle */
.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--od-soft);
  max-width: 520px;
  margin: 0 0 36px;
}

/* CTA row */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  transition: opacity 0.2s ease, transform 0.2s var(--ease-out);
}
.btn-hero-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  border: 1px solid var(--od-border);
  color: var(--od-text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.2px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-hero-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
}

/* ═══════════════════════════════════════════════════════
   TRUST BAR
═══════════════════════════════════════════════════════ */
.trust-bar {
  padding: 40px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
}
.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-faint);
}

/* ═══════════════════════════════════════════════════════
   SECTIONS — blanco puro
═══════════════════════════════════════════════════════ */
.section {
  padding: 96px 40px;
  max-width: 1160px;
  margin: 0 auto;
}
.section-full {
  padding: 96px 40px;
  width: 100%;
}
.section-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 14px;
  max-width: 720px;
}
.section-sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 540px;
  margin-bottom: 60px;
}
.section-header-center { text-align: center; }
.section-header-center .section-title,
.section-header-center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════════════════════════════
   FEATURES GRID
═══════════════════════════════════════════════════════ */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.feat-item {
  background: var(--canvas);
  padding: 36px 32px;
  transition: background 0.2s ease;
}
.feat-item:hover { background: var(--canvas-off); }

.feat-item-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--ink-faint);
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}
.feat-item-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--ink);
}
.feat-item-icon .material-symbols-outlined { font-size: 22px; }
.feat-item-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}
.feat-item-desc {
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-muted);
}

/* ═══════════════════════════════════════════════════════
   CTA BAND
═══════════════════════════════════════════════════════ */
.cta-band {
  background: var(--ink);
  border-radius: var(--r-xl);
  padding: 72px 64px;
  text-align: center;
  margin: 0 40px 40px;
}
.cta-band-title {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.1;
  color: var(--canvas);
  margin-bottom: 14px;
}
.cta-band-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 32px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.cta-band-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-cta-primary {
  padding: 13px 26px;
  border-radius: var(--r-pill);
  background: var(--canvas);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  transition: opacity 0.2s ease;
}
.btn-cta-primary:hover { opacity: 0.88; }
.btn-cta-ghost {
  padding: 12px 22px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-cta-ghost:hover { border-color: rgba(255,255,255,0.38); color: #fff; }

/* ═══════════════════════════════════════════════════════
   DIVIDER
═══════════════════════════════════════════════════════ */
.section-divider {
  height: 1px;
  background: var(--border);
  margin: 0 40px;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.footer {
  position: relative;
  overflow: hidden;
  background: #000;
  color: rgba(255,255,255,0.4);
  padding: 56px 40px 0;
  isolation: isolate;
}
.footer-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.footer-bg-light {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.5;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.7) 38%, transparent 78%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.7) 38%, transparent 78%);
}
.footer-inner {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  padding-bottom: 0;
}
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr minmax(220px, 1.15fr);
  gap: 40px 32px;
  align-items: start;
  position: relative;
  z-index: 2;
}
.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #9a9a9a;
  margin-bottom: 18px;
}
.footer-col a,
.footer-col button {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.62);
  margin-bottom: 11px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s ease;
}
.footer-col a:hover,
.footer-col button:hover {
  color: #fff;
}
.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
}
.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: var(--r-pill);
  background: #fff;
  color: #0a0a0a;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.2px;
  transition: opacity 0.2s ease, transform 0.2s var(--ease-out);
}
.footer-cta-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.footer-cta-note {
  font-size: 11px;
  line-height: 1.55;
  color: rgba(255,255,255,0.32);
  max-width: 260px;
}
.footer-mark-wrap {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin: 8px 0 0;
  pointer-events: none;
  user-select: none;
}
.footer-mark {
  position: relative;
  display: block;
  width: 100%;
  text-align: center;
  font-size: clamp(96px, 22vw, 280px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0.78;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  transform: translateY(22%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 22%, transparent 88%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 22%, transparent 88%);
}
.footer-mark-outline,
.footer-mark-mask {
  display: block;
}
.footer-mark-outline {
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.6px rgba(176, 176, 176, 0.72);
}
.footer-mark-mask {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  color: #000;
  -webkit-text-fill-color: #000;
  -webkit-text-stroke: 0;
}
.footer-brand-stage {
  position: relative;
  z-index: 1;
}
.footer-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: rgba(255,255,255,0.28);
  pointer-events: auto;
}
.footer-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: none;
  margin: 0;
  padding: 4px 0 28px;
  font-size: 12px;
  color: rgba(255,255,255,0.28);
}
.footer-bottom a {
  color: rgba(255,255,255,0.42);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}
.footer-bottom a:hover { color: rgba(255,255,255,0.78); }

/* ═══════════════════════════════════════════════════════
   MODAL AUTH
═══════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--canvas);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 420px;
  padding: 36px 32px;
  position: relative;
  transform: translateY(14px);
  transition: transform 0.35s var(--ease-out);
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--ink-muted);
  transition: background 0.2s ease, color 0.2s ease;
}
.modal-close:hover { background: var(--canvas-off); color: var(--ink); }

.modal-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.modal-logo-box {
  width: 32px; height: 32px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--canvas-off);
  display: flex; align-items: center; justify-content: center;
}
.modal-logo-box img { width: 100%; height: 100%; object-fit: contain; }
.modal-logo-name { font-size: 15px; font-weight: 600; letter-spacing: -0.3px; color: var(--ink); }

.modal-switch {
  display: flex;
  gap: 4px;
  background: var(--canvas-off);
  border-radius: var(--r-pill);
  padding: 4px;
  position: relative;
  margin-bottom: 28px;
}
.modal-tab-pill {
  position: absolute;
  top: 4px; bottom: 4px;
  border-radius: var(--r-pill);
  background: var(--canvas);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: left 0.3s var(--ease-out), width 0.3s var(--ease-out);
  pointer-events: none;
}
.modal-tab {
  flex: 1;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  position: relative;
  z-index: 1;
  transition: color 0.2s ease;
}
.modal-tab.active { color: var(--ink); }

.modal-alert {
  font-size: 13px;
  line-height: 1.5;
  border-radius: var(--r-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
  display: none;
}
.modal-alert.error   { background: #fff0f0; color: #c00; display: block; }
.modal-alert.success { background: #f0fff4; color: #080; display: block; }

.auth-panels-viewport { overflow: hidden; }
.auth-panels-track {
  display: flex;
  transition: transform 0.4s var(--ease-out);
}
.auth-panel { flex-shrink: 0; width: 100%; }

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: opacity 0.25s var(--ease-out);
}
.form-group  { display: flex; flex-direction: column; gap: 6px; }
.form-label  { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.form-input-wrap { position: relative; }
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-md);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--canvas);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(10,10,10,0.06);
}
.form-input.has-eye { padding-right: 42px; }
.eye-btn {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-faint);
  display: flex; align-items: center;
  transition: color 0.2s ease;
}
.eye-btn:hover { color: var(--ink); }
.eye-btn .material-symbols-outlined { font-size: 18px; }

.form-submit {
  padding: 13px 20px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--canvas);
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
  transition: opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
}
.form-forgot-link {
  display: block;
  width: fit-content;
  margin: 2px 0 0 auto;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-faint);
  cursor: pointer;
  text-align: right;
  text-decoration: none;
}
.form-forgot-link:hover {
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-submit:hover { opacity: 0.82; }
.form-submit:disabled,
.form-submit.is-loading {
  opacity: 0.72;
  cursor: wait;
  pointer-events: none;
}
.form-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  animation: form-spin 0.65s linear infinite;
}
@keyframes form-spin {
  to { transform: rotate(360deg); }
}

.modal-form.is-loading {
  pointer-events: none;
}
.modal-form.is-loading .form-input,
.modal-form.is-loading .eye-btn {
  opacity: 0.55;
}
.modal-form.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  animation: form-shimmer 1.1s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes form-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.modal-overlay.auth-booting .modal-form {
  pointer-events: none;
  opacity: 0.72;
}
.modal-overlay.auth-booting .form-submit {
  position: relative;
}
.modal-overlay.auth-booting .form-submit::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  vertical-align: -3px;
  animation: form-spin 0.65s linear infinite;
}

.modal-footer-link {
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 20px;
}
.modal-footer-link a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.modal.modal--verify .modal-switch,
.modal.modal--recover .modal-switch { display: none; }
.recover-step[hidden] { display: none !important; }
.recover-success {
  text-align: center;
  padding: 8px 0 4px;
}
.recover-success-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--ink);
}
.recover-success-text {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.otp-hint {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: center;
}
.otp-code-group { gap: 8px; }
.otp-input {
  text-align: center;
  letter-spacing: 0.28em;
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px solid #0a0a0a;
  background: #0a0a0a;
  color: #ffffff;
}
.otp-input:focus {
  border-color: #0a0a0a;
  box-shadow: 0 0 0 4px rgba(10, 10, 10, 0.18);
  background: #0a0a0a;
  color: #ffffff;
}
.otp-input::placeholder {
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
}
.otp-format-hint {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: var(--ink-muted);
}
.otp-resend-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.otp-resend-btn[aria-disabled="true"],
.otp-resend-btn:disabled {
  color: var(--ink-muted);
  text-decoration: none;
  cursor: default;
}
.otp-footer-sep {
  margin: 0 6px;
  color: var(--ink-faint);
}

/* ═══════════════════════════════════════════════════════
   REVEAL ANIMATIONS
═══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .hero-ambient {
    filter: none;
    transform: none;
    inset: 0;
  }
  .hero-demo { perspective: none; }
  .hero-demo .fbrowser { transform: none; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { max-width: 100%; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .footer-cta { grid-column: 1 / -1; max-width: 360px; }
}

@media (max-width: 900px) {
  .hero-stage { grid-template-columns: 1fr; }
  .hero-demo { height: auto; min-height: 0; perspective: none; }
  .hero-demo .fbrowser { transform: none; }
  .hero-title { font-size: clamp(36px, 8vw, 64px); }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; }
  .nav { padding: 0 20px; }
  .nav-links, .nav-actions { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-logo-img { height: 13px; }

  .hero-foreground { padding-left: 20px; padding-right: 20px; padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }

  .section { padding: 72px 20px; }
  .section-full { padding: 72px 20px; }
  .feat-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 24px; margin: 0 20px 72px; }
  .trust-bar { padding: 32px 20px; gap: 24px; }
  .section-divider { margin: 0 20px; }
  .footer { padding: 40px 20px 0; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-cta { grid-column: 1 / -1; }
  .footer-mark { font-size: clamp(64px, 22vw, 140px); }
}

@media (max-width: 480px) {
  .hero-title {
    letter-spacing: -1px;
  }
  .hero-actions { flex-direction: column; width: 100%; max-width: 320px; margin: 0; align-items: stretch; }
  .btn-hero-primary, .btn-hero-ghost { width: 100%; justify-content: center; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-cta { grid-column: auto; }
  .cta-band-actions { flex-direction: column; }
  .btn-cta-primary, .btn-cta-ghost { width: 100%; }
}

/* ═══════════════════════════════════════════════════════
   BROWSER MOCK — Dashboard en acción
═══════════════════════════════════════════════════════ */

.browser-mock-section { overflow: visible; }

/* Fake browser frame */
.fbrowser {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: visible;
  position: relative;
  isolation: isolate;
}
/* La barra y el content sí se recortan */
.fbrowser-bar,
.fbrowser-content {
  overflow: hidden;
}
.fbrowser-bar { border-radius: 14px 14px 0 0; }
.fbrowser-content { border-radius: 0 0 14px 14px; }

/* Chrome bar */
.fbrowser-bar {
  background: #111111;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.fbrowser-dots { display: flex; gap: 6px; align-items: center; }
.fb-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
}
.fb-dot-red    { background: #cfcfcf; }
.fb-dot-yellow { background: #5a5a5a; }
.fb-dot-green  { background: #1a1a1a; }

.fbrowser-url {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.60);
  font-family: 'Inter', sans-serif;
  min-width: 220px;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Browser content: sidebar + main */
.fbrowser-content {
  display: flex;
  background: #0a0a0a;
  min-height: 430px;
}

/* Asistente IA — mismo FAB de la plataforma, anclado al mock */
.tour-copilot-fab {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 45;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0b0d;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.58),
    0 3px 10px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.tour-copilot-fab.is-hidden {
  opacity: 0;
  transform: scale(0.86);
}
@media (prefers-reduced-motion: reduce) {
  .tour-copilot-fab {
    transition: none;
  }
}
.tour-copilot-fab-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mini sidebar */
.fdb-sidebar {
  width: 188px;
  flex-shrink: 0;
  background: #101010;
  border-right: 1px solid rgba(255,255,255,0.08);
  padding: 14px 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fdb-sb-logo {
  display: flex;
  align-items: center;
  padding: 4px 8px 12px;
  margin-bottom: 2px;
}
.fdb-sb-logo-img {
  display: block;
  height: 11px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
.fdb-sb-label {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  padding: 6px 10px 8px;
}
.fdb-sb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.42);
  cursor: default;
  line-height: 1.2;
}
.fdb-sb-item svg { flex-shrink: 0; }
.fdb-sb-active {
  background: #1a1a1a;
  color: rgba(255,255,255,0.95);
  font-weight: 500;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 6px 16px rgba(0,0,0,0.35);
}
.fdb-sb-tools {
  width: 100%;
}
.fdb-sb-tools span { flex: 1; min-width: 0; }
.fdb-sb-chevron {
  margin-left: auto;
  opacity: 0.5;
  transition: transform 0.25s ease;
}
.fdb-sb-tools-wrap.is-open .fdb-sb-chevron { transform: rotate(180deg); }
.fdb-sb-submenu {
  display: none;
  flex-direction: column;
  gap: 1px;
  padding: 2px 0 6px 10px;
}
.fdb-sb-tools-wrap.is-open .fdb-sb-submenu { display: flex; }
.fdb-sb-sub { font-size: 11px; padding: 6px 8px; gap: 8px; }
.fdb-sb-sub--wrap {
  align-items: flex-start;
  line-height: 1.25;
  white-space: normal;
}
.fdb-sidebar { overflow: auto; }

.fdb-tour {
  flex: 1;
  position: relative;
  min-height: 0;
  overflow: hidden;
}
.fdb-tour-panel {
  display: none;
  height: 100%;
  padding: 12px 14px;
  overflow: hidden;
  flex-direction: column;
  gap: 10px;
}
.fdb-tour-panel.is-active { display: flex; }
.fbrowser [hidden] { display: none !important; }

.tour-kicker { font-size: 10px; color: rgba(255,255,255,0.4); letter-spacing: 0.4px; }
.tour-back { font-size: 11px; color: rgba(255,255,255,0.45); margin-bottom: 4px; }
.tour-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tour-code {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
}
.tour-code.is-flash { background: rgba(255,255,255,0.12); }
.tour-ghost-btn, .tour-seg span {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.8);
}
.tour-ghost-btn.is-flash { background: rgba(255,255,255,0.12); }
.tour-seg { display: flex; gap: 6px; }
.tour-seg span.is-on { background: #fff; color: #0a0a0a; border-color: #fff; }

.tour-req-head { display: flex; align-items: center; gap: 14px; }
.tour-gauge { position: relative; width: 118px; height: 72px; flex-shrink: 0; }
.tour-gauge-svg { width: 100%; height: 100%; }
.tour-gauge-bg { stroke: rgba(255,255,255,0.1); }
.tour-gauge-fill {
  stroke: #fff;
  stroke-dasharray: 145;
  stroke-dashoffset: 40;
}
.tour-gauge-label {
  position: absolute; left: 0; right: 0; bottom: 2px;
  text-align: center; line-height: 1.1;
}
.tour-gauge-label strong { display: block; font-size: 16px; color: #fff; }
.tour-gauge-label span { font-size: 9px; color: rgba(255,255,255,0.4); }
.tour-req-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tour-req-chips span {
  font-size: 10px; color: rgba(255,255,255,0.6);
  background: #161616; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px; padding: 4px 8px;
}
.tour-nom-row { display: flex; gap: 8px; margin-top: 16px; }
.tour-nom-card {
  flex: 1;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px;
}
.tour-nom-card.is-hot, .tour-table tr.is-hot, .tour-pick-card.is-hot, .tour-cal-cell.is-hot {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.35);
}
.tour-nom-code { font-size: 10px; color: rgba(255,255,255,0.45); }
.tour-nom-name { font-size: 12px; color: #fff; margin: 4px 0 6px; }
.tour-nom-meta { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,0.5); }
.tour-req-action {
  background: #141414; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px;
}
.tour-req-action-title { font-size: 12px; color: #fff; font-weight: 600; }
.tour-req-action-sub { font-size: 11px; color: rgba(255,255,255,0.4); }
.tour-req-analyzing { font-size: 12px; color: rgba(255,255,255,0.7); }
.tour-req-ai { font-size: 11.5px; color: rgba(255,255,255,0.7); line-height: 1.45; }
.tour-verdict { font-size: 12px; font-weight: 600; color: #fff; margin-bottom: 4px; }

.tour-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.tour-table th { text-align: left; color: rgba(255,255,255,0.38); font-weight: 500; padding: 5px 6px; }
.tour-table td { padding: 7px 6px; color: rgba(255,255,255,0.82); border-top: 1px solid rgba(255,255,255,0.06); vertical-align: top; }
.tour-table small { color: rgba(255,255,255,0.35); }
.tour-pill {
  display: inline-block; font-size: 10px; padding: 2px 7px; border-radius: 999px;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.75);
}
.tour-pill.ok { background: rgba(52,199,89,0.18); color: #86e0a3; }
.tour-pill.warn { background: rgba(255,149,0,0.2); color: #ffc078; }

.tour-pick-card {
  flex: 1; background: #141414; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 16px 12px;
}
.tour-res-pick { display: flex; gap: 8px; }
.tour-pick-card b { display: block; color: #fff; font-size: 13px; margin-bottom: 4px; }
.tour-pick-card span { font-size: 10px; color: rgba(255,255,255,0.4); }
.tour-kpi-row { display: flex; gap: 8px; }
.tour-kpi { flex: 1; background: #141414; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 8px 10px; }
.tour-kpi small { display: block; font-size: 10px; color: rgba(255,255,255,0.4); }
.tour-kpi b { font-size: 18px; color: #fff; }
.tour-res-bita,
.tour-ctr-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tour-rca { background: #141414; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 12px; }
.tour-whys { margin: 10px 0 0 18px; font-size: 11.5px; color: rgba(255,255,255,0.75); line-height: 1.5; }

.tour-hall-split { display: flex; gap: 12px; align-items: center; }
.tour-form-card { flex: 1; background: #141414; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 14px; color: #fff; font-size: 12px; }
.tour-phone {
  width: 92px; height: 140px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.16);
  background: #111; display: flex; flex-direction: column; align-items: center; padding: 8px 6px; gap: 6px;
}
.tour-phone-notch { width: 28px; height: 4px; border-radius: 4px; background: #333; }
.tour-phone small { font-size: 8px; color: rgba(255,255,255,0.4); text-align: center; }
.tour-qr {
  width: 56px; height: 56px;
  background: #fff url("images/tour-qr.svg") center / contain no-repeat;
  border-radius: 3px;
  image-rendering: pixelated;
}
.tour-qr--lg { width: 88px; height: 88px; margin: 8px auto; }

.tour-chat { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.tour-chat-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.45); font-size: 13px; }
.tour-chat-msgs { flex: 1; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.tour-chat-user {
  align-self: flex-end; max-width: 78%; background: #2a2a2a; color: #fff;
  border-radius: 14px 14px 4px 14px; padding: 8px 10px; font-size: 11.5px; line-height: 1.4;
}
.tour-chat-ai { align-self: flex-start; max-width: 86%; color: rgba(255,255,255,0.78); font-size: 11.5px; line-height: 1.45; }
.tour-chat-think { display: inline-flex; gap: 4px; }
.tour-chat-think i {
  width: 5px; height: 5px; border-radius: 50%; background: #fff; opacity: 0.4;
  animation: fbDot 0.8s ease infinite alternate;
}
.tour-chat-think i:nth-child(2) { animation-delay: 0.15s; }
.tour-chat-think i:nth-child(3) { animation-delay: 0.3s; }
.tour-composer {
  display: flex; align-items: center; gap: 8px;
  background: #161616; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px; padding: 8px 10px;
}
.tour-composer-input { flex: 1; font-size: 11.5px; color: rgba(255,255,255,0.45); min-height: 18px; }
.tour-composer-input.is-typing { color: #fff; }
.tour-send {
  width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #111;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}

.tour-cal-legend { display: flex; gap: 10px; font-size: 10px; color: rgba(255,255,255,0.45); }
.tour-cal-legend .c-v::before, .tour-cal-legend .c-c::before, .tour-cal-legend .c-a::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px;
}
.tour-cal-legend .c-v::before { background: #d08a3a; }
.tour-cal-legend .c-c::before { background: #5aa86a; }
.tour-cal-legend .c-a::before { background: #6a8fbf; }
.tour-cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; font-size: 10px;
}
.tour-cal-grid > i { text-align: center; color: rgba(255,255,255,0.3); font-style: normal; }
.tour-cal-cell {
  min-height: 36px; background: #141414; border-radius: 6px; padding: 3px 4px;
  color: rgba(255,255,255,0.7);
}
.tour-cal-cell.muted { opacity: 0.3; }
.tour-cal-cell .ev { margin-top: 3px; font-size: 8px; border-radius: 3px; padding: 1px 3px; white-space: nowrap; overflow: hidden; }
.tour-cal-cell .ev.v { background: rgba(208,138,58,0.25); color: #e8c08a; }
.tour-cal-cell .ev.c { background: rgba(90,168,106,0.22); color: #a8d9b2; }
.tour-cal-cell .ev.a { background: rgba(106,143,191,0.25); color: #b7c9e4; }
.tour-cal-cell .ev.new { background: rgba(255,255,255,0.14); color: #fff; }

.fb-overlay {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.45); z-index: 140;
}
.fb-overlay.is-on { display: flex; }
.fb-overlay-card {
  background: #1a1a1a; border: 1px solid rgba(255,255,255,0.14); border-radius: 12px;
  padding: 16px; width: min(280px, 80%); text-align: center; color: rgba(255,255,255,0.7); font-size: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}
.fb-overlay-card--form { text-align: left; }
.fb-overlay-title { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.fb-overlay-card label { display: block; font-size: 10px; color: rgba(255,255,255,0.4); margin: 8px 0 4px; }
.tour-field {
  background: #111; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
  padding: 7px 9px; font-size: 12px; color: #fff;
}
.fb-overlay-card--form .fdb-upload-btn {
  margin-top: 14px;
}

/* Main area */
.fdb-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.fdb-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(8px);
}
.fdb-topbar-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
}
.fdb-upload-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #0a0a0a;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: opacity 0.15s;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

/* Stages container */
.fdb-stages {
  flex: 1;
  position: relative;
  padding: 20px;
}
.fdb-stage {
  display: none;
  width: 100%;
  height: 100%;
}
.fdb-stage.active { display: flex; flex-direction: column; gap: 16px; }

/* Stage 0: idle */
.fdb-cards-row {
  display: flex;
  gap: 12px;
}
.fdb-kpi {
  flex: 1;
  background: #141414;
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 10px 24px rgba(0,0,0,0.35);
}
.fdb-kpi-label {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.fdb-kpi-val {
  font-size: 22px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  letter-spacing: -0.5px;
}
.fdb-empty-hint {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #121212;
  border-radius: 12px;
  border: 1.5px dashed rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.35);
  font-size: 13px;
  min-height: 140px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Stage 1: upload */
.fdb-upload-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #121212;
  border-radius: 12px;
  border: 1.5px dashed rgba(255,255,255,0.28);
  padding: 32px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 16px 36px rgba(0,0,0,0.35);
}
.fdb-upload-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}
.fdb-upload-name {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
}
.fdb-upload-bar-wrap {
  width: 100%;
  max-width: 280px;
  height: 5px;
  background: rgba(255,255,255,0.10);
  border-radius: 9999px;
  overflow: hidden;
}
.fdb-upload-bar {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 9999px;
  transition: width 0.1s linear;
}
.fdb-upload-pct {
  font-size: 12px;
  color: rgba(255,255,255,0.80);
  font-weight: 600;
}

/* Stage 2: analyzing */
.fdb-analyzing {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  background: #121212;
  border-radius: 12px;
  padding: 28px 32px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 16px 36px rgba(0,0,0,0.35);
}
.fdb-analyzing-pulse {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
}
.fdb-analyzing-pulse::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.28);
  animation: fbPulse 1.4s ease-out infinite;
}
@keyframes fbPulse {
  0%   { transform: scale(0.85); opacity: 1; }
  100% { transform: scale(1.4);  opacity: 0; }
}
.fdb-analyzing-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  margin-bottom: 12px;
}
.fdb-astep {
  font-size: 12.5px;
  color: rgba(255,255,255,0.35);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}
.fdb-astep::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #3a3a3a;
  flex-shrink: 0;
  transition: background 0.3s;
}
.fdb-astep.done { color: rgba(255,255,255,0.82); font-weight: 500; }
.fdb-astep.done::before { background: rgba(255,255,255,0.75); }
.fdb-astep.active-step { color: #ffffff; }
.fdb-astep.active-step::before { background: #ffffff; animation: fbDot 0.8s ease infinite alternate; }
@keyframes fbDot { from { opacity: 0.4; } to { opacity: 1; } }

/* Stage 3: result */
.fdb-result {
  flex: 1;
  display: flex;
  gap: 20px;
  align-items: stretch;
}
.fdb-result-left {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #121212;
  border-radius: 12px;
  padding: 24px;
  flex-shrink: 0;
  width: 180px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 16px 36px rgba(0,0,0,0.35);
}
.fdb-donut-wrap {
  position: relative;
  width: 120px; height: 120px;
}
.fdb-donut { width: 100%; height: 100%; transform: rotate(-90deg); }
.fdb-donut-bg {
  fill: none;
  stroke: rgba(255,255,255,0.10);
  stroke-width: 12;
}
.fdb-donut-fill {
  fill: none;
  stroke: #ffffff;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 289;
  stroke-dashoffset: 289;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.18));
}
.fdb-donut-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.fdb-donut-pct {
  font-size: 22px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  line-height: 1;
  letter-spacing: -1px;
}
.fdb-donut-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
}

.fdb-result-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #121212;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 16px 36px rgba(0,0,0,0.35);
}
.fdb-kpi-row {
  display: flex;
  gap: 12px;
}
.fdb-kpi-sm {
  flex: 1;
  background: #1a1a1a;
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.fdb-kpi-sm-val {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: rgba(255,255,255,0.95);
}
.fdb-kpi-sm-label {
  font-size: 10.5px;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
}
.fdb-breaches {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fdb-breach-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.82);
  background: #1a1a1a;
  padding: 7px 10px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.06);
}
.fdb-breach-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.fdb-breach-crit .fdb-breach-dot { background: #ffffff; }
.fdb-breach-warn .fdb-breach-dot { background: rgba(255,255,255,0.55); }
.fdb-breach-ok   .fdb-breach-dot { background: rgba(255,255,255,0.28); }

.fdb-report-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.14);
  padding: 7px 14px;
  border-radius: 9999px;
  cursor: pointer;
  margin-top: auto;
}

/* ── Cursor fantasma ── */
.fb-cursor {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0;
  transform-origin: 2px 2px;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.35, 1),
              opacity 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.fb-cursor.visible { opacity: 1; }

/* ── Finder modal — centrado en el .fbrowser ── */
.fb-finder {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -46%) scale(0.92);
  width: 300px;
  background: #1a1a1a;
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 24px 64px rgba(0,0,0,0.72),
    0 8px 20px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.14);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.16,1,0.3,1);
}
.fb-finder.visible {
  opacity: 1;
  transform: translate(-50%, -46%) scale(1);
}
.fb-finder-bar {
  background: #222222;
  border-radius: 10px 10px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.fb-finder-body {
  display: flex;
  gap: 16px;
  padding: 20px 20px 16px;
  align-items: flex-start;
  justify-content: space-between;
}
.fb-finder-file {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  font-size: 10px;
  color: rgba(255,255,255,0.95);
  font-weight: 500;
  text-align: center;
  cursor: default;
  padding: 6px 4px;
  border-radius: 6px;
  transition: background 0.15s;
  max-width: 84px;
}
.fb-finder-file span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25;
}
.fb-finder-file.selected { background: rgba(255,255,255,0.10); }
.fb-finder-file-dim { opacity: 0.45; }

/* Dragging ghost — posición via left/top desde JS, centrado con margin negativo */
.fb-drag-ghost {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 160;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  /* centrar sobre el punto de arrastre */
  margin-left: -40px;
  margin-top: -22px;
  transition: opacity 0.18s ease;
}
.fb-drag-ghost.visible { opacity: 0.9; }

/* Responsive */
@media (max-width: 700px) {
  .fdb-sidebar { display: none; }
  .fdb-result { flex-direction: column; }
  .fdb-result-left { width: 100%; }
  .fb-finder { width: 240px; }
}

/* ═══════════════════════════════════════════════════════
   CAPACIDADES — Apple-style showcase
═══════════════════════════════════════════════════════ */

/* Lienzo en blanco: se reconstruye el contenido de esta sección */
.cap-section {
  overflow: hidden;
  max-width: none;
  width: 100%;
  min-height: 100svh;
  padding: 0;
  margin: 0;
  background: var(--canvas);
}

/* Header centrado, desacoplado del grid de slides */
.cap-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
}

/* ── Showcase container ── */
.cap-showcase {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* ── Cada slide ── */
.cap-slide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0 80px;
  padding: 0 8px;
}

/* Slide entrante: vive en posición absoluta mientras anima,
   luego JS lo convierte en .active (relativo) y oculta el saliente */
.cap-slide.cap-incoming {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Slide saliendo: queda en flujo normal pero con animación de salida */
.cap-slide.cap-exit-left,
.cap-slide.cap-exit-right {
  pointer-events: none;
}

/* ── Contenido de texto ── */
.cap-slide-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cap-num {
  display: block;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--ink-faint);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.cap-title {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 28px;
}

.cap-desc {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 42ch;
}

/* ── Visual: imagen 3D ── */
.cap-slide-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Wrapper: transforma + espacio derecho para la sombra lateral */
.cap-img-wrap {
  position: relative;
  padding-right: 32px;
  will-change: transform;
  transform: perspective(900px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.cap-slide-visual:hover .cap-img-wrap {
  transform: perspective(900px) rotateY(0deg) rotateX(0deg) scale(1.03);
}

/* La imagen lleva el border-radius directamente */
.cap-img-wrap picture {
  display: block;
  width: 100%;
  max-width: 380px;
}
.cap-img-wrap .cap-img {
  border-radius: 28px;
  display: block;
}

/*
  Sombra lateral derecha con gradiente vertical:
  - mitad inferior → más oscura (mayor opacidad)
  - mitad superior → más clara (menor opacidad)
  Se logra con un gradiente linear de arriba a abajo y blur lateral
*/
.cap-img-wrap::after {
  content: '';
  position: absolute;
  top: 6%;
  right: 0;
  width: 32px;
  height: 88%;
  border-radius: 0 18px 18px 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.06) 0%,
    rgba(0,0,0,0.10) 40%,
    rgba(0,0,0,0.22) 70%,
    rgba(0,0,0,0.30) 100%
  );
  filter: blur(14px);
  z-index: -1;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.cap-slide-visual:hover .cap-img-wrap::after {
  opacity: 0.7;
}

.cap-img {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  object-fit: contain;
}

/* ── Animaciones de transición ── */
@keyframes capEnterRight {
  from { opacity: 0; transform: translateX(48px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes capEnterLeft {
  from { opacity: 0; transform: translateX(-48px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes capExitLeft {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-48px); }
}
@keyframes capExitRight {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(48px); }
}

.cap-enter-right { animation: capEnterRight 0.48s cubic-bezier(0.16, 1, 0.3, 1) both; }
.cap-enter-left  { animation: capEnterLeft  0.48s cubic-bezier(0.16, 1, 0.3, 1) both; }
.cap-exit-left   { animation: capExitLeft   0.36s cubic-bezier(0.45, 0, 0.55, 1) both; }
.cap-exit-right  { animation: capExitRight  0.36s cubic-bezier(0.45, 0, 0.55, 1) both; }

/* ── Controles ── */
.cap-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 56px;
  padding: 0 8px;
}

/* Dots */
.cap-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cap-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--border-md);
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, width 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s ease;
  padding: 0;
}
.cap-dot.active {
  width: 24px;
  background: var(--ink);
}
.cap-dot:hover:not(.active) {
  background: var(--ink-faint);
  transform: scale(1.3);
}

/* Flechas */
.cap-arrows {
  display: flex;
  gap: 8px;
}
.cap-arrow {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: 1px solid var(--border-md);
  background: var(--canvas);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.cap-arrow:hover {
  background: var(--ink);
  color: var(--canvas);
  border-color: var(--ink);
  transform: scale(1.06);
}
.cap-arrow:active {
  transform: scale(0.97);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .cap-showcase { min-height: 560px; }
  .cap-slide {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 40px 0;
    text-align: center;
  }
  .cap-slide-copy { align-items: center; }
  .cap-desc { max-width: 52ch; }
  .cap-img-wrap {
    max-width: 260px;
    transform: perspective(900px) rotateY(0deg) rotateX(0deg);
  }
  .cap-img-wrap .cap-img { border-radius: 22px; }
}

@media (max-width: 600px) {
  .cap-showcase { min-height: 480px; }
  .cap-title { font-size: 36px; letter-spacing: -1.5px; }
  .cap-desc { font-size: 15px; }
  .cap-img-wrap { max-width: 200px; }
  .cap-img-wrap .cap-img { border-radius: 18px; }
}

/* ═══════════════════════════════════════════════════════
   CONTACTO / COTIZAR — réplica del bloque "Contact us"
   (layout 2 columnas: info + mapa mundial | tarjeta con
   grid decorativo y formulario) en la paleta blanca.
═══════════════════════════════════════════════════════ */
.quote-section {
  position: relative;
  background: var(--canvas);
  padding: 96px 40px 104px;
  overflow: hidden;
}
.quote-inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
}

/* ── Columna izquierda ── */
.quote-info {
  display: flex;
  flex-direction: column;
}
.quote-icon-badge {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: var(--canvas-off);
  color: var(--ink);
  margin-bottom: 0;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.05),
    0 1px 2px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.9);
}
/* línea brillante bajo el ícono */
.quote-icon-badge::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 60%;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(10,10,10,0.7), transparent);
  box-shadow: 0 1px 6px rgba(10,10,10,0.18);
}
.quote-icon-badge img { width: 22px; height: 22px; display: block; object-fit: contain; }

/* Botón "Hablar con un agente" (mismo cuadro, ahora con texto) */
.quote-wa-btn {
  align-self: flex-start;
  width: auto;
  height: 52px;
  gap: 10px;
  padding: 0 20px 0 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.quote-wa-btn:hover {
  background: var(--canvas-dim);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.09),
    0 4px 12px rgba(15,23,42,0.08),
    inset 0 1px 0 rgba(255,255,255,0.9);
}
.quote-wa-btn:active { transform: scale(0.98); }
.quote-wa-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.quote-wa-label { white-space: nowrap; }

.quote-title {
  font-size: clamp(34px, 4.2vw, 48px);
  font-weight: 700;
  letter-spacing: -1.4px;
  line-height: 1.1;
  color: var(--ink);
  /* sube la altura de mayúsculas al borde superior de la tarjeta */
  margin-top: -0.12em;
  margin-bottom: 28px;
}
.quote-sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 440px;
  margin-bottom: 36px;
}
.quote-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 80px;
}
a.quote-contact-item { transition: color 0.2s ease; }
a.quote-contact-item:hover { color: var(--ink); }
.quote-contact-dot { color: var(--ink-faint); }

/* ── Mapa mundial con marcador "Estamos aquí" (Monterrey) ── */
.quote-map {
  position: relative;
  margin-top: 88px;   /* deja aire para la etiqueta "Estamos aquí" */
  width: 100%;
  max-width: 470px;
}
.quote-map-img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to right, #000 55%, transparent 100%),
                      linear-gradient(to bottom, #000 60%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, #000 55%, transparent 100%),
              linear-gradient(to bottom, #000 60%, transparent 100%);
  mask-composite: intersect;
  pointer-events: none;
  user-select: none;
}
.quote-map-marker {
  position: absolute;
  width: 0;
  height: 0;
}
.quote-map-label {
  position: absolute;
  left: 0;
  bottom: 64px;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--canvas);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.08),
    0 4px 12px rgba(15,23,42,0.08);
}
.quote-map-line {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 64px;
  transform: translateX(-50%);
  background: linear-gradient(to top, var(--ink), rgba(10,10,10,0.15));
}
.quote-map-line::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
  transform: translateX(-50%);
}
.quote-map-glow {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(10,10,10,0.28), rgba(10,10,10,0.08) 55%, transparent 72%);
  animation: quote-map-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes quote-map-pulse {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.85); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.15); }
}

/* ── Columna derecha: tarjeta ── */
.quote-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--canvas-off);
  padding: 40px 36px 44px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04);
}
/* grid decorativo arriba-derecha */
.quote-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 70%;
  background-image:
    linear-gradient(to right, rgba(10,10,10,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,10,10,0.06) 1px, transparent 1px);
  background-size: 16px 16px;
  background-position: top right;
  -webkit-mask-image: radial-gradient(ellipse at top right, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at top right, #000 10%, transparent 70%);
  pointer-events: none;
}
.quote-card-grid {
  position: absolute;
  top: 0;
  right: 0;
  width: 240px;
  height: 160px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at top right, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at top right, #000 20%, transparent 75%);
}
.quote-card-grid span {
  position: absolute;
  width: 16px;
  height: 16px;
  background: rgba(10,10,10,0.05);
}

.quote-form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.quote-form .form-group { position: relative; }

.quote-label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
}
.quote-input {
  width: 100%;
  height: 40px;
  padding: 0 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--canvas);
  outline: none;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.04),
    0 1px 1px rgba(0,0,0,0.05),
    0 2px 4px rgba(0,0,0,0.03);
  transition: box-shadow 0.2s ease;
}
.quote-input::placeholder { color: var(--ink-faint); }
.quote-input:focus {
  box-shadow:
    0 0 0 1px rgba(10,10,10,0.35),
    0 0 0 4px rgba(10,10,10,0.06);
}
.quote-textarea {
  height: auto;
  min-height: 112px;
  padding: 12px 16px;
  resize: vertical;
  line-height: 1.5;
}

.quote-submit {
  align-self: flex-start;
  margin-top: 6px;
  padding: 9px 16px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--canvas);
  font-size: 14px;
  font-weight: 600;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.12);
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.quote-submit:hover { opacity: 0.88; }
.quote-submit:active { transform: scale(0.98); }

/* ── Fecha y hora: resumen desplegable + calendario + horarios ── */
.quote-when {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 40px;
  padding: 0 12px 0 14px;
  border-radius: 6px;
  background: var(--canvas);
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  color: var(--ink-faint);
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.04),
    0 1px 1px rgba(0,0,0,0.05),
    0 2px 4px rgba(0,0,0,0.03);
  transition:
    box-shadow 0.3s var(--ease-out),
    color 0.3s ease,
    transform 0.18s var(--ease-out);
}
.quote-when:hover {
  box-shadow:
    0 0 0 1px rgba(10,10,10,0.2),
    0 1px 1px rgba(0,0,0,0.05),
    0 3px 8px rgba(0,0,0,0.05);
}
.quote-when:active { transform: scale(0.995); }
.quote-when.has-value { color: var(--ink); font-weight: 500; }
.quote-when[aria-expanded="true"] {
  color: var(--ink);
  box-shadow:
    0 0 0 1px rgba(10,10,10,0.35),
    0 0 0 4px rgba(10,10,10,0.06);
}

.quote-when-icon,
.quote-when-caret {
  flex: 0 0 auto;
  color: var(--ink-faint);
  transition: color 0.3s ease, transform 0.5s var(--ease-out);
}
.quote-when-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.quote-when.has-value .quote-when-icon,
.quote-when[aria-expanded="true"] .quote-when-icon,
.quote-when[aria-expanded="true"] .quote-when-caret { color: var(--ink); }
.quote-when[aria-expanded="true"] .quote-when-caret { transform: rotate(180deg); }
.quote-when[aria-expanded="true"] .quote-when-icon { transform: scale(1.08); }

/* Barrido de luz + pulso al confirmar día y hora */
.quote-when::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-130%);
  background: linear-gradient(100deg,
    transparent 18%,
    rgba(10,10,10,0.09) 45%,
    rgba(10,10,10,0.02) 62%,
    transparent 80%);
}
.quote-when.is-confirmed::after { animation: bkSheen 0.95s var(--ease-out); }
.quote-when.is-confirmed { animation: bkConfirm 0.75s var(--ease-out); }
.quote-when.is-shake { animation: bkShake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
.quote-when-text.is-swap { animation: bkTextIn 0.44s var(--ease-out); }

@keyframes bkSheen {
  from { opacity: 1; transform: translateX(-130%); }
  to   { opacity: 1; transform: translateX(130%); }
}
@keyframes bkConfirm {
  0%   { box-shadow: 0 0 0 1px rgba(10,10,10,0.35), 0 0 0 0 rgba(10,10,10,0.2); }
  100% { box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 0 0 16px rgba(10,10,10,0); }
}
@keyframes bkShake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}
@keyframes bkTextIn {
  from { opacity: 0; transform: translateY(7px); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* Panel plegable (0fr → 1fr: alto real, sin medir en JS) */
.booking-wrap {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    grid-template-rows 0.62s var(--ease-out),
    margin-top 0.62s var(--ease-out),
    transform 0.55s var(--ease-out),
    opacity 0.34s ease,
    visibility 0s linear 0.62s;
}
.booking-wrap-inner { overflow: hidden; min-height: 0; }
.booking-wrap.is-open {
  grid-template-rows: 1fr;
  margin-top: 12px;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    grid-template-rows 0.62s var(--ease-out),
    margin-top 0.62s var(--ease-out),
    transform 0.55s var(--ease-out),
    opacity 0.42s ease 0.06s,
    visibility 0s;
}

.booking {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 12px;
  transition: opacity 0.2s ease;
}
.booking.is-loading { opacity: 0.6; pointer-events: none; }
.booking.is-entering .bk-cal   { animation: bkPanelIn 0.6s var(--ease-out) 0.04s both; }
.booking.is-entering .bk-times { animation: bkPanelInRight 0.6s var(--ease-out) 0.13s both; }

@keyframes bkPanelIn {
  from { opacity: 0; transform: translateY(14px) scale(0.965); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes bkPanelInRight {
  from { opacity: 0; transform: translate(16px, 10px) scale(0.965); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

.bk-cal,
.bk-times {
  background: var(--canvas);
  border-radius: 14px;
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.04),
    0 1px 1px rgba(0,0,0,0.05),
    0 2px 4px rgba(0,0,0,0.03);
  min-width: 0;
}

/* Calendario (mismo lenguaje que .ehs-datepicker de la plataforma) */
.bk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
}
.bk-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.bk-title.is-swap { animation: bkTextIn 0.4s var(--ease-out); }
.bk-nav {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--canvas-off);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s ease, transform 0.14s var(--ease-out);
}
.bk-nav:hover { background: var(--canvas-dim); }
.bk-nav:active { transform: scale(0.96); }
.bk-nav:disabled { opacity: 0.28; pointer-events: none; }

.bk-week,
.bk-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.bk-week { margin-bottom: 4px; }
.bk-week span {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  padding: 2px 0 6px;
}
.bk-grid { gap: 2px; }
.bk-empty-cell { min-height: 32px; }
.bk-day {
  width: 100%;
  max-width: 32px;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 560;
  transition: background 0.14s ease, color 0.14s ease, transform 0.14s var(--ease-out);
}
.bk-day:hover:not(:disabled) { background: var(--canvas-dim); transform: scale(1.08); }
.bk-day:active:not(:disabled) { transform: scale(0.94); }
.bk-day.is-today { box-shadow: inset 0 0 0 1px rgba(10,10,10,0.35); }
.bk-day.is-selected,
.bk-day.is-selected:hover {
  background: var(--ink);
  color: var(--canvas);
  font-weight: 700;
  box-shadow: none;
}
.bk-day.is-disabled,
.bk-day:disabled {
  opacity: 0.25;
  cursor: default;
}
/* Cascada al abrir el panel y al cambiar de mes */
.bk-grid.is-entering .bk-day { animation: bkDayIn 0.44s var(--ease-out) calc(var(--i, 0) * 11ms) both; }
.bk-grid.is-next .bk-day     { animation: bkDayNext 0.42s var(--ease-out) calc(var(--i, 0) * 5ms) both; }
.bk-grid.is-prev .bk-day     { animation: bkDayPrev 0.42s var(--ease-out) calc(var(--i, 0) * 5ms) both; }
.bk-day.is-pop { animation: bkDayPop 0.55s var(--ease-out); }

@keyframes bkDayIn {
  from { opacity: 0; transform: translateY(9px) scale(0.76); filter: blur(3px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes bkDayNext {
  from { opacity: 0; transform: translateX(22px) scale(0.9); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes bkDayPrev {
  from { opacity: 0; transform: translateX(-22px) scale(0.9); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes bkDayPop {
  0%   { transform: scale(0.84); box-shadow: 0 0 0 0 rgba(10,10,10,0.3); }
  55%  { transform: scale(1.12); }
  100% { transform: scale(1); box-shadow: 0 0 0 12px rgba(10,10,10,0); }
}

/* Horarios: carrusel tipo rueda */
.bk-times {
  display: flex;
  flex-direction: column;
  padding: 12px 8px 12px 12px;
}
.bk-times-head {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 30px;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bk-times-head.is-swap { animation: bkTextIn 0.44s var(--ease-out); }
.bk-slots {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  max-height: 234px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.15) transparent;
}
.bk-slots::-webkit-scrollbar { width: 4px; }
.bk-slots::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 4px; }
.bk-slots.is-wheel {
  perspective: 700px;
  perspective-origin: 50% 50%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}
/* Topes para que cualquier hora pueda quedar al centro de la rueda */
.bk-slots.is-wheel::before,
.bk-slots.is-wheel::after { content: ""; flex: 0 0 auto; height: 48px; }

.bk-slot-row { flex: 0 0 auto; }
.bk-slots.is-wheel .bk-slot-row {
  transform:
    rotateX(calc(var(--wd, 0) * -23deg))
    translateZ(calc(var(--wa, 0) * -26px))
    scale(calc(1 - var(--wa, 0) * 0.06));
  opacity: calc(1 - var(--wa, 0) * 0.52);
}
.bk-slots.is-entering .bk-slot-in { animation: bkSlotIn 0.5s var(--ease-out) calc(var(--i, 0) * 32ms) both; }

@keyframes bkSlotIn {
  from { opacity: 0; transform: translateY(18px) scale(0.94); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

.bk-slot {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--border-md);
  color: var(--ink);
  font-size: 13px;
  font-weight: 560;
  text-align: left;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s var(--ease-out);
}
.bk-slot:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--ink); transform: translateX(2px); }
.bk-slot.is-selected,
.bk-slot.is-selected:hover {
  background: var(--ink);
  color: var(--canvas);
  box-shadow: none;
  font-weight: 700;
  transform: none;
}
.bk-slot:disabled { cursor: not-allowed; }
.bk-slot.is-past { opacity: 0.3; }
.bk-slot.is-taken {
  background: var(--canvas-off);
  box-shadow: none;
  color: var(--ink-faint);
}
.bk-slot.is-taken .bk-slot-time { text-decoration: line-through; }
.bk-slot.is-pop { animation: bkSlotPop 0.55s var(--ease-out); }
.bk-slot-row.is-landed .bk-slot:not(.is-selected) { animation: bkLand 0.9s var(--ease-out); }

@keyframes bkSlotPop {
  0%   { transform: scale(0.93); }
  45%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}
@keyframes bkLand {
  0%   { box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 0 rgba(10,10,10,0.22); transform: scale(1.03); }
  100% { box-shadow: inset 0 0 0 1px var(--border-md), 0 0 0 14px rgba(10,10,10,0); transform: scale(1); }
}

.bk-slot-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.bk-slot-check {
  flex: 0 0 auto;
  opacity: 0;
  transform: scale(0.4) rotate(-12deg);
  transition: opacity 0.2s ease, transform 0.36s var(--ease-out);
}
.bk-slot-check path {
  stroke-dasharray: 17;
  stroke-dashoffset: 17;
}
.bk-slot.is-selected .bk-slot-check { opacity: 1; transform: none; }
.bk-slot.is-selected .bk-slot-check path { animation: bkDraw 0.42s var(--ease-out) 0.08s both; }
@keyframes bkDraw { to { stroke-dashoffset: 0; } }

.bk-empty {
  margin: auto 0;
  padding: 16px 4px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-faint);
  animation: bkTextIn 0.5s var(--ease-out) both;
}

@media (prefers-reduced-motion: reduce) {
  .booking-wrap,
  .booking-wrap * {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .quote-when::after { display: none; }
  .bk-slots.is-wheel .bk-slot-row { transform: none; opacity: 1; }
}

.quote-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.quote-status {
  margin: -8px 0 0;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  white-space: pre-line;
}
.quote-status.is-ok { background: var(--canvas); color: var(--ink); box-shadow: inset 0 0 0 1px var(--border-md); }
.quote-status.is-error { background: #fdecec; color: #a4161a; }
.quote-submit:disabled { opacity: 0.6; cursor: progress; }

@media (max-width: 520px) {
  .booking { grid-template-columns: 1fr; }
  .bk-slots,
  .bk-slots.is-wheel {
    flex: none;
    max-height: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-right: 0;
    perspective: none;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .bk-slots.is-wheel::before,
  .bk-slots.is-wheel::after { display: none; }
  .bk-slots.is-wheel .bk-slot-row { transform: none; opacity: 1; }
  .bk-times { padding: 12px; }
  .bk-empty { grid-column: 1 / -1; margin: 0; }
}

@media (max-width: 900px) {
  .quote-inner { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  .quote-section { padding: 72px 16px 80px; }
  .quote-card { padding: 28px 20px 32px; border-radius: 22px; }
}
@media (max-width: 480px) {
  .quote-submit { width: 100%; text-align: center; }
}
