/* ══════════════════════════════════════════════════════
   LOVIT — style.css v2
   Sora · #0000ff · blanco · negro
══════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────── */
:root {
  --blue:      #0000ff;
  --blue-dim:  rgba(0,0,255,0.08);
  --white:     #ffffff;
  --black:     #080808;
  --gray:      #777777;
  --gray-lt:   #efefef;
  --font:      'Sora', sans-serif;
  --nav-h:     68px;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; object-fit: cover; }
button { cursor: none; }

/* Imágenes de fondo/contenido que sí deben llenar su contenedor */
.grid-item__bg,
.work-item__bg,
.team-member__img,
.single-cover__img,
.gallery-item,
.about-img__inner img { width: 100%; height: 100%; }

/* ══════════════════════════════════════════════════════
   LOADER — fondo blanco, solo barra azul
══════════════════════════════════════════════════════ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 32px;
}
.loader__logo { display: none; }
.loader__letter { display: none; }

.loader__bar-wrap {
  width: 160px;
  height: 1px;
  background: rgba(0,0,0,0.1);
  overflow: hidden;
}
.loader__bar {
  height: 100%;
  background: var(--blue);
  width: 0%;
  animation: loaderBar 1.1s var(--ease) 0.2s forwards;
}

@keyframes loaderUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes loaderBar {
  to { width: 100%; }
}

#loader.done {
  animation: loaderOut 0.7s var(--ease) forwards;
}
@keyframes loaderOut {
  to { opacity: 0; pointer-events: none; }
}

/* ══════════════════════════════════════════════════════
   CURSOR
══════════════════════════════════════════════════════ */
#cursor-dot, #cursor-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
}
#cursor-dot {
  width: 6px; height: 6px;
  background: var(--blue);
  transition: width 0.2s, height 0.2s, background 0.2s;
}
#cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(0,0,255,0.4);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), border-color 0.2s, opacity 0.3s;
}
body.cursor-hover #cursor-dot { width: 10px; height: 10px; }
body.cursor-hover #cursor-ring { width: 56px; height: 56px; border-color: var(--blue); }
body.cursor-click #cursor-dot { background: var(--black); }
body.cursor-dark #cursor-dot { background: var(--white); }
body.cursor-dark #cursor-ring { border-color: rgba(255,255,255,0.5); }

/* ══════════════════════════════════════════════════════
   LOGO FIJO
══════════════════════════════════════════════════════ */
.logo-fixed {
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo-fixed img { display: block; }

/* ══════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 50px 28px 0;
  z-index: 990;
  /* Sin background — transparente siempre */
}

/* Logo centrado */
.nav__logo {
  display: flex;
  justify-content: center;
  align-items: center;
}
.nav__logo img {
  height: 54px;
  width: auto;
  display: block;
}

/* Links izquierda */
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  justify-content: flex-start;
}
.nav__link {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--white);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  height: 1px; width: 0;
  background: var(--white);
  transition: width 0.4s var(--ease);
}
.nav__link:hover::after { width: 100%; }
.nav__link.active { color: var(--white); }
.nav__link.active::after { width: 100%; }

/* Derecha: contacto + burger */
.nav__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

/* Botón Contacto — outline blanco, igual que Ver Trabajo */
.nav__cta {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.7);
  padding: 9px 20px;
  border-radius: 1px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
  cursor: none;
}
.nav__cta:hover {
  background: var(--white);
  color: var(--blue);
}

/* Cuando el nav está sobre fondo claro (páginas interiores) */
.nav--light .nav__link { color: var(--black); }
.nav--light .nav__link::after { background: var(--blue); }
.nav--light .nav__cta {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}
.nav--light .nav__cta:hover { background: #0000cc; }

/* ── Burger ──────────────────────────────────────────── */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 6px;
  cursor: none;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.2s;
  transform-origin: center;
}
.nav__burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Mobile menu ─────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--blue);
  z-index: 980;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.mobile-menu a {
  font-size: clamp(36px, 10vw, 64px);
  font-weight: 200;
  letter-spacing: -0.03em;
  color: var(--white);
  transition: opacity 0.2s;
}
.mobile-menu a:hover { opacity: 0.7; }

/* ══════════════════════════════════════════════════════
   MARQUEE
══════════════════════════════════════════════════════ */
.marquee {
  overflow: hidden;
  background: var(--blue);
  padding: 13px 0;
}
.marquee__track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}
.marquee__track span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
}
.marquee__track--rev { animation-direction: reverse; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════════
   BOTONES
══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 1px;
  transition: all 0.25s var(--ease);
  cursor: none;
}
.btn--outline {
  border: 1px solid var(--blue);
  color: var(--blue);
  background: transparent;
}
.btn--outline:hover {
  background: var(--blue);
  color: var(--white);
}
.btn--solid {
  background: var(--blue);
  color: var(--white);
  border: 1px solid var(--blue);
}
.btn--solid:hover { background: #0000cc; }
.btn--white {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--white);
}
.btn--white:hover { background: var(--gray-lt); }
.btn--outline-white {
  border: 1px solid rgba(255,255,255,0.7);
  color: var(--white);
  background: transparent;
}
.btn--outline-white:hover {
  background: var(--white);
  color: var(--blue);
}

/* ══════════════════════════════════════════════════════
   SECTION UTILS
══════════════════════════════════════════════════════ */
.section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: none;
  padding-bottom: 14px;
  margin-bottom: 40px;
}
.section-link {
  font-size: 12px;
  font-weight: 300;
  color: var(--blue);
  transition: letter-spacing 0.3s;
}
.section-link:hover { letter-spacing: 0.06em; }

/* ══════════════════════════════════════════════════════
   PRE-FOOTER — azul sólido
══════════════════════════════════════════════════════ */
.prefooter {
  background: var(--blue);
  padding: 100px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prefooter__center {
  text-align: center;
}
.prefooter__headline {
  font-size: clamp(32px, 6vw, 80px);
  font-weight: 200;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 40px;
}
.prefooter__headline strong {
  font-weight: 700;
  display: block;
}

/* ══════════════════════════════════════════════════════
   FOOTER — azul, 5 columnas centradas
══════════════════════════════════════════════════════ */
.footer {
  background: var(--blue);
  color: var(--white);
  padding: 0 28px;
  border-top: 0.5px solid rgba(255,255,255,0.12);
}
.footer__top {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 64px 0 48px;
  border-bottom: 0.5px solid rgba(255,255,255,0.12);
}
.footer__col {
  padding: 0 24px;
  border-right: 0.5px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer__col:last-child { border-right: none; }
.footer__col--brand { align-items: center; }

.footer__logo {
  display: block;
  margin-bottom: 16px;
  width: 60%;
  max-width: 180px;
  min-width: 80px;
  height: auto;
}
.footer__tagline {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  text-align: center;
}
.footer__col-title {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 18px;
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.footer__col li {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
}
.footer__col a {
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--white); }

.footer__bottom {
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer__legal {
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.02em;
}

/* ── Responsive footer ────────────────────────────────── */
@media (max-width: 900px) {
  .footer__top {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 0;
  }
  .footer__col:nth-child(3) { border-right: none; }
  .footer__col:nth-child(4) { border-top: 0.5px solid rgba(255,255,255,0.12); }
  .footer__col:nth-child(5) { border-right: none; border-top: 0.5px solid rgba(255,255,255,0.12); }
}
@media (max-width: 600px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__col { border-right: none; border-bottom: 0.5px solid rgba(255,255,255,0.1); padding: 20px 12px; }
}

/* ══════════════════════════════════════════════════════
   REVEAL ON SCROLL
══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ══════════════════════════════════════════════════════
   ANIMACIÓN BASE
══════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ══════════════════════════════════════════════════════
   PAGE HERO (work, nosotros)
══════════════════════════════════════════════════════ */
.page-hero {
  padding: calc(var(--nav-h) + 64px) 28px 40px;
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
}
.page-hero__eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}
.page-hero__title {
  font-size: clamp(72px, 13vw, 180px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.88;
  color: var(--black);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.3s forwards;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Nav mobile: logo izq, burger der, nada en medio */
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 20px 0;
    height: auto;
  }
  .nav__links { display: none !important; }
  .nav__logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
  }
  .nav__logo img { height: 16px; width: auto; }
  .nav__right {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
  }
  .nav__right .nav__cta { display: none !important; }
  .nav__burger { display: flex !important; }
  body { cursor: auto; }
  #cursor-dot, #cursor-ring { display: none; }
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .footer__cols { gap: 28px; flex-wrap: wrap; }
  .footer__bottom { flex-direction: column; text-align: center; }
}