/* ==========================================================================
   Momentum Proyectos Creativos - hoja de estilos
   Orden: 1 tokens, 2 base, 3 componentes comunes, 4 secciones, 5 responsive
   Para cambiar colores o tipografia, edita solo la seccion 1.
   ========================================================================== */

/* 1. TOKENS ------------------------------------------------------------- */
:root {
  --bg-900: #0b0116;
  --bg-800: #120128;
  --bg-700: #1e0538;
  --purple-600: #400c61;
  --purple-500: #6a1b9a;
  --violet-400: #9b4dca;
  --magenta: #ff2e88;
  --pink: #ff6aa9;
  --text: #f4effa;
  --muted: #c4b8d6;
  --white: #ffffff;

  --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
  --weight-head: 600;

  --container: 1140px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 10vw, 7.5rem);
  --radius: 2px;
  --hairline: 1px solid rgba(255, 255, 255, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. BASE --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-800);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--white);
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); font-weight: var(--weight-head); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: var(--weight-head); max-width: 24ch; }
h3 { font-size: 1.125rem; font-weight: var(--weight-head); }
p { margin: 0 0 1rem; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
section { padding-block: var(--section-y); position: relative; }

/* 3. COMPONENTES COMUNES ------------------------------------------------- */
.eyebrow {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.75rem;
  border-radius: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bg-900);
  background: var(--white);
  border: 1px solid var(--white);
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--pink); border-color: var(--pink); color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .4); }
.btn--ghost:hover { background: transparent; border-color: var(--white); color: var(--white); }
.btn--small { padding: .55rem 1.1rem; font-size: .7rem; }
.btn--wa { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .4); }
.btn--wa:hover { background: var(--white); color: var(--bg-900); border-color: var(--white); }

/* 4. SECCIONES ----------------------------------------------------------- */

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(11, 1, 22, .92), rgba(11, 1, 22, .75));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__brand img { width: 150px; height: auto; }
.nav__menu { display: flex; align-items: center; gap: 2rem; }
.nav__menu a:not(.btn) {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.nav__menu a:not(.btn):hover { color: var(--white); }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--white); transition: transform .25s, opacity .25s; }

/* HERO */
.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(70% 60% at 80% 30%, rgba(64, 12, 97, .55), transparent 70%),
    var(--bg-900);
}
.hero__waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--violet-400);
  opacity: .22;
  z-index: -1;
}
.hero__wave-group { animation: drift 18s ease-in-out infinite alternate; transform-origin: center; }
@keyframes drift { from { transform: translateY(-14px); } to { transform: translateY(14px); } }
.hero__orb {
  display: none;
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--pink), var(--magenta) 45%, var(--purple-500) 100%);
  filter: blur(.5px);
  z-index: -1;
  animation: float 9s ease-in-out infinite alternate;
}
.hero__orb--1 { width: 70px; height: 70px; left: 8%; top: 14%; }
.hero__orb--2 { width: 26px; height: 26px; left: 62%; top: 30%; animation-delay: -3s; }
.hero__orb--3 { width: 16px; height: 16px; left: 30%; bottom: 18%; animation-delay: -6s; }
@keyframes float { from { transform: translate3d(0, -10px, 0); } to { transform: translate3d(0, 12px, 0); } }
.hero__content { max-width: 820px; padding-block: 5rem; }
.hero__content h1 { text-wrap: balance; margin-bottom: 1.5rem; }
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 400; color: var(--muted); max-width: 46ch; margin-inline: auto; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }
.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-head);
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 1.75rem;
}
.hero__scroll::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 1.25rem;
  background: var(--muted);
  animation: dip 1.6s ease-in-out infinite;
}
@keyframes dip { 50% { transform: translateY(6px); opacity: .4; } }

/* QUIENES SOMOS */
.intro { background: var(--bg-900); }
.intro__inner { max-width: 820px; }
.intro__text { font-size: 1.125rem; color: var(--muted); }
.tagline {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 0;
  margin-top: 2rem;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--white);
}
.tagline li + li::before { content: "/"; color: rgba(255, 255, 255, .3); font-weight: 400; margin-inline: .9rem; }

.section__lead { color: var(--muted); font-size: 1.125rem; max-width: 52ch; margin-top: -.25rem; }

/* SERVICIOS */
.servicios__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.servicio {
  padding: 1.75rem 0 0;
  border-top: var(--hairline);
  transition: border-color .3s;
}
.servicio:hover { border-top-color: var(--pink); }
.servicio__num {
  display: block;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .2em;
  line-height: 1;
  color: var(--pink);
  margin-bottom: 1.5rem;
}
.servicio p { color: var(--muted); margin: 0; font-size: 1rem; }

/* PORTAFOLIO */
.portafolio { background: var(--bg-900); }
.filtros { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 2.5rem; }
.filtro {
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: var(--hairline);
  border-radius: 0;
  padding: .55rem 1rem;
  cursor: pointer;
  transition: all .2s;
}
.filtro:hover, .filtro.is-active { color: var(--bg-900); border-color: var(--white); background: var(--white); }
.galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  grid-auto-flow: dense;
  gap: 4px;
}
.galeria figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-700);
}
.galeria figure.is-wide { grid-column: span 2; }
.galeria figure.is-hidden { display: none; }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.galeria figure:hover img { transform: scale(1.05); }
.galeria figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: .4rem .7rem;
  background: rgba(11, 1, 22, .8);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* CLIENTES */
.logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);   /* 18 logos = 3 filas de 6 */
  gap: 1px;
  margin-top: 3rem;
  background: rgba(255, 255, 255, .1);
  border: var(--hairline);
}
.logos li {
  display: grid;
  place-items: center;
  height: 104px;
  padding: 1.25rem 1.5rem;
  background: var(--bg-800);
}
.logos img {
  max-height: 36px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);   /* todos los logos en blanco */
  opacity: .7;
  transition: opacity .2s;
}
.logos li:hover img { opacity: 1; }
.logos__text { font-family: var(--font-head); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: rgba(255, 255, 255, .7); }

/* COBERTURA */
.cobertura { background: var(--bg-900); }
.cobertura__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.zonas { margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.zonas dt { font-family: var(--font-head); font-weight: 500; color: var(--pink); font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; }
.zonas dd { margin: .2rem 0 0; font-size: 1.125rem; }
.mapa { position: relative; }
.mapa img { width: 100%; filter: brightness(1.15) drop-shadow(0 20px 40px rgba(0, 0, 0, .5)); opacity: .9; }
.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -100%);
  display: flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--white);
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .8);
}
.pin i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: none;
  width: 8px;
  height: 8px;
}

/* NOSOTROS */
.equipo__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 3rem; max-width: 820px; }
.persona { text-align: left; padding: 1.75rem 0 0; border-top: var(--hairline); }
.persona img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 0 1.25rem; filter: grayscale(1); }
.persona p { color: var(--muted); font-size: 1rem; margin: 0; }

/* CONTACTO */
.contacto {
  background: var(--bg-800);
  border-top: var(--hairline);
  text-align: center;
}
.contacto__inner { max-width: 760px; }
.contacto h2 { margin-inline: auto; }
.contacto__lead { color: var(--muted); font-size: 1.125rem; }
.contacto__acciones { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin: 2rem 0; }
.contacto__datos { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; font-family: var(--font-head); font-weight: 500; font-size: .9rem; }
.contacto__datos a { border-bottom: 1px solid rgba(255, 255, 255, .3); padding-bottom: 2px; }
.contacto__datos a:hover { border-color: var(--white); }

/* FOOTER */
.footer { background: var(--bg-900); padding: 2rem 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer img { width: 130px; opacity: .8; }
.footer p { margin: 0; font-size: .875rem; color: var(--muted); }


/* DESTACADO (teaser silent party en la home) */
.destacado { background: var(--bg-900); }
.destacado__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.destacado__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* HERO CON FOTO (paginas interiores) */
.hero--photo { min-height: min(70svh, 720px); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; z-index: -1; }

/* USOS */
.usos { background: var(--bg-900); }
.usos__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; margin-top: 3rem; }
.uso { margin: 0; }
.uso img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 1.25rem; }
.uso h3 { margin-bottom: .5rem; }
.uso p { color: var(--muted); margin: 0; font-size: 1rem; }

/* PAQUETES */
.paquetes__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.paquetes .zonas dd { color: var(--muted); font-size: 1rem; }
.lista-paquetes { margin: 1.5rem 0; border-top: var(--hairline); }
.lista-paquetes li { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: var(--hairline); font-family: var(--font-head); }
.lista-paquetes span { color: var(--muted); font-family: var(--font-body); }

/* FAQ */
.faq { background: var(--bg-900); }
.faq__inner { max-width: 820px; }
.faq details { border-top: var(--hairline); padding: 1.1rem 0; }
.faq details:last-of-type { border-bottom: var(--hairline); }
.faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--pink); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: .9rem 0 0; }

/* 5. RESPONSIVE ---------------------------------------------------------- */
@media (max-width: 900px) {
  .galeria { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .cobertura__inner { grid-template-columns: 1fr; }
  .destacado__inner, .paquetes__inner { grid-template-columns: 1fr; gap: 2rem; }
  .usos__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav__toggle { display: flex; order: 3; }   /* siempre al extremo derecho */
  .nav__menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-900);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: 1rem var(--gutter) 1.5rem;
    display: none;
  }
  .nav__menu li { padding: .75rem 0; }
  .nav__menu.is-open { display: flex; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .galeria { grid-template-columns: 1fr; grid-auto-rows: 220px; gap: 4px; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .galeria figure.is-wide { grid-column: span 1; }
  .tagline li + li::before { margin-inline: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__wave-group, .hero__orb, .hero__scroll::before { animation: none; }
  .galeria img, .servicio, .btn { transition: none; }
}
