* { box-sizing: border-box; }
:root {
  /* ✅ Fondo menos oscuro (premium, no gris) */
  --bg: #0e141c;
  --panel: #101b28;

  /* Texto */
  --text: #edf3fb;
  --muted: #b2c0d0;

  /* Líneas / glass (más visibles) */
  --line: rgba(255,255,255,.11);
  --btn: #ffffff;
  --btnText: #0b0f14;

  /* ✅ nuevos (ajustados) */
  --line2: rgba(255,255,255,.14);
  --glass: rgba(255,255,255,.05);
  --glass2: rgba(255,255,255,.08);
  --shadow: 0 22px 70px rgba(0,0,0,.38);
  --shadow2: 0 12px 34px rgba(0,0,0,.30);
}

html, body { margin: 0; padding: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", sans-serif;

  /* ✅ Fondo con más “luz” general */
  background:
    radial-gradient(1100px 700px at 20% 0%, rgba(255,255,255,.085), transparent 62%),
    radial-gradient(1000px 720px at 80% 18%, rgba(255,255,255,.07), transparent 64%),
    radial-gradient(900px 600px at 50% 115%, rgba(255,255,255,.05), transparent 60%),
    var(--bg);

  color: var(--text);
}

a { color: inherit; text-decoration: none; }
.container { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }

/* =========================
   TIPOGRAFÍA / JERARQUÍA
========================= */
h1, h2, h3 { letter-spacing: -0.02em; }
h2 { font-size: 28px; line-height: 1.15; }
h3 { font-size: 18px; line-height: 1.25; }
p { line-height: 1.65; }

.lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin-top: 8px;
  max-width: 60ch;
}

/* =========================
   TOPBAR / NAV
========================= */
.topbar {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);

  /* ✅ un poquito menos transparente */
  background: rgba(14,20,28,.72);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  gap: 28px;
}
.logo { font-weight: 800; letter-spacing: .08em; flex-shrink: 0; }
.logo.small { font-size: 12px; opacity: .9; }

/* ✅ NAV: 1 sola línea + scroll horizontal si no entra */
.nav {
  display: flex;
  gap: 14px;
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: 0;
  flex: 1;

  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }

.nav-link { font-size: 14px; color: rgba(237,243,251,.72); flex: 0 0 auto; }
.nav-link.active, .nav-link:hover { color: var(--text); }

.topbar-actions { display: flex; gap: 10px; flex-shrink: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 14px; border-radius: 12px;
  background: var(--btn); color: var(--btnText);
  font-weight: 700; border: 1px solid rgba(255,255,255,.15);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0px); }

/* ✅ Dropdown Acceso */
.access { position: relative; }
.access-btn.is-active {
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
}
.access-caret { margin-left: 8px; opacity: .85; font-size: 12px; }

.access-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 240px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(16,27,40,.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 90px rgba(0,0,0,.40);
  display: none;
  z-index: 50;
}
.access.is-open .access-menu { display: block; }

.access-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  border: 1px solid transparent;
  font-size: 14px;
  outline: none;
}
.access-item:hover,
.access-item:focus {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
}

@media (max-width: 560px) {
  .access-menu {
    right: auto;
    left: 0;
    min-width: 220px;
  }
}

/* =========================
   SECCIONES / DIVISORES
========================= */
.section { padding: 34px 0; }
.page { padding: 34px 0 60px; }

.section + .section {
  position: relative;
}
.section + .section::before {
  content: "";
  display: block;
  height: 1px;
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
  transform: translateY(-18px);
  opacity: .85;
}

/* =========================
   CARDS “GLASS” + HOVER
========================= */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow2);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  box-shadow: 0 14px 40px rgba(0,0,0,.32);
}

.card-title { font-weight: 700; margin-bottom: 8px; }
.card-body { line-height: 1.6; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.steps { margin: 18px 0 0; padding-left: 18px; }
.steps li { margin: 10px 0; }
.steps strong { display: inline-block; min-width: 150px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* =========================
   HERO
========================= */
.hero {
  padding: 64px 0 28px;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 26px;
  align-items: start;
}

.hero h1 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  margin: 0 0 14px;
}

.hero p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 18px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.hero-bullets { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; }

/* =========================
   CTA
========================= */
.cta { padding: 20px 0 60px; }
.cta-box {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow2);
}
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* =========================
   FORM
========================= */
.form { margin-top: 18px; display: grid; gap: 14px; }
label { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
input, select, textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.14);
  color: var(--text);
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(255,255,255,.22);
  background: rgba(0,0,0,.18);
}
textarea { resize: vertical; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

/* =========================
   FOOTER
========================= */
.footer { border-top: 1px solid var(--line); padding: 22px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; }
.footer-links { display: flex; gap: 12px; flex-wrap: wrap; color: rgba(237,243,251,.70); font-size: 14px; }
.footer-links a:hover { color: var(--text); }

/* =========================
   HERO VARIANTE C (UPGRADE)
========================= */
.hero-c {
  padding: 78px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero-c::before {
  content: "";
  position: absolute;
  inset: -200px -200px auto -200px;
  height: 520px;
  background:
    radial-gradient(650px 380px at 20% 35%, rgba(255,255,255,.11), transparent 62%),
    radial-gradient(540px 360px at 70% 15%, rgba(255,255,255,.085), transparent 66%);
  pointer-events: none;
  opacity: .95;
}
.hero-c::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  opacity: .75;
}
.hero-c .hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 32px;
  align-items: start;
}

/* ✅ Checks → chips premium (más contraste) */
.hero-checks {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-checks span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: rgba(237,243,251,.78);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}
.hero-checks span::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  color: var(--text);
  font-size: 12px;
}

/* Panel derecho */
.hero-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.035));
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px;
  padding: 16px;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: -40px -60px auto -60px;
  height: 180px;
  background: radial-gradient(340px 170px at 50% 50%, rgba(255,255,255,.11), transparent 72%);
  opacity: .70;
  pointer-events: none;
}

.kpi {
  background: rgba(0,0,0,.12);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  padding: 14px;
  position: relative;
}
.kpi-label {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(237,243,251,.70);
}
.kpi-value {
  font-size: 28px;
  font-weight: 800;
  margin-top: 6px;
}
.kpi-note {
  font-size: 13px;
  color: rgba(237,243,251,.72);
  margin-top: 6px;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .topbar-inner { align-items: center; }

  .hero-c { padding: 56px 0 28px; }
  .hero-c .hero-inner { grid-template-columns: 1fr; }
  .hero-checks span { white-space: normal; line-height: 1.25; }
}

/* =========================
   MARQUEE (capabilities)
========================= */
.marquee {
  margin-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 14px;
  position: relative;
  overflow: hidden;
}

.marquee::before,
.marquee::after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  width:80px;
  pointer-events:none;
  z-index:2;
}

/* ✅ Fade usando el bg real (antes estaba hardcodeado) */
.marquee::before{
  left:0;
  background: linear-gradient(90deg, rgba(14,20,28,.92), transparent);
}
.marquee::after{
  right:0;
  background: linear-gradient(270deg, rgba(14,20,28,.92), transparent);
}

.marquee-track{
  display:flex;
  gap:10px;
  width:max-content;
  animation: marqueeMove 22s linear infinite;
  padding: 2px 0;
}

@keyframes marqueeMove{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.badge-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: rgba(237,243,251,.78);
  font-size: 13px;
  white-space: nowrap;

  transition:
    background .18s ease,
    border-color .18s ease,
    color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

.badge-chip:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.26);
  color: var(--text);

  box-shadow:
    0 0 0 1px rgba(255,255,255,.14),
    0 10px 30px rgba(0,0,0,.34);

  transform: translateY(-1px);
}

.badge-dot{
  width:8px; height:8px;
  border-radius: 999px;
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(255,255,255,.18);
}
.badge-chip:hover .badge-dot{
  background: #fff;
  box-shadow: 0 0 10px rgba(255,255,255,.85);
}

/* Respeto accesibilidad */
@media (prefers-reduced-motion: reduce){
  .marquee-track{ animation: none; }
}
