/* ============================================
   GOOLAB — Sistema de diseño
   ============================================ */

:root {
  /* Colores de marca */
  --color-corporate: #141528;       /* De marca — texto y elementos oscuros */
  --color-accent-primary: #3B71ED;  /* Azul — protagonista */
  --color-accent-secondary: #6BE5EF;/* Verde/turquesa — secundario, uso mínimo */
  --color-bg-light: #EFEFEF;        /* Fondo claro principal */
  --color-bg-light-alt: #BDC9DE;    /* Fondo claro alterno */
  --color-white: #FFFFFF;

  /* Tipografía */
  --font-main: 'Mulish', system-ui, sans-serif;

  /* Espaciado */
  --space-nav: 20px;
  --radius-pill: 999px;

  /* Transiciones */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--color-corporate);
  background: var(--color-bg-light);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

section {
  min-height: 100vh;
  position: relative;
}

/* ============================================
   MENÚ FIJO
   ============================================ */

.nav-pill {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 44px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-pill);
  padding: 14px 14px 14px 28px;
  box-shadow: 0 4px 24px rgba(20, 21, 40, 0.08);
  transition: box-shadow 0.3s var(--ease-smooth), padding 0.3s var(--ease-smooth);
  width: max-content;
  max-width: calc(100% - 32px);
}

.nav-pill.is-scrolled {
  box-shadow: 0 8px 32px rgba(20, 21, 40, 0.14);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--color-corporate);
  flex-shrink: 0;
}

.nav-logo-mark { width: 26px; height: 26px; }

.nav-links {
  display: flex;
  gap: 32px;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}

.nav-links a {
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.nav-links a:hover { opacity: 1; }

.nav-contact {
  background: var(--color-accent-primary);
  color: var(--color-white);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: transform 0.2s var(--ease-smooth), box-shadow 0.2s var(--ease-smooth);
}

.nav-contact:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(59, 113, 237, 0.35);
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-corporate);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-smooth), opacity 0.3s var(--ease-smooth);
}

.nav-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-white);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  font-size: 24px;
  font-weight: 700;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s var(--ease-smooth), transform 0.35s var(--ease-smooth), visibility 0.35s;
}

.nav-mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-mobile-contact {
  background: var(--color-accent-primary);
  color: var(--color-white);
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-size: 18px;
}

/* ============================================
   MOMENTO 1 — HERO
   ============================================ */

.hero {
  background: var(--color-accent-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 150px 24px 0;
  overflow: hidden;
}

.hero-mark {
  position: absolute;
  top: -8%;
  right: -10%;
  width: 55vw;
  max-width: 700px;
  pointer-events: none;
}

.hero-mark svg { width: 100%; height: auto; }

.hero-content {
  max-width: 900px;
  z-index: 2;
}

.hero-title {
  color: var(--color-white);
  font-weight: 900;
  font-size: clamp(2rem, 5.2vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-title-rotator {
  position: relative;
  display: inline-block;
  height: 1em;
  min-width: 1em;
  font-size: 0.62em;
  font-weight: 800;
  color: var(--color-corporate);
  margin: 6px 0;
}

.rotator-word {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, 12px);
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.5s var(--ease-smooth), transform 0.5s var(--ease-smooth);
}

.rotator-word.is-active {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hero-scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 999px;
}

.hero-scroll-cue span {
  display: block;
  width: 4px;
  height: 8px;
  background: var(--color-white);
  border-radius: 999px;
  margin: 8px auto 0;
  animation: scrollCue 1.8s ease-in-out infinite;
}

@keyframes scrollCue {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(14px); opacity: 0; }
  61% { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ============================================
   Placeholders de momentos futuros
   ============================================ */

.transition-video { background: var(--color-accent-primary); }
.acto:nth-of-type(3) { background: var(--color-bg-light); }
.acto:nth-of-type(4) { background: var(--color-bg-light); }
.giro { background: var(--color-corporate); }
.clientes { background: var(--color-bg-light); }
.cierre { background: var(--color-corporate); }

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 720px) {
  .nav-links, .nav-contact { display: none; }
  .nav-burger { display: flex; }
  .nav-pill { padding: 10px 14px; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
