/* ── Language Toggle ── */
.lang-en { display: block; }
.lang-es { display: none; }

html.es .lang-en { display: none; }
html.es .lang-es { display: block; }

/* inline variants */
span.lang-en, a.lang-en, li.lang-en { display: inline; }
span.lang-es, a.lang-es, li.lang-es { display: none; }
html.es span.lang-en, html.es a.lang-en, html.es li.lang-en { display: none; }
html.es span.lang-es, html.es a.lang-es, html.es li.lang-es { display: inline; }

/* flex variants */
div.lang-en, div.lang-es { display: block; }

/* ── Hero elegant divider (replaces numbered eyebrow line) ── */
.hero-divider{
  background:linear-gradient(90deg, var(--blue), transparent);
  height:2px;
  margin-bottom:28px;
  width:56px;
}

/* ── Nav Logo (unified real logo, replaces CSS brand-mark) ── */
.nav-logo-img{display:block;height:92px;width:auto}
@media (max-width:620px){.nav-logo-img{height:60px}}

/* ── Announcement Bar ── */
.announcement-bar {
  align-items: center;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  color: #02131e;
  display: flex;
  font-size: 13px;
  font-weight: 500;
  gap: 12px;
  justify-content: center;
  min-height: 44px;
  padding: 8px 20px;
  position: relative;
  text-align: center;
  z-index: 110;
}
.announcement-bar a { color: #02131e; font-weight: 700; text-decoration: underline; }
.announcement-bar a:hover { opacity: .75; }
.announcement-close {
  background: transparent;
  border: none;
  color: #02131e;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  position: absolute;
  right: 16px;
  padding: 4px 8px;
  top: 50%;
  transform: translateY(-50%);
}
.announcement-bar.hidden { display: none; }
body:has(.announcement-bar:not(.hidden)) .nav { top: 44px; }

/* ── Mobile Navigation Hamburger ── */
.nav-hamburger {
  background: transparent;
  border: none;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-hamburger span {
  background: var(--text);
  display: block;
  height: 2px;
  transition: .25s transform, .25s opacity;
  width: 22px;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero Trust Strip ── */
.hero-trust {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.trust-item {
  color: var(--muted);
  font: 11px var(--mono);
  letter-spacing: .08em;
}
.trust-item strong {
  color: var(--cyan);
  font-size: 15px;
  margin-right: 4px;
}
.trust-divider {
  color: var(--line);
  font-size: 18px;
}

/* ── Coming Soon Strip ── */
.coming-soon-strip {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding-top: 48px;
}
.coming-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}
.coming-card {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 20px;
  position: relative;
}
.coming-card::before {
  content: 'SOON';
  color: var(--blue);
  font: 9px var(--mono);
  letter-spacing: .12em;
  position: absolute;
  right: 20px;
  top: 24px;
}
.coming-label {
  color: var(--text);
  font: 500 16px var(--display);
}
.coming-card small {
  color: var(--muted);
  font: 12px var(--body);
}

/* ── Back to Top Button ── */
.back-to-top {
  align-items: center;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  bottom: 24px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font-size: 18px;
  height: 44px;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 24px;
  transition: opacity .3s, transform .3s;
  width: 44px;
  z-index: 90;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--blue);
  color: #02131e;
  transform: translateY(-3px);
}

/* ── Cookie / GDPR Banner ── */
.cookie-banner {
  align-items: center;
  background: var(--surface-raised);
  border-top: 1px solid var(--line);
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 16px;
  justify-content: space-between;
  left: 0;
  padding: 16px 32px;
  position: fixed;
  right: 0;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  z-index: 200;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { color: var(--muted); margin: 0; max-width: 600px; }
.cookie-banner a { color: var(--cyan); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-accept { background: var(--blue); border: none; color: #02131e; cursor: pointer; font: 600 12px var(--body); padding: 9px 18px; }
.cookie-decline { background: transparent; border: 1px solid var(--line); color: var(--muted); cursor: pointer; font: 600 12px var(--body); padding: 9px 18px; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .nav-hamburger { display: flex; }
  .nav-enlaces {
    background: rgba(5,7,11,.97);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 0;
    padding: 24px var(--pad);
    position: fixed;
    right: 0;
    top: 130px;
    z-index: 99;
  }
  .nav-enlaces.open { display: flex; }
  .nav-enlaces a {
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: 16px;
    padding: 16px 0;
  }
  .coming-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .nav-enlaces { top: 65px; }
}

@media (max-width: 620px) {
  .announcement-bar { font-size: 11px; padding: 8px 36px 8px 16px; }
  .hero-trust { gap: 10px; }
  .trust-divider { display: none; }
  .cookie-banner { flex-direction: column; }
  .cookie-actions { width: 100%; }
  .cookie-accept, .cookie-decline { flex: 1; text-align: center; }
}

/* ── Print Styles ── */
@media print {
  .nav, .announcement-bar, .cookie-banner, .back-to-top,
  .ecosystem-canvas, .hero-glow { display: none !important; }
  body { background: white; color: black; }
  h1, h2, h3 { color: black; }
  .hero { min-height: auto; padding: 40px 0; }
}

/* ── Focus Visible Improvements ── */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
