/* Landing — rebuild limpio, sin solapamientos */

:root {
  --bg: #05070a;
  --panel: rgba(7, 12, 18, 0.88);
  --gold: #d6a332;
  --gold-soft: #f2c14e;
  --white: #ffffff;
  --muted: #b8c0cc;
  --line: rgba(214, 163, 50, 0.35);
  --header-h: 120px;
  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body.landing-body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

.landing-body a {
  color: inherit;
  text-decoration: none;
}

/* ─── Header ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  background: rgba(5, 7, 10, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.site-header__brand-link {
  display: block;
  line-height: 0;
}

.site-header__logo-mxaib {
  display: block;
  height: 104px;
  width: auto;
  object-fit: contain;
}

.site-header__brand-sep {
  width: 1px;
  height: 72px;
  background: var(--line);
  flex-shrink: 0;
}

.site-header__logo-onko {
  display: block;
  height: 42px;
  width: auto;
  object-fit: contain;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.75rem);
}

.site-header__nav a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s;
}

.site-header__nav a:hover {
  color: var(--gold-soft);
}

.site-header__cta {
  padding: 0.6rem 1.25rem;
  background: var(--gold);
  color: var(--bg) !important;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.site-header__cta:hover {
  background: var(--gold-soft);
}

/* ─── Shell + Hero (flex, sin absolute overlap) ─── */
.landing-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg) url("../img/almacen-hero-bg.png") center right / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(5, 7, 10, 0.98) 0%,
    rgba(5, 7, 10, 0.88) 36%,
    rgba(5, 7, 10, 0.38) 68%,
    rgba(5, 7, 10, 0.18) 100%
  );
  pointer-events: none;
}

.hero-main {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: calc(var(--header-h) + 2rem) clamp(1.5rem, 5vw, 4rem) 3rem;
}

.hero-content {
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title span {
  display: block;
}

.hero-title__white {
  color: var(--white);
}

.hero-title__gold {
  color: var(--gold);
}

.hero-lead {
  max-width: 540px;
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-soft);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

/* ─── Footer / franja inferior (flujo normal, NO absolute) ─── */
.site-footer {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  background: var(--panel);
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--header-h);
}

.site-footer__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: 1.5rem clamp(1.5rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.footer-logo {
  display: block;
  object-fit: contain;
  opacity: 0.95;
}

.footer-logo--mxaib {
  height: 48px;
  width: auto;
}

.footer-logo--onko {
  height: 32px;
  width: auto;
}

.footer-logo--aegis {
  height: 68px;
  width: auto;
}

.footer-logo-sep {
  width: 1px;
  height: 36px;
  background: var(--line);
  flex-shrink: 0;
}

.site-footer__kickers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1400px;
  margin: 0 auto;
}

.kicker {
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--line);
}

.kicker:last-child {
  border-right: none;
}

.kicker h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 0.35rem;
}

.kicker p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .site-footer__kickers {
    grid-template-columns: repeat(2, 1fr);
  }

  .kicker:nth-child(2) {
    border-right: none;
  }

  .kicker:nth-child(1),
  .kicker:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .kicker:nth-child(3) {
    border-right: 1px solid var(--line);
  }
}

@media (max-width: 768px) {
  .site-header {
    height: auto;
    flex-wrap: wrap;
    padding-top: 1rem;
    padding-bottom: 1rem;
    gap: 1rem;
  }

  .site-header__logo-mxaib {
    height: 72px;
  }

  .site-header__brand-sep {
    height: 52px;
  }

  .site-header__logo-onko {
    height: 30px;
  }

  .site-header__nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero-main {
    align-items: flex-end;
    padding-bottom: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .footer-logo-sep {
    display: none;
  }

  .site-footer__logos {
    gap: 1.25rem;
  }
}

@media (max-width: 520px) {
  .site-header__logo-mxaib {
    height: 56px;
  }

  .site-header__brand-sep {
    height: 40px;
  }

  .site-header__logo-onko {
    height: 24px;
  }

  .site-header__nav a:not(.site-header__cta) {
    display: none;
  }

  .site-footer__kickers {
    grid-template-columns: 1fr;
  }

  .kicker {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .kicker:last-child {
    border-bottom: none;
  }

  .footer-logo--mxaib {
    height: 38px;
  }

  .footer-logo--onko {
    height: 22px;
  }

  .footer-logo--aegis {
    height: 44px;
  }
}
