/* ============================================================
   ASTERA GROUP — Design tokens
   ============================================================ */
:root {
  --navy: #0A1B34;
  --navy-deep: #060f1f;
  --navy-soft: #13294d;
  --azul: #1D4ED8;
  --azul-bright: #2f63f2;
  --hielo: #5DA8FF;
  --gris: #A7B0BB;
  --off-white: #F5F7FA;
  --white: #FFFFFF;

  --ink: #101828;
  --ink-soft: #475069;

  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1220px;
  --gap: clamp(1.25rem, 2vw, 2.5rem);
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --shadow-card: 0 1px 2px rgba(10,27,52,.06), 0 12px 32px -12px rgba(10,27,52,.18);
  --shadow-lift: 0 20px 60px -20px rgba(10,27,52,.35);

  --ease: cubic-bezier(.22,.7,.24,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
section { position: relative; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--azul);
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--azul);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--hielo); }
.eyebrow.on-dark::before { background: var(--hielo); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0;
  letter-spacing: .01em;
}

h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); font-weight: 600; }

.section-head {
  max-width: 680px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 1.1rem 0 0;
}

p { line-height: 1.7; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary {
  background: var(--azul);
  color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(29,78,216,.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(29,78,216,.6); }
.btn-ghost-dark {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.35);
}
.btn-ghost-dark:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.btn-ghost-light {
  background: transparent;
  color: var(--navy);
  border-color: rgba(10,27,52,.18);
}
.btn-ghost-light:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-block { width: 100%; }

/* ---------- Language toggle ---------- */
html[data-lang="es"] [data-lang-content="en"] { display: none; }
html[data-lang="en"] [data-lang-content="es"] { display: none; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  background: rgba(255,255,255,.05);
}
.lang-toggle button {
  border: none;
  background: transparent;
  color: rgba(255,255,255,.6);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .4rem .65rem;
  border-radius: 999px;
  transition: background .25s, color .25s;
}
.lang-toggle button.active { background: var(--white); color: var(--navy); }
.nav-scrolled .lang-toggle { border-color: rgba(10,27,52,.15); }
.nav-scrolled .lang-toggle button { color: rgba(10,27,52,.55); }
.nav-scrolled .lang-toggle button.active { background: var(--navy); color: var(--white); }

/* ============================================================
   Navbar
   ============================================================ */
.nav-wrap {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 1.25rem;
}
.navbar {
  width: 100%;
  max-width: 1180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .6rem .7rem .6rem 1.1rem;
  border-radius: 999px;
  background: rgba(10,27,52,.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 12px 40px -16px rgba(6,15,31,.55);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.navbar.nav-scrolled {
  background: rgba(255,255,255,.85);
  border-color: rgba(10,27,52,.08);
  box-shadow: 0 10px 30px -16px rgba(10,27,52,.25);
}
.nav-logo { display: flex; align-items: center; gap: .6rem; flex: none; }
.nav-logo img { height: 30px; width: auto; }
.nav-logo .logo-light { display: block; }
.nav-logo .logo-dark { display: none; }
.nav-scrolled .nav-logo .logo-light { display: none; }
.nav-scrolled .nav-logo .logo-dark { display: block; }

.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a {
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.82);
  transition: color .25s;
  position: relative;
}
.nav-links a:hover { color: var(--white); }
.nav-scrolled .nav-links a { color: rgba(10,27,52,.68); }
.nav-scrolled .nav-links a:hover { color: var(--navy); }

.nav-actions { display: flex; align-items: center; gap: .7rem; }
.nav-cta {
  padding: .65rem 1.3rem;
  font-size: .82rem;
}
.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: transparent;
  align-items: center;
  justify-content: center;
}
.nav-burger svg { width: 18px; height: 18px; stroke: var(--white); }
.nav-scrolled .nav-burger { border-color: rgba(10,27,52,.2); }
.nav-scrolled .nav-burger svg { stroke: var(--navy); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform .5s var(--ease), opacity .4s;
  pointer-events: none;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a { font-size: 1.4rem; color: var(--white); font-family: var(--font-display); }
.mobile-menu .btn { margin-top: 1rem; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse 120% 90% at 20% 0%, #132c56 0%, var(--navy) 45%, var(--navy-deep) 100%);
  overflow: hidden;
  padding: 150px 0 90px;
}
.hero canvas#constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .8;
}
.hero-glow {
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93,168,255,.22) 0%, rgba(93,168,255,0) 70%);
  top: -320px;
  right: -260px;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 600;
  letter-spacing: 0;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--hielo), var(--azul-bright) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: rgba(255,255,255,.8);
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 620px;
  margin: 1.6rem 0 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}

.stat-strip {
  position: relative;
  z-index: 2;
  margin-top: clamp(3rem, 7vw, 5.5rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 2.2rem;
  gap: 1.5rem;
}
.stat-strip .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  color: var(--white);
  font-weight: 600;
}
.stat-strip .stat > span {
  display: block;
  margin-top: .4rem;
  font-size: .82rem;
  color: rgba(255,255,255,.62);
  line-height: 1.5;
}

/* ============================================================
   Generic section paddings / alt backgrounds
   ============================================================ */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-alt { background: var(--off-white); }
.section-navy {
  background: linear-gradient(180deg, var(--navy-deep), var(--navy));
  color: var(--white);
}
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,.72); }

/* ============================================================
   Market / stats section
   ============================================================ */
.market-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.market-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.9rem 1.6rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(10,27,52,.05);
}
.market-card b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--azul);
  font-weight: 600;
}
.market-card p { margin: .6rem 0 0; font-size: .88rem; color: var(--ink-soft); }
.market-card cite {
  display: block;
  margin-top: .8rem;
  font-style: normal;
  font-size: .72rem;
  color: var(--gris);
  letter-spacing: .03em;
}

.market-note {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border-left: 3px solid var(--azul);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-card);
}
.market-note svg { flex: none; width: 22px; height: 22px; stroke: var(--azul); margin-top: 2px; }
.market-note p { margin: 0; font-size: .95rem; }

/* ============================================================
   About / Founders
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.about-copy p { font-size: 1.02rem; }
.quote-block {
  margin: 1.8rem 0;
  padding: 1.6rem 0 1.6rem 1.6rem;
  border-left: 3px solid var(--hielo);
}
.quote-block p {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.25rem;
  font-style: normal;
  line-height: 1.5;
  margin: 0;
}

.founders {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.8rem;
}
.founder-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--off-white);
  border-radius: var(--radius-md);
}
.founder-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy), var(--azul));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  flex: none;
}
.founder-card b { display: block; color: var(--navy); font-size: .95rem; }
.founder-card span { display: block; font-size: .8rem; color: var(--ink-soft); margin-top: .15rem; }

.values-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.values-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 0%, rgba(93,168,255,.25), transparent 55%);
}
.values-card h3 { color: var(--white); position: relative; margin-bottom: 1.4rem; }
.values-list { position: relative; display: flex; flex-direction: column; gap: 1.1rem; }
.values-list li { display: flex; gap: .8rem; align-items: flex-start; }
.values-list svg { width: 20px; height: 20px; flex: none; stroke: var(--hielo); margin-top: 2px; }
.values-list b { display: block; font-size: .92rem; color: var(--white); }
.values-list span { display: block; font-size: .84rem; color: rgba(255,255,255,.65); margin-top: .2rem; line-height: 1.5; }

/* ============================================================
   Ecosystem grid (7 units)
   ============================================================ */
.eco-diagram {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.units-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}
.unit-card {
  background: var(--white);
  border: 1px solid rgba(10,27,52,.07);
  border-radius: var(--radius-md);
  padding: 1.7rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  cursor: pointer;
}
.unit-card:hover, .unit-card.is-open {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.unit-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--navy), var(--navy-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.unit-icon svg { width: 24px; height: 24px; stroke: var(--hielo); }
.unit-index {
  font-family: var(--font-display);
  font-size: .75rem;
  color: var(--gris);
  letter-spacing: .1em;
}
.unit-card h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy);
  margin: .3rem 0 .5rem;
}
.unit-card > .unit-tagline { font-size: .88rem; color: var(--ink-soft); margin: 0; }
.unit-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.unit-more-inner { overflow: hidden; }
.unit-card.is-open .unit-more { grid-template-rows: 1fr; }
.unit-more-inner p {
  font-size: .85rem;
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px dashed rgba(10,27,52,.12);
}
.unit-more-inner .unit-sectors {
  font-size: .76rem;
  color: var(--azul);
  font-weight: 600;
  margin-top: .7rem;
}
.unit-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .76rem;
  font-weight: 700;
  color: var(--azul);
  margin-top: 1rem;
}
.unit-toggle-label svg { width: 13px; height: 13px; transition: transform .35s var(--ease); }
.unit-card.is-open .unit-toggle-label svg { transform: rotate(180deg); }

/* ============================================================
   Methodology
   ============================================================ */
.method-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}
.method-step {
  position: relative;
  padding: 1.8rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.method-step .step-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: rgba(29,78,216,.16);
  font-weight: 600;
  line-height: 1;
}
.method-step h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .98rem;
  color: var(--navy);
  margin: .8rem 0 .5rem;
}
.method-step p { font-size: .86rem; margin: 0; }
.method-connector {
  display: none;
}

.layers {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.layer-card {
  border-radius: var(--radius-md);
  padding: 1.8rem;
  border: 1px solid rgba(10,27,52,.08);
  background: var(--off-white);
}
.layer-card b.layer-label {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--azul);
  margin-bottom: .6rem;
}
.layer-card h4 { font-family: var(--font-body); font-size: 1.05rem; color: var(--navy); margin: 0 0 .6rem; }
.layer-card p { font-size: .9rem; margin: 0; }

/* ============================================================
   Why Astera / differentiators
   ============================================================ */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.diff-card {
  display: flex;
  gap: 1.1rem;
  padding: 1.7rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
}
.diff-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(93,168,255,.14);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.diff-icon svg { width: 22px; height: 22px; stroke: var(--hielo); }
.diff-card h4 { font-family: var(--font-body); color: var(--white); font-size: 1rem; margin: 0 0 .4rem; }
.diff-card p { margin: 0; font-size: .88rem; }

/* ============================================================
   Industries
   ============================================================ */
.industries-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}
.industry-pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.3rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(10,27,52,.08);
  box-shadow: var(--shadow-card);
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
}
.industry-pill svg { width: 17px; height: 17px; stroke: var(--azul); }

/* ============================================================
   CTA / contact
   ============================================================ */
.cta-section {
  background: var(--off-white);
}
.cta-box {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-soft) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: var(--white);
}
.cta-box::before {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  right: -180px; top: -180px;
  background: radial-gradient(circle, rgba(93,168,255,.22), transparent 70%);
}
.cta-box h2 { color: var(--white); position: relative; }
.cta-box p { position: relative; margin-top: 1rem; max-width: 460px; color: rgba(255,255,255,.72); }
.cta-actions { position: relative; display: flex; flex-direction: column; gap: 1rem; }
.cta-contact-line {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .92rem;
  color: rgba(255,255,255,.85);
}
.cta-contact-line svg { width: 18px; height: 18px; stroke: var(--hielo); flex: none; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.6);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo img { height: 34px; margin-bottom: 1rem; }
.footer-grid p { font-size: .88rem; color: rgba(255,255,255,.5); max-width: 320px; }
.footer-col h5 {
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin: 0 0 1.1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .7rem; }
.footer-col a { font-size: .88rem; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: repeat(2, 1fr); }
  .units-grid { grid-template-columns: repeat(2, 1fr); }
  .method-flow { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: 1fr; }
  .layers { grid-template-columns: 1fr; }
  .cta-box { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .market-grid { grid-template-columns: 1fr 1fr; }
  .units-grid { grid-template-columns: 1fr; }
  .method-flow { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
}
