:root {
  --bg: #0b0f1a;
  --surface: rgba(17, 24, 42, 0.75);
  --surface-2: rgba(17, 24, 42, 0.5);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e7eef8;
  --muted: #9fb0c6;
  --accent: #38f2a5;
  --accent-2: #5bc0ff;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --radius-lg: 24px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 30% 10%, rgba(56, 242, 165, 0.10), transparent 55%),
              radial-gradient(1000px 700px at 85% 25%, rgba(91, 192, 255, 0.10), transparent 55%),
              var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
strong { font-weight: 600; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* Background orbs */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: -1; }
.orb {
  position: absolute;
  filter: blur(40px);
  opacity: 0.35;
  border-radius: 999px;
}
.orb-1 { width: 520px; height: 520px; left: -120px; top: -120px; background: rgba(56, 242, 165, 0.45); }
.orb-2 { width: 520px; height: 520px; right: -180px; top: 120px; background: rgba(91, 192, 255, 0.45); }
.orb-3 { width: 460px; height: 460px; left: 35%; bottom: -220px; background: rgba(120, 93, 255, 0.35); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #11182a;
  border: 1px solid var(--border);
}
.skip-link:focus { left: 10px; z-index: 10; }

/* Navbar */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease, background 160ms ease;
}
.nav-wrap.is-elevated {
  border-color: var(--border);
  background: rgba(11, 15, 26, 0.55);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 22px rgba(56, 242, 165, 0.35);
}
.brand-name {
  font-family: Sora, Inter, sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: rgba(231, 238, 248, 0.92);
}
.nav-links a {
  opacity: 0.9;
  transition: opacity 120ms ease;
}
.nav-links a:hover { opacity: 1; }

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: rgba(17, 24, 42, 0.35);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(231, 238, 248, 0.9);
  margin: 4px 0;
  border-radius: 99px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(56, 242, 165, 0.95), rgba(91, 192, 255, 0.95));
  color: #041018;
  font-weight: 700;
  letter-spacing: 0.2px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(56, 242, 165, 0.12);
  transition: transform 120ms ease, filter 120ms ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.btn:active { transform: translateY(0px); }
.btn-sm { padding: 10px 12px; border-radius: 14px; font-weight: 700; }

.btn-ghost {
  background: rgba(17, 24, 42, 0.25);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}
.btn-ghost:hover { filter: brightness(1.08); }
.btn:focus-visible, .btn-ghost:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Touch target mínimo 48px (accesibilidad) */
.btn, .btn-sm { min-height: 48px; min-width: 48px; }
.btn-sm { padding: 12px 16px; }

/* Language Dropdown */
.lang-dropdown {
  position: relative;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-flag {
  font-size: 16px;
  line-height: 1;
}

.lang-code {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.lang-chevron {
  opacity: 0.7;
  transition: transform 200ms ease, opacity 200ms ease;
}

.lang-trigger:hover .lang-chevron {
  opacity: 1;
}

.lang-trigger[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 120px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
  z-index: 100;
}

.lang-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  transition: background 150ms ease, transform 100ms ease;
  font-family: inherit;
  text-align: left;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.lang-option:active {
  transform: scale(0.98);
}

.lang-option.is-active {
  background: rgba(56, 242, 165, 0.12);
  color: var(--accent);
}

.lang-option.is-active .lang-flag {
  filter: brightness(1.1);
}

/* Sections */
.section {
  padding: 86px 0;
}
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(17, 24, 42, 0.18), transparent);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.section-compact { padding: 48px 0; }
.text-center { text-align: center; }
.justify-center { justify-content: center; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.section-head {
  margin-bottom: 26px;
  max-width: 760px;
}
h1, h2, h3 {
  font-family: Sora, Inter, sans-serif;
  margin: 0 0 10px 0;
}
h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.6px;
}
h2 {
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.3px;
}
h3 {
  font-size: 18px;
  letter-spacing: -0.2px;
}
p { margin: 0 0 14px 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Hero */
.hero { padding: 92px 0 44px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}
.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: rgba(231, 238, 248, 0.82);
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(17, 24, 42, 0.22);
}
.lead { color: rgba(231, 238, 248, 0.92); font-size: 16px; line-height: 1.6; max-width: 56ch; }
.grad {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-cta { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.metric {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(17, 24, 42, 0.22);
  padding: 12px;
}
.metric-val { display: block; font-weight: 800; letter-spacing: 0.2px; }
.metric-label { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; line-height: 1.35; }

/* Hero card */
.hero-card .glass {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(17, 24, 42, 0.62), rgba(17, 24, 42, 0.35));
  box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.hero-card .glass:before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(520px 220px at 15% 10%, rgba(56,242,165,0.22), transparent 55%),
              radial-gradient(520px 220px at 85% 20%, rgba(91,192,255,0.18), transparent 55%);
  pointer-events:none;
}
.hero-card-top { display:flex; gap:10px; flex-wrap: wrap; position:relative; }
.pill {
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(11, 15, 26, 0.35);
}
.pill-2 { color: rgba(231,238,248,0.9); }

.diagram { margin-top: 14px; display: grid; gap: 10px; position:relative; }
.node {
  display:flex; align-items:center; gap:12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(11, 15, 26, 0.28);
}
.dot {
  width: 10px; height: 10px; border-radius: 99px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(56,242,165,0.25);
}
.node-title { font-weight: 700; margin: 0; }
.node-sub { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.arrow {
  height: 14px;
  width: 2px;
  margin-left: 22px;
  background: linear-gradient(180deg, rgba(56,242,165,0.0), rgba(56,242,165,0.6), rgba(91,192,255,0.0));
  border-radius: 99px;
}

.hero-card-bottom {
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin-top: 14px;
  position:relative;
}
.mini {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(11, 15, 26, 0.24);
  padding: 10px;
}
.mini-k { font-size: 12px; color: var(--muted); margin: 0; }
.mini-v { font-weight: 700; margin: 6px 0 0; }

/* Trust row */
.trust { margin-top: 18px; }
.trust-row { display:flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(17, 24, 42, 0.18);
  font-size: 13px;
  color: rgba(231,238,248,0.9);
}

/* Cards & grids */
.card {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 10px 34px rgba(0,0,0,0.22);
}
.grid-4 {
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.grid-3 {
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.grid-2 {
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.bullets { margin: 10px 0 0; padding-left: 18px; color: rgba(231,238,248,0.9); }
.bullets li { margin: 6px 0; color: rgba(231,238,248,0.84); }
.tag {
  display:inline-flex;
  margin-top: 8px;
  font-size: 12.5px;
  color: rgba(231,238,248,0.86);
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(11, 15, 26, 0.20);
}

/* Steps */
.steps { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.step {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(17, 24, 42, 0.22);
  padding: 16px;
}
.step-num {
  display:inline-flex;
  font-weight: 800;
  color: rgba(56,242,165,0.95);
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}
.step-body p { margin: 0; color: rgba(231,238,248,0.86); line-height: 1.45; }

.callout {
  margin-top: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(56,242,165,0.08), rgba(91,192,255,0.06));
  padding: 18px;
  display:flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* FAQ */
.faq-list { margin: 0; padding: 0; list-style: none; max-width: 640px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  padding: 18px 0;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
}
.faq-q:hover { color: var(--accent); }
.faq-q:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq-q::after {
  content: "+";
  font-size: 20px;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}
.faq-q[aria-expanded="true"]::after { content: "−"; }
.faq-item dd {
  margin: 0;
  padding: 0 0 18px 0;
}
.faq-item dd p { margin: 0; padding-left: 0; color: var(--muted); line-height: 1.55; }

/* CTA strip */
.cta-strip {
  margin-top: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 18px;
  display:flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(17, 24, 42, 0.22);
}

/* Contact */
.contact-grid {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.note {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(11, 15, 26, 0.22);
  color: rgba(231,238,248,0.86);
}
.form .field { margin-bottom: 12px; }
label { display:block; font-size: 13px; margin-bottom: 6px; color: rgba(231,238,248,0.9); }
input, select, textarea {
  width: 100%;
  border-radius: 14px;
  padding: 12px 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(11, 15, 26, 0.35);
  color: var(--text);
  outline: none;
}
input::placeholder, textarea::placeholder { color: rgba(159,176,198,0.75); }
input:focus, select:focus, textarea:focus {
  border-color: rgba(56,242,165,0.35);
  box-shadow: 0 0 0 4px rgba(56,242,165,0.10);
}
select { cursor: pointer; }

/* Footer */
.footer {
  padding: 28px 0 36px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(11, 15, 26, 0.35);
}
.footer-row {
  display:flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-right { display:flex; gap: 10px; align-items: center; color: rgba(231,238,248,0.9); }
.sep { color: rgba(159,176,198,0.6); }
.brand-footer { margin-bottom: 10px; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease, transform 520ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cookie consent modal */
.cookie-consent[hidden] { display: none; }
.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-consent__overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 18, 0.72);
  backdrop-filter: blur(6px);
}
.cookie-consent__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100% - 32px));
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}
.cookie-consent__content p {
  color: var(--muted);
  margin-bottom: 0;
}
.cookie-consent__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-consent__actions .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Mobile nav */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 78px; }
  .hero-metrics { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    right: 20px;
    top: 62px;
    width: min(320px, calc(100% - 40px));
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(11, 15, 26, 0.70);
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }

  .lang-dropdown {
    width: 100%;
  }

  .lang-trigger {
    width: 100%;
    justify-content: center;
  }

  .lang-menu {
    position: relative;
    top: 8px;
    right: auto;
    width: 100%;
    transform: none;
  }

  .lang-menu.is-open {
    transform: none;
  }
}

/* Small screens */
@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cta-strip, .callout { flex-direction: column; align-items: flex-start; }
}
