/* Orvian Access — Landing page (Handle x ElevenLabs vibe) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Brand — acento de CONDOMINIO (azul, default) */
  --orv-blue: #0242f8;
  --orv-blue-2: #4d7dff;
  --orv-grad-2: #7b5cff;   /* fin del gradiente de acento */
  --orv-grad-mid: #5a3df0; /* punto medio (banda CTA) */

  /* Dark theme defaults */
  --bg: #07070a;
  --bg-2: #0c0c12;
  --surface: #101018;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --ink: #f6f7fb;
  --ink-2: #b8bbc7;
  --muted: #6e7180;
  --pill-bg: rgba(255,255,255,0.05);
}

/* ===== Acento de CORPORATIVO — mismo esqueleto, tono distinto =====
   El motor de segmentos marca html[data-segment]. Aquí sobreescribimos
   SOLO el sistema de acento; el resto del diseño es idéntico. El Tweak
   "Acento corporativo" puede cambiar estos valores vía --corp-*. */
html[data-segment="corporativo"] {
  --orv-blue:     var(--corp-1,    #0e8c84);
  --orv-blue-2:   var(--corp-2,    #45b8af);
  --orv-grad-2:   var(--corp-grad, #16b8c4);
  --orv-grad-mid: var(--corp-mid,  #119aa6);
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f6f7fb;
  --surface: #ffffff;
  --line: rgba(11,16,32,0.08);
  --line-2: rgba(11,16,32,0.14);
  --ink: #0b1020;
  --ink-2: #4a4f60;
  --muted: #8a8f9c;
  --pill-bg: rgba(11,16,32,0.04);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--ink);
  font-family: 'Poppins', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, border-color 0.3s;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo { display: flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -0.01em; font-size: 18px; }
.nav-logo .logo-img { height: 21px; width: auto; display: block; }
[data-theme="dark"] .nav-logo .logo-img { filter: invert(1); }
.nav-logo .logo-access {
  font-weight: 500; font-size: 18px; letter-spacing: -0.01em;
  color: var(--orv-blue); line-height: 1;
  padding-left: 9px; margin-left: 1px;
  border-left: 1px solid var(--line);
}
.nav-links { display: flex; align-items: center; gap: 36px; font-size: 15px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 768px) { .nav-links { display: none; } }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--bg);
  padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: transform 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); }

/* Hero */
.hero {
  position: relative; padding: 150px 0 90px;
  overflow: hidden;
}
.aurora {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}
.aurora::before, .aurora::after {
  content: ""; position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
}
.aurora::before {
  width: 720px; height: 720px;
  background: radial-gradient(circle, var(--orv-blue) 0%, transparent 70%);
  top: -200px; left: 30%;
  animation: drift1 18s ease-in-out infinite;
}
.aurora::after {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--orv-grad-2) 0%, transparent 70%);
  top: 100px; right: 10%;
  animation: drift2 22s ease-in-out infinite;
}
[data-theme="light"] .aurora::before { opacity: 0.20; }
[data-theme="light"] .aurora::after { opacity: 0.18; }

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, 60px) scale(1.1); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -40px) scale(0.95); }
}

/* Grid backdrop */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 70%);
}

.hero-inner { position: relative; z-index: 1; text-align: center; }

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  background: var(--pill-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}
.eyebrow-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #2dd4bf; box-shadow: 0 0 10px #2dd4bf;
}

.hero h1 {
  font-size: clamp(48px, 7.2vw, 104px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 28px 0 0;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--orv-blue) 0%, var(--orv-grad-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  margin: 28px auto 0; max-width: 680px;
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.5; color: var(--ink-2);
  text-wrap: pretty;
}

.cta-row {
  display: inline-flex; gap: 14px; margin-top: 40px;
  flex-wrap: wrap; justify-content: center;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg);
  padding: 16px 28px; border-radius: 999px;
  font-size: 16px; font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -10px var(--ink); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--ink);
  padding: 16px 28px; border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 16px; font-weight: 500;
}
.btn-secondary:hover { background: var(--pill-bg); }

/* Hero mockup */
.hero-mockup {
  position: relative; z-index: 1;
  margin-top: 56px;
  perspective: 1800px;
}
.hero-mockup-inner {
  transform: rotateX(8deg) translateZ(0);
  transition: transform 0.8s ease;
}
.hero-mockup-inner:hover { transform: rotateX(2deg); }

.browser-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 80px 120px -40px rgba(0,0,0,0.5), 0 0 0 1px var(--line);
}
.browser-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, white);
}
[data-theme="light"] .browser-bar { background: #f3f4f7; }
.browser-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.browser-bar .dot.r { background: #FF5F57; }
.browser-bar .dot.y { background: #FEBC2E; }
.browser-bar .dot.g { background: #28C840; }
.browser-bar .url {
  margin-left: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  background: var(--pill-bg);
  padding: 4px 12px; border-radius: 6px;
}

/* Logo strip */
.logos {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logos-label {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}
.logos-grid {
  display: flex; justify-content: space-around; align-items: center;
  flex-wrap: wrap; gap: 40px;
  opacity: 0.55;
  font-size: 18px; font-weight: 500;
  color: var(--ink-2);
}

/* Sections */
section.block { padding: 80px 0; position: relative; }
section.block.tight { padding: 56px 0; }

.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; letter-spacing: 0.04em;
  color: var(--orv-blue);
  margin-bottom: 20px;
}
.section-eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--orv-blue);
}

h2.section-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  text-wrap: balance;
}
h2.section-title em {
  font-style: normal; color: var(--ink-2);
}
.section-lead {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55; color: var(--ink-2);
  max-width: 640px;
  margin: 0;
}

/* Problem cards */
.problem-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 48px;
}
@media (max-width: 900px) { .problem-grid { grid-template-columns: 1fr; } }
.p-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.p-card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.p-card .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--muted);
  letter-spacing: 0.08em;
}
.p-card h3 {
  font-size: 26px; font-weight: 500; line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 24px 0 12px;
}
.p-card p {
  font-size: 15px; line-height: 1.55; color: var(--ink-2);
  margin: 0;
}
.p-card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--pill-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--orv-blue);
  position: absolute; top: 32px; right: 32px;
}

/* Big stat */
.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  margin-top: 48px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 768px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat .big {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500; line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--orv-blue) 0%, var(--orv-grad-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .lbl {
  margin-top: 12px;
  font-size: 14px; color: var(--muted);
  letter-spacing: 0.02em;
}

/* How it works */
.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 48px;
}
@media (max-width: 900px) { .how-grid { grid-template-columns: 1fr; } }
.how-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  position: relative;
}
.how-step .step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--orv-blue);
  letter-spacing: 0.08em;
}
.how-step h4 {
  font-size: 22px; font-weight: 500;
  margin: 16px 0 8px;
  letter-spacing: -0.015em;
}
.how-step p { color: var(--ink-2); font-size: 15px; line-height: 1.5; margin: 0; }
.how-step-illu {
  margin-top: 24px;
  height: 140px; border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--orv-blue) 12%, transparent) 0%, transparent 100%);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--orv-blue);
}

/* Feature split — residente / admin */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
  margin-top: 40px;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
@media (max-width: 900px) { .split, .split.reverse { grid-template-columns: 1fr; gap: 48px; } }

.feature-list { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.feature-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.feature-item:last-child { border-bottom: none; }
.feature-item .ic {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--pill-bg); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--orv-blue);
}
.feature-item h5 {
  font-size: 18px; font-weight: 500; letter-spacing: -0.01em;
  margin: 4px 0 4px;
}
.feature-item p { color: var(--ink-2); font-size: 15px; line-height: 1.5; margin: 0; }

/* Phone mockup */
.phone-frame {
  width: 320px;
  height: 640px;
  margin: 0 auto;
  background: #0b1020;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 60px 100px -30px rgba(0,0,0,0.6), 0 0 0 1px var(--line);
  position: relative;
}
.phone-frame::after {
  content: ""; position: absolute;
  top: 24px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 22px;
  background: #000; border-radius: 999px;
  z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 32px;
  background: #fff;
  overflow: hidden;
  padding: 50px 14px 16px;
  position: relative;
}

/* Dashboard mockup */
.dashboard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 60px 100px -30px rgba(0,0,0,0.5);
}

/* Hardware showcase */
.hw-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 48px;
}
@media (max-width: 900px) { .hw-grid { grid-template-columns: 1fr; } }
.hw-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px;
  position: relative; overflow: hidden;
  min-height: 420px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hw-card .hw-illu {
  height: 240px;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--orv-blue) 25%, transparent), transparent 70%);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.hw-card h3 {
  font-size: 26px; font-weight: 500; letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.hw-card p { color: var(--ink-2); font-size: 15px; line-height: 1.5; margin: 0; }

/* Franja “Utilizamos tecnología” + logo de proveedor */
.hw-tech {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 36px;
  border-top: 1px solid var(--line);
}
.hw-tech-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.hw-tech-logo { height: 30px; width: auto; display: block; opacity: 0.9; }
[data-theme="dark"] .hw-tech-logo { filter: invert(1); }

/* Integraciones de acceso */
.integrations { margin-top: 64px; text-align: center; }
.integrations-title {
  font-size: clamp(24px, 3vw, 34px); font-weight: 500;
  letter-spacing: -0.025em; line-height: 1.1;
  margin: 0 auto 40px; max-width: 640px; text-wrap: balance;
}
.integrations-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--orv-blue) 0%, var(--orv-grad-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.integrations-grid {
  display: flex; justify-content: center; gap: 18px; flex-wrap: wrap;
}
.integration {
  flex: 1 1 200px; max-width: 260px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 30px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: border-color 0.3s, transform 0.3s;
}
.integration:hover { border-color: var(--line-2); transform: translateY(-3px); }
.integration-ic {
  width: 56px; height: 56px; border-radius: 15px;
  background: var(--pill-bg); color: var(--orv-blue);
  display: flex; align-items: center; justify-content: center;
}
.integration span { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.integrations-note {
  margin: 28px 0 0; font-size: 13px; color: var(--muted);
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.02em;
}

/* Security band */
.security {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.security-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
@media (max-width: 900px) { .security-grid { grid-template-columns: 1fr; gap: 48px; } }
.cert-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  margin-top: 32px;
}
.cert-pill {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 14px;
}
.cert-pill .ic {
  width: 32px; height: 32px; border-radius: 8px;
  background: color-mix(in srgb, var(--orv-blue) 15%, transparent);
  color: var(--orv-blue);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Pricing */
.pricing-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  margin-top: 48px;
  max-width: 800px; margin-left: auto; margin-right: auto;
}
@media (max-width: 760px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  display: flex; flex-direction: column; gap: 20px;
  position: relative;
}
.price-card.featured {
  border-color: var(--orv-blue);
  box-shadow: 0 0 0 1px var(--orv-blue), 0 30px 60px -30px color-mix(in srgb, var(--orv-blue) 50%, transparent);
}
.price-card .tier {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.price-card .price {
  font-size: 48px; font-weight: 500; letter-spacing: -0.03em; line-height: 1;
}
.price-card .price .unit { font-size: 14px; color: var(--muted); font-weight: 400; }
.price-card .desc { color: var(--ink-2); font-size: 14px; line-height: 1.5; margin: 0; }
.price-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.price-card li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); align-items: flex-start; }
.price-card li::before {
  content: "✓"; color: var(--orv-blue); font-weight: 600;
}
.price-card .featured-badge {
  position: absolute; top: -12px; right: 28px;
  background: var(--orv-blue); color: white;
  padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}
.price-card .btn {
  margin-top: auto;
  display: block; text-align: center;
  padding: 14px;
  border-radius: 12px;
  background: var(--pill-bg); color: var(--ink);
  border: 1px solid var(--line);
  font-size: 14px; font-weight: 500;
}
.price-card.featured .btn {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}

/* FAQ */
.faq-list { margin-top: 48px; max-width: 820px; margin-left: auto; margin-right: auto; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
  font-size: 19px; font-weight: 500; letter-spacing: -0.015em;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+"; font-size: 24px; color: var(--muted);
  transition: transform 0.2s;
}
details[open] .faq-q::after { transform: rotate(45deg); }
.faq-a {
  padding-top: 14px;
  font-size: 15px; line-height: 1.6;
  color: var(--ink-2);
  max-width: 720px;
}

/* Final CTA band */
.final-cta {
  margin: 0 32px 32px;
  padding: 76px 60px;
  border-radius: 36px;
  background: linear-gradient(135deg, var(--orv-blue) 0%, var(--orv-grad-mid) 60%, var(--orv-grad-2) 100%);
  text-align: center;
  position: relative; overflow: hidden;
  color: white;
}
.final-cta::before, .final-cta::after {
  content: ""; position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}
.final-cta::before {
  width: 400px; height: 400px;
  background: white; top: -150px; left: -100px;
}
.final-cta::after {
  width: 360px; height: 360px;
  background: #ffd6f7; bottom: -150px; right: -50px;
}
.final-cta-inner { position: relative; z-index: 1; }
.final-cta h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500; line-height: 1.0;
  letter-spacing: -0.035em;
  margin: 0;
  color: white;
}
.final-cta p {
  font-size: 18px; line-height: 1.5; opacity: 0.85;
  max-width: 560px; margin: 24px auto 36px;
}
.final-cta .btn-primary { background: white; color: var(--orv-blue); }
.final-cta .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -10px rgba(0,0,0,0.3); }

/* Footer */
footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h6 {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 20px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}
.footer-col a {
  display: block; padding: 6px 0;
  font-size: 14px; color: var(--ink-2);
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  padding-top: 32px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--muted);
  flex-wrap: wrap; gap: 16px;
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s, transform 0.8s; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Animated number */
.anum { display: inline-block; }

/* Util */
.tc { text-align: center; }

/* ===== Nav right cluster + segment toggle ===== */
.nav-right { display: flex; align-items: center; gap: 14px; }
.seg-toggle {
  display: inline-flex; align-items: center;
  background: var(--pill-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.seg-toggle button {
  font: inherit; cursor: pointer;
  border: none; background: transparent;
  color: var(--ink-2);
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.2s, background 0.2s;
}
.seg-toggle button:hover { color: var(--ink); }
.seg-toggle button[aria-pressed="true"] {
  background: var(--ink); color: var(--bg);
}

/* Segment switcher above hero title */
.hero-seg {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 auto 30px;
}
.hero-seg-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.hero-seg .seg-toggle button { padding: 8px 18px; font-size: 14px; }
@media (max-width: 540px) {
  .hero-seg { flex-direction: column; gap: 10px; }
}

/* ===== Segment gate ===== */
.seg-gate {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  overflow-y: auto;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  opacity: 1; transition: opacity 0.45s ease;
}
.seg-gate.hide { opacity: 0; pointer-events: none; }
.seg-gate-inner {
  width: 100%; max-width: 860px; text-align: center;
  animation: gateIn 0.6s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes gateIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.seg-gate-logo { height: 26px; width: auto; margin: 0 auto 36px; display: block; }
[data-theme="dark"] .seg-gate-logo { filter: invert(1); }
.seg-gate-title {
  font-size: clamp(28px, 4vw, 44px); font-weight: 500;
  line-height: 1.08; letter-spacing: -0.03em; margin: 0;
  color: var(--ink);
}
.seg-gate-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--orv-blue) 0%, var(--orv-grad-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.seg-gate-sub {
  max-width: 520px; margin: 18px auto 0;
  color: var(--ink-2); font-size: 16px; line-height: 1.55;
}
.seg-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin-top: 40px;
}
@media (max-width: 640px) {
  .seg-gate { align-items: flex-start; padding: 28px 18px; }
  .seg-gate-logo { height: 24px; margin-bottom: 26px; }
  .seg-gate-sub { font-size: 15px; margin-top: 14px; }
  .seg-cards { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
  .seg-card { padding: 22px 20px 20px; border-radius: 18px; }
  .seg-card-ic { width: 48px; height: 48px; border-radius: 14px; }
  .seg-card-name { font-size: 20px; }
}
@media (max-width: 640px) and (max-height: 720px) {
  .seg-gate-logo { margin-bottom: 18px; }
  .seg-gate-title { font-size: 24px; }
  .seg-cards { margin-top: 20px; }
}
.seg-card {
  font: inherit; cursor: pointer; text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 28px 26px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), border-color 0.25s, box-shadow 0.25s;
}
.seg-card:hover {
  transform: translateY(-4px);
  border-color: var(--orv-blue);
  box-shadow: 0 0 0 1px var(--orv-blue), 0 30px 60px -34px color-mix(in srgb, var(--orv-blue) 60%, transparent);
}
.seg-card-ic {
  width: 56px; height: 56px; border-radius: 16px;
  background: color-mix(in srgb, var(--orv-blue) 12%, transparent);
  color: var(--orv-blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.seg-card-name { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.seg-card-desc { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.seg-card-go {
  margin-top: 8px; font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.02em; color: var(--orv-blue);
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.25s, transform 0.25s;
}
.seg-card:hover .seg-card-go { opacity: 1; transform: none; }

/* ============================================================
   MOBILE — el grueso de nuestros prospectos entra desde celular
   ============================================================ */

/* Mockup del hero: el sidebar de 220px + 4 stat cards revientan
   en pantallas chicas. Lo reacomodamos para que respire. */
@media (max-width: 760px) {
  .hero { padding: 124px 0 64px; }

  /* Oculta el sidebar del dashboard del hero y deja sólo el panel */
  .hero-dash { grid-template-columns: 1fr !important; }
  .hero-dash-side { display: none !important; }
  .hero-dash-main { padding: 22px 18px !important; }
  .hero-dash-stats { grid-template-columns: repeat(2, 1fr) !important; }

  /* La inclinación 3D del mockup desperdicia altura en móvil */
  .hero-mockup { margin-top: 40px; perspective: none; }
  .hero-mockup-inner { transform: none !important; }
}

@media (max-width: 540px) {
  /* CTA fijo accesible en el pulgar */
  .nav-inner { height: 60px; }

  .cta-row { display: flex; width: 100%; }
  .cta-row .btn-primary,
  .cta-row .btn-secondary { flex: 1; justify-content: center; padding: 15px 20px; }

  /* Las stat cards del hero en una columna se ven mejor que apretadas */
  .hero-dash-stats { grid-template-columns: repeat(2, 1fr) !important; }

  /* Banda de stats grande: 1 columna respira mejor que 2 apretadas */
  .stat-row { grid-template-columns: 1fr 1fr; gap: 24px 20px; padding: 32px 0; }

  /* Tarjetas y secciones con menos padding */
  section.block { padding: 56px 0; }
  section.block.tight { padding: 40px 0; }
  .p-card { padding: 26px 22px; }
  .p-card .icon { top: 24px; right: 24px; }
  .how-step { padding: 26px 22px; }
  .price-card { padding: 28px 24px; }
  .hw-card { padding: 30px 26px; min-height: auto; }
  .hw-card .hw-illu { height: 180px; }
  .hw-card .hw-illu svg { max-width: 70%; height: auto; }

  /* El phone-frame de 320px cabe, pero lo escalamos para dar margen */
  .phone-frame { width: 280px; height: 560px; }

  /* CTA final: 60px de padding lateral es demasiado en celular */
  .final-cta { margin: 0 16px 24px; padding: 56px 26px; border-radius: 28px; }
  .final-cta .cta-row { flex-direction: column; }

  /* Footer 2 columnas con la marca arriba a todo lo ancho */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-col:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Logos: scroll horizontal limpio en vez de wrap descuadrado */
  .logos-grid { gap: 28px; font-size: 16px; }

  /* FAQ con tipografía un poco menor */
  .faq-q { font-size: 17px; }
}

/* Pantallas muy angostas (≤380px) — apretamos un poco más */
@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .hero-dash-stats { grid-template-columns: 1fr 1fr !important; }
}
