/* ============================================================
   CYBERM4XIMUS — Inspired by SpaceX
   Full-bleed paneles · Imágenes dramáticas · UPPERCASE · Negro absoluto
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  background: #000;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ============================================================
   NAVIGATION (estilo SpaceX: fijo, transparent, mayúsculas tight)
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 6vw;
  transition: background .35s ease, padding .25s ease;
  background: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0));
}
.nav.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 16px 6vw;
}

.nav-brand {
  display: flex; align-items: center;
  transition: transform .25s ease;
}
.nav-brand:hover { transform: scale(1.05); }
.nav-brand img {
  width: 96px; height: 96px;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 2px 16px rgba(255,255,255,0.2));
  transition: width .25s ease, height .25s ease;
}
.nav.scrolled .nav-brand img {
  width: 72px; height: 72px;
}

.footer-brand img {
  width: 110px; height: 110px;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 2px 18px rgba(255,255,255,0.15));
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 38px;
}
.nav-menu a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.85);
  transition: color .2s;
  position: relative;
  padding: 8px 0;
}
.nav-menu a:hover { color: #fff; }
.nav-menu a::after {
  content: ""; position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px; background: #fff;
  transition: right .3s ease;
}
.nav-menu a:hover::after { right: 0; }

.nav-toggle {
  display: none;
  background: none; border: 0;
  flex-direction: column; gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: #fff;
}

/* ============================================================
   PANEL — sección a pantalla completa con imagen de fondo
   ============================================================ */

.panel {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.panel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  animation: subtleZoom 16s ease-out forwards;
}

.panel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}
@keyframes subtleZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

.panel-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.85) 100%);
}
.panel-overlay-strong {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.92) 100%);
}

.panel-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 6vw 100px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.panel-content-bl { align-items: flex-start; text-align: left; }
.panel-content-br { align-items: flex-end;   text-align: right; }
.panel-content-center {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.panel-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  margin: 0 0 24px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}

.panel-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 28px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.panel-desc {
  max-width: 56ch;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
  margin: 0 0 32px;
}
.panel-desc-center { margin-left: auto; margin-right: auto; }

.panel-tags {
  list-style: none; padding: 0; margin: 0 0 36px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.panel-content-br .panel-tags { justify-content: flex-end; }
.panel-tags li {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.4);
  text-transform: uppercase;
  transition: all .2s;
}
.panel-tags li:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.panel-grid {
  list-style: none; padding: 0;
  margin: 0 0 36px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 30px;
  max-width: 600px;
}
.panel-grid li {
  border-top: 1px solid rgba(255,255,255,0.3);
  padding: 14px 0;
}
.panel-grid strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.panel-grid span {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}

/* "Learn more +" link estilo SpaceX */
.more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.7);
  transition: border-color .2s, color .2s, gap .25s;
}
.more span {
  display: inline-block;
  width: 18px; height: 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  font-size: 0.7rem;
  font-weight: 400;
  transition: background .2s, color .2s;
}
.more:hover {
  border-color: #fff;
  gap: 18px;
}
.more:hover span { background: #fff; color: #000; }

/* ============================================================
   HERO específico
   ============================================================ */

#hero .panel-content { justify-content: center; }

.hero-title {
  font-size: clamp(3rem, 9vw, 9rem);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  font-weight: 900;
}
.hero-title .four {
  color: rgba(255,255,255,0.6);
  font-style: italic;
  font-weight: 500;
}
.hero-tag {
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.8);
  margin: 0;
  text-transform: uppercase;
}

.panel-foot {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}
.scroll-down {
  display: block;
  width: 24px; height: 38px;
  border: 1.5px solid rgba(255,255,255,0.8);
  border-radius: 14px;
  position: relative;
}
.scroll-down span {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 8px;
  background: #fff;
  border-radius: 2px;
  animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { opacity: 1; top: 6px; }
  50%  { opacity: 1; top: 18px; }
  100% { opacity: 0; top: 18px; }
}

/* ============================================================
   CONTACTO
   ============================================================ */

.panel-contact .panel-content {
  justify-content: center;
  max-width: 760px;
}

.contact-form {
  width: 100%;
  display: grid;
  gap: 14px;
  margin: 32px 0 28px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form input,
.contact-form textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 16px 18px;
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  border-radius: 0;
  width: 100%;
  transition: border-color .2s, background .2s;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  letter-spacing: 0.18em;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255,255,255,0.07);
}
.contact-form button {
  background: #fff;
  color: #000;
  border: 0;
  padding: 18px 32px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  justify-self: center;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: background .2s, color .2s, gap .25s;
}
.contact-form button:hover {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  padding: 17px 31px;
  gap: 18px;
}
.contact-form button span {
  display: inline-block;
  width: 18px; height: 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  font-weight: 400;
  font-size: 0.7rem;
}
.form-ok {
  text-align: center;
  color: #4ade80;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  margin: 6px 0 0;
}

.contact-direct {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.7);
  margin: 16px 0 0;
  text-align: center;
}
.contact-direct a {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 2px;
}
.contact-direct a:hover { border-color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: #000;
  padding: 60px 6vw 30px;
  position: relative;
  z-index: 5;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-row {
  max-width: 1400px;
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}
.footer-brand {
  display: flex; align-items: center;
  transition: transform .25s ease;
}
.footer-brand:hover { transform: scale(1.05); }
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.6);
  transition: color .2s;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { margin: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  .nav-menu { gap: 22px; }
  .nav-menu a { font-size: 0.7rem; letter-spacing: 0.14em; }
}

@media (max-width: 900px) {
  html { scroll-snap-type: none; }
  .panel { min-height: 100vh; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(0,0,0,0.97);
    padding: 12px 6vw 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    width: 100%;
    font-size: 0.85rem;
  }
  .nav-menu a:last-child { border-bottom: 0; }
  .nav-toggle { display: flex; }

  .form-row { grid-template-columns: 1fr; }
  .panel-grid { grid-template-columns: 1fr; }
  .panel-content-br { align-items: flex-start; text-align: left; }
  .panel-content-br .panel-tags { justify-content: flex-start; }
  .panel-content { padding: 110px 6vw 90px; }
}

@media (max-width: 500px) {
  .panel-eyebrow { font-size: 0.72rem; letter-spacing: 0.24em; }
  .hero-tag { letter-spacing: 0.28em; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   REVEAL
   ============================================================ */

.panel-content > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s ease, transform .9s ease;
}
.panel.in .panel-content > *        { opacity: 1; transform: none; }
.panel.in .panel-content > *:nth-child(1) { transition-delay: .05s; }
.panel.in .panel-content > *:nth-child(2) { transition-delay: .15s; }
.panel.in .panel-content > *:nth-child(3) { transition-delay: .25s; }
.panel.in .panel-content > *:nth-child(4) { transition-delay: .35s; }
.panel.in .panel-content > *:nth-child(5) { transition-delay: .45s; }
.panel.in .panel-content > *:nth-child(6) { transition-delay: .55s; }
