/* ═══════════════════════════════════════════
   BATERIAS MAY — layout.css
   Nav, secciones, container, grid, footer
   ═══════════════════════════════════════════ */

/* ── Canvas 3D fijo + vignette ── */
#scene-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 40%, transparent 40%, rgba(12, 10, 5, 0.75) 100%),
    linear-gradient(180deg, rgba(12, 10, 5, 0.55) 0%, transparent 18%, transparent 82%, rgba(12, 10, 5, 0.7) 100%);
}

/* ── Barra de progreso ── */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  z-index: 200;
  box-shadow: 0 0 12px rgba(255, 214, 0, 0.5);
}

/* ── Container ── */
.wrap {
  width: min(1180px, 100% - 2 * var(--pad));
  margin-inline: auto;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(12, 10, 5, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--bg);
  font-size: 1.3rem;
  border-radius: var(--radius);
}

.brand-name {
  font-family: var(--f-disp);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
}

.brand-name em {
  font-style: normal;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--f-mono);
  font-size: var(--fs-kicker);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cream-dim);
  transition: color 0.3s var(--ease);
}

.nav-links a:hover {
  color: var(--gold);
}

/* ── Menú móvil ── */
.ham {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem;
}

.ham span {
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.ham[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.ham[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.ham[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mob-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(12, 10, 5, 0.96);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.mob-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mob-menu > a:not(.btn) {
  font-family: var(--f-disp);
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--cream);
}

.mob-menu > a:not(.btn):hover {
  color: var(--gold);
}

/* ── Secciones ── */
section {
  position: relative;
  padding-block: var(--sect);
}

.kicker {
  font-family: var(--f-mono);
  font-size: var(--fs-kicker);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.kicker::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--gold);
}

h1, h2, h3 {
  font-family: var(--f-disp);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

h2 {
  font-size: var(--fs-h2);
  margin-bottom: 1.2rem;
}

h2 em, h1 em {
  font-style: normal;
  color: var(--gold);
}

.lead {
  color: var(--cream-dim);
  max-width: 56ch;
}

/* ── Hero ── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 6rem;
}

.hero h1 {
  font-size: var(--fs-hero);
  max-width: 11ch;
  margin-bottom: 1.6rem;
}

.hero .lead {
  margin-bottom: 2.2rem;
}

.hero .lead strong {
  color: var(--cream);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-mono);
  font-size: var(--fs-kicker);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  width: fit-content;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wa);
}

.hero-meta {
  font-family: var(--f-mono);
  font-size: var(--fs-kicker);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-faint);
  margin-top: 1.1rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: clamp(1.5rem, 5vw, 4rem);
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  width: fit-content;
}

.stat b {
  display: block;
  font-family: var(--f-disp);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--gold);
  line-height: 1;
}

.stat span {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cream-faint);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-hint::after {
  content: '';
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--gold), transparent);
}

/* ── Secciones split ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.split.rev > .split-text {
  order: 2;
}

.split-visual {
  min-height: 320px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.split-visual .big-glyph {
  font-size: clamp(5rem, 10vw, 9rem);
  color: var(--gold-dim);
  line-height: 1;
}

.split-text .lead {
  margin-bottom: 1.6rem;
}

.split-list li {
  display: flex;
  gap: 0.8rem;
  padding: 0.55rem 0;
  color: var(--cream-dim);
  border-bottom: 1px solid var(--border-soft);
}

.split-list li::before {
  content: '+';
  color: var(--gold);
  font-family: var(--f-mono);
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(12, 10, 5, 0.85);
  backdrop-filter: blur(12px);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-grid h4 {
  font-family: var(--f-mono);
  font-size: var(--fs-kicker);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 400;
}

.footer-grid li {
  margin-bottom: 0.6rem;
}

.footer-grid a, .footer-grid p {
  color: var(--cream-faint);
  font-size: 0.9rem;
  transition: color 0.3s var(--ease);
}

.footer-grid a:hover {
  color: var(--gold);
}

.footer-bar {
  border-top: 1px solid var(--border-soft);
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .ham {
    display: flex;
  }

  /* Sin escena 3D en móvil: ahorro de datos y batería */
  #scene-canvas {
    display: none;
  }

  body {
    background:
      radial-gradient(ellipse 100% 60% at 50% 0%, rgba(255, 214, 0, 0.06), transparent 60%),
      var(--bg);
  }

  .split,
  .split.rev {
    grid-template-columns: 1fr;
  }

  .split.rev > .split-text {
    order: 0;
  }

  .hero-stats {
    grid-template-columns: repeat(2, auto);
    gap: 1.6rem 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .hero h1 {
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bar {
    flex-direction: column;
  }
}
