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

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;1,14..32,400&display=swap');

/* ─── 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): ambiente + monitor (PNG) */
  --hero-ambient: url('images/hero-ambiente.png');
}

/* ─── 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: 1px solid var(--od-border);
  transition:
    background 0.45s var(--ease-out),
    border-color 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}

.nav.light {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  z-index: 2;
}
.nav-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-logo-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--od-text);
  transition: color 0.45s var(--ease-out);
}
.nav-logo-sub {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--od-soft);
  transition: color 0.45s var(--ease-out);
}
.nav.light .nav-logo-name { color: var(--ink); }
.nav.light .nav-logo-sub  { color: var(--ink-muted); }

.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-actions {
  margin-left: auto;
  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: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  color: var(--od-text);
  margin-left: auto;
  transition: color 0.45s var(--ease-out);
}
.nav.light .nav-mobile-toggle { color: var(--ink); }

/* Mobile drawer */
.nav-mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 850;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-mobile-backdrop.open { opacity: 1; }
.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%);
  transition: transform 0.4s var(--ease-out);
}
.nav-mobile-drawer.open { transform: translateX(0); }
.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: #060606;
}

/* Capa de ambiente (ligero blur para separar del monitor nítido) */
.hero-ambient {
  position: absolute;
  inset: -12px;
  z-index: 0;
  background-color: #060606;
  background-image: var(--hero-ambient);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  filter: blur(4px);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.35) 45%,
    rgba(0,0,0,0.72) 100%
  );
  z-index: 1;
  pointer-events: none;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0;
  max-width: 860px;
  width: 100%;
  flex-shrink: 0;
}

/* Title */
.hero-title {
  font-size: clamp(38px, 6.5vw, 72px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -2px;
  color: var(--od-text);
  position: relative;
  margin-top: -56px;
  margin-bottom: 8px;
  transform: translateY(-clamp(28px, 5.5vh, 72px));
}

/* Primera línea: gris metálico base durante streaming y en reposo */
.hero-title-shine {
  background: none;
  color: #888888;
  -webkit-text-fill-color: #888888;
}

/* Cada letra individual — mismo gris base, sin transición para evitar flash */
.shine-char {
  display: inline-block;
  white-space: pre;
  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;
}

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

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

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

/* CTA row */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  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);
}

/* ═══════════════════════════════════════════════════════
   DEMO SECTION
═══════════════════════════════════════════════════════ */
.demo-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.demo-steps {
  display: flex;
  flex-direction: column;
}
.demo-step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.demo-step:first-child { padding-top: 0; }
.demo-step:last-child  { border-bottom: none; }
.demo-step-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.demo-step.active .demo-step-num {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--canvas);
}
.demo-step-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.3;
}
.demo-step-desc {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.6;
}

.demo-visual {
  background: var(--ink);
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
}
.demo-visual-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.demo-visual-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.demo-visual-title {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  margin-left: 8px;
}
.demo-visual-body {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

/* Chat bubbles */
.chat-row { display: flex; gap: 8px; align-items: flex-end; }
.chat-row.user { flex-direction: row-reverse; }
.chat-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700;
  color: rgba(255,255,255,0.5);
}
.chat-bubble {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 13px;
  font-size: 12px;
  line-height: 1.55;
}
.chat-row.ai .chat-bubble {
  background: rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.82);
  border-bottom-left-radius: 3px;
}
.chat-row.user .chat-bubble {
  background: rgba(255,255,255,0.93);
  color: #111;
  border-bottom-right-radius: 3px;
}
.chat-typing {
  display: flex; align-items: center; gap: 4px;
  padding: 9px 13px;
  background: rgba(255,255,255,0.09);
  border-radius: 13px;
  border-bottom-left-radius: 3px;
  width: fit-content;
}
.chat-typing span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  animation: typing 1.4s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%            { transform: translateY(-4px); opacity: 1; }
}

/* Score card */
.demo-score-card {
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.demo-score-num { font-size: 30px; font-weight: 700; letter-spacing: -1px; color: #4ade80; }
.demo-score-label { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.82); }
.demo-score-sub   { font-size: 11px; color: rgba(255,255,255,0.38); margin-top: 2px; }

/* NOM list */
.demo-nom-list { display: flex; flex-direction: column; gap: 7px; }
.demo-nom-item {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.05);
  border-radius: 7px;
  padding: 9px 13px;
}
.demo-nom-check {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #4ade80;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.demo-nom-check svg { width: 9px; height: 9px; }
.demo-nom-text { font-size: 11.5px; font-weight: 500; color: rgba(255,255,255,0.72); }

/* ═══════════════════════════════════════════════════════
   PRICING
═══════════════════════════════════════════════════════ */
.pricing-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.plan-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  background: var(--canvas);
  position: relative;
  transition: box-shadow 0.25s ease, transform 0.25s var(--ease-out);
}
.plan-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}
.plan-card.featured {
  background: var(--ink);
  border-color: var(--ink);
  transform: scale(1.02);
}
.plan-card.featured:hover {
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.22);
}

.plan-popular {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: var(--r-pill);
  background: var(--canvas);
  border: 1px solid var(--border-md);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--ink);
  white-space: nowrap;
}

.plan-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.plan-card.featured .plan-name { color: rgba(255,255,255,0.4); }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 6px;
}
.plan-curr { font-size: 18px; font-weight: 600; color: var(--ink); }
.plan-amt  { font-size: 42px; font-weight: 700; letter-spacing: -2px; color: var(--ink); line-height: 1; }
.plan-per  { font-size: 13px; color: var(--ink-muted); font-weight: 400; margin-left: 2px; }
.plan-card.featured .plan-curr,
.plan-card.featured .plan-amt  { color: var(--canvas); }
.plan-card.featured .plan-per  { color: rgba(255,255,255,0.4); }

.plan-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.plan-card.featured .plan-desc {
  color: rgba(255,255,255,0.42);
  border-bottom-color: rgba(255,255,255,0.08);
}

.plan-feats {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 28px;
}
.plan-feats li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.plan-card.featured .plan-feats li { color: rgba(255,255,255,0.72); }
.feat-ico {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 1px;
}
.plan-card.featured .feat-ico { color: rgba(255,255,255,0.88); }

.plan-btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.2px;
  border: 1px solid var(--border-md);
  color: var(--ink);
  transition: background 0.2s ease, opacity 0.2s ease;
}
.plan-btn:hover { background: var(--canvas-off); }
.plan-card.featured .plan-btn {
  background: var(--canvas);
  color: var(--ink);
  border-color: transparent;
}
.plan-card.featured .plan-btn:hover { opacity: 0.88; }

/* ═══════════════════════════════════════════════════════
   CTA BAND
═══════════════════════════════════════════════════════ */
.cta-band {
  background: var(--ink);
  border-radius: var(--r-xl);
  padding: 72px 64px;
  text-align: center;
  margin: 0 40px 96px;
}
.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 {
  background: var(--ink);
  color: rgba(255,255,255,0.4);
  padding: 64px 40px 32px;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 80px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-logo img {
  width: 26px; height: 26px;
  border-radius: 6px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}
.footer-logo span {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  letter-spacing: -0.3px;
}
.footer-tagline {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,0.35);
  max-width: 240px;
  margin-bottom: 20px;
}
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-badge {
  padding: 5px 11px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.38);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.32);
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: rgba(255,255,255,0.72); }
.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ═══════════════════════════════════════════════════════
   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; }
.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;
}
.form-submit:hover { opacity: 0.82; }

.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;
}

/* ═══════════════════════════════════════════════════════
   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;
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-wrap { grid-template-columns: 1fr; gap: 48px; }
  .demo-visual { aspect-ratio: 4/3; }
  .pricing-wrap { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .plan-card.featured { transform: none; }
  .plan-card.featured:hover { transform: translateY(-2px); }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

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

  .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: 48px 20px 24px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero-title {
    letter-spacing: -1px;
    margin-top: -36px;
    transform: translateY(-clamp(20px, 3.5vh, 48px));
  }
  .hero-actions { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto; }
  .btn-hero-primary, .btn-hero-ghost { width: 100%; justify-content: center; }
  .footer-links { grid-template-columns: 1fr; }
  .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:hidden quitado — los overlays (finder, cursor, ghost) necesitan salir del content */
  overflow: visible;
  position: relative;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.04),
    0 8px 24px rgba(0,0,0,0.08),
    0 32px 64px rgba(0,0,0,0.10);
  border: 1px solid rgba(0,0,0,0.08);
  /* clip-path mantiene el recorte redondeado en el frame visual */
  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: #1c1c1e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fbrowser-dots { display: flex; gap: 6px; align-items: center; }
.fb-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.fb-dot-red    { background: #ff5f57; }
.fb-dot-yellow { background: #febc2e; }
.fb-dot-green  { background: #28c840; }

.fbrowser-url {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #2c2c2e;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  color: #ebebf5;
  font-family: 'Inter', sans-serif;
  min-width: 220px;
  justify-content: center;
}

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

/* Mini sidebar */
.fdb-sidebar {
  width: 168px;
  flex-shrink: 0;
  background: #1a1a1c;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fdb-sb-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #f5f5f7;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 8px;
}
.fdb-sb-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  color: #636366;
  cursor: default;
  transition: background 0.15s;
}
.fdb-sb-active {
  background: #2c2c2e;
  color: #f5f5f7;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* 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.06);
  background: rgba(17,17,19,0.9);
  backdrop-filter: blur(8px);
}
.fdb-topbar-title {
  font-size: 14px;
  font-weight: 600;
  color: #f5f5f7;
}
.fdb-upload-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #0066FF;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s;
}

/* 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: #1c1c1e;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.fdb-kpi-label {
  font-size: 11px;
  color: #636366;
  margin-bottom: 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.fdb-kpi-val {
  font-size: 22px;
  font-weight: 700;
  color: #f5f5f7;
  letter-spacing: -0.5px;
}
.fdb-empty-hint {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #1c1c1e;
  border-radius: 12px;
  border: 1.5px dashed rgba(255,255,255,0.1);
  color: #636366;
  font-size: 13px;
  min-height: 140px;
}

/* Stage 1: upload */
.fdb-upload-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #1c1c1e;
  border-radius: 12px;
  border: 1.5px dashed #0066FF;
  padding: 32px;
}
.fdb-upload-icon {
  width: 52px; height: 52px;
  background: rgba(0,102,255,0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fdb-upload-name {
  font-size: 13px;
  font-weight: 500;
  color: #f5f5f7;
}
.fdb-upload-bar-wrap {
  width: 100%;
  max-width: 280px;
  height: 5px;
  background: rgba(0,102,255,0.12);
  border-radius: 9999px;
  overflow: hidden;
}
.fdb-upload-bar {
  height: 100%;
  width: 0%;
  background: #0066FF;
  border-radius: 9999px;
  transition: width 0.1s linear;
}
.fdb-upload-pct {
  font-size: 12px;
  color: #0066FF;
  font-weight: 600;
}

/* Stage 2: analyzing */
.fdb-analyzing {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  background: #1c1c1e;
  border-radius: 12px;
  padding: 28px 32px;
}
.fdb-analyzing-pulse {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(0,102,255,0.12);
  flex-shrink: 0;
  position: relative;
}
.fdb-analyzing-pulse::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(0,102,255,0.3);
  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: #f5f5f7;
  margin-bottom: 12px;
}
.fdb-astep {
  font-size: 12.5px;
  color: #636366;
  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: #3a3a3c;
  flex-shrink: 0;
  transition: background 0.3s;
}
.fdb-astep.done { color: #f5f5f7; font-weight: 500; }
.fdb-astep.done::before { background: #34c759; }
.fdb-astep.active-step { color: #0066FF; }
.fdb-astep.active-step::before { background: #0066FF; 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: #1c1c1e;
  border-radius: 12px;
  padding: 24px;
  flex-shrink: 0;
  width: 180px;
}
.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(0,102,255,0.1);
  stroke-width: 12;
}
.fdb-donut-fill {
  fill: none;
  stroke: #0066FF;
  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);
}
.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: #f5f5f7;
  line-height: 1;
  letter-spacing: -1px;
}
.fdb-donut-sub {
  font-size: 10px;
  color: #636366;
  margin-top: 2px;
}

.fdb-result-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #1c1c1e;
  border-radius: 12px;
  padding: 20px;
}
.fdb-kpi-row {
  display: flex;
  gap: 12px;
}
.fdb-kpi-sm {
  flex: 1;
  background: #2c2c2e;
  border-radius: 8px;
  padding: 10px 12px;
}
.fdb-kpi-sm-val {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.fdb-kpi-sm-label {
  font-size: 10.5px;
  color: #636366;
  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: #ebebf5;
  background: #2c2c2e;
  padding: 7px 10px;
  border-radius: 7px;
}
.fdb-breach-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.fdb-breach-crit .fdb-breach-dot { background: #ff3b30; }
.fdb-breach-warn .fdb-breach-dot { background: #ff9500; }
.fdb-breach-ok   .fdb-breach-dot { background: #34c759; }

.fdb-report-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 500;
  color: #0066FF;
  background: rgba(0,102,255,0.08);
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: auto;
}

/* ── Cursor fantasma ── */
.fb-cursor {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0;
  /* translate via JS con transform */
  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;
  /* se centra en el frame del browser, no solo del content */
  top: 50%; left: 50%;
  transform: translate(-50%, -46%) scale(0.92);
  width: 300px;
  background: #2c2c2e;
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 4px 14px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
  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: #3a3a3c;
  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.06);
}
.fb-finder-body {
  display: flex;
  gap: 16px;
  padding: 20px 20px 16px;
  align-items: flex-end;
}
.fb-finder-file {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #f5f5f7;
  font-weight: 500;
  text-align: center;
  cursor: default;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.15s;
  max-width: 72px;
}
.fb-finder-file.selected { background: rgba(0,102,255,0.12); }
.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
═══════════════════════════════════════════════════════ */

/* Section override: no padding extra en top, ya viene del .section */
.cap-section { overflow: hidden; }

/* 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 .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; }
}
