/* ==========================================================================
   Ganboa Jewellery — Boceto C · El Manifiesto
   Paleta: crema #fffbf2 · terracota #9c4023 (adaptación del rojo de Septiembre)
   Tipografía: Gilda Display (display) + Archivo (cuerpo)
   ========================================================================== */

:root {
  --crema: #fffbf2;
  --terracota: #9c4023;
  --terracota-suave: #b8552f;
  --sombra: rgba(28, 16, 8, 0.14);
}

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

html {
  scroll-behavior: auto; /* Lenis gestiona el scroll suave, nunca CSS smooth */
}

body {
  background: var(--crema);
  color: var(--terracota);
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

h1, h2, h3 {
  font-family: 'Gilda Display', serif;
  font-weight: 400;
  line-height: 1.05;
}

.bn {
  filter: grayscale(1);
}

/* ---------- Aviso de boceto ---------- */

.boceto-flag {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--terracota);
  color: var(--crema);
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.75rem;
  font-family: 'Archivo', sans-serif;
}

/* ---------- Nav fija ---------- */

.nav-fija {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(255, 251, 242, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.nav-mark {
  font-family: 'Gilda Display', serif;
  font-size: 1.15rem;
  color: var(--terracota);
}

.nav-links {
  display: none;
  gap: 1.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

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

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

@media (min-width: 901px) {
  .nav-links {
    display: flex;
  }
}

/* ==========================================================================
   1 · HERO — wordmark + ventana-media + collage-disperso
   Mobile-first: apilado y estático. Desktop: absoluto, pinado, mix-blend.
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 7rem 1.25rem 4rem;
  text-align: center;
  overflow: hidden;
  /* mix-blend-mode del wordmark necesita un fondo PINTADO en su propio contexto de
     apilamiento para mezclar contra el color correcto — si no, mezcla contra negro
     y el texto crema queda invisible (crema sobre crema). */
  background: var(--crema);
  isolation: isolate;
}

.wordmark {
  position: static;
  font-size: clamp(3rem, 15vw, 5.5rem);
  color: var(--terracota);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.w-letra {
  display: inline-block;
}

.hero-ventana {
  position: static;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px var(--sombra);
}

.hero-ventana img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-collage {
  position: static;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  width: 100%;
  max-width: 380px;
}

.satelite {
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.satelite img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-tagline {
  font-family: 'Gilda Display', serif;
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.scroll-cue {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.55;
}

@media (min-width: 901px) {
  .hero {
    height: 100svh;
    padding: 0;
    gap: 0;
  }

  .wordmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(6rem, 16vw, 13rem);
    color: var(--crema);
    mix-blend-mode: difference;
    z-index: 5;
    pointer-events: none;
  }

  .hero-ventana {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 23vw;
    max-width: 340px;
    height: 64vh;
    aspect-ratio: auto;
    z-index: 2;
  }

  .hero-collage {
    position: absolute;
    inset: 0;
    display: block;
    max-width: none;
  }

  .satelite {
    position: absolute;
    z-index: 1;
    box-shadow: 0 20px 50px -20px var(--sombra);
  }

  .sat-1 {
    width: 15vw;
    max-width: 220px;
    aspect-ratio: 4 / 5;
    top: 12%;
    left: 8%;
  }

  .sat-2 {
    width: 12vw;
    max-width: 180px;
    aspect-ratio: 1 / 1;
    top: 18%;
    right: 10%;
  }

  .sat-3 {
    width: 13vw;
    max-width: 190px;
    aspect-ratio: 5 / 6;
    bottom: 10%;
    left: 14%;
  }

  .sat-4 {
    width: 14vw;
    max-width: 210px;
    aspect-ratio: 4 / 5;
    bottom: 8%;
    right: 16%;
  }

  .hero-tagline {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    white-space: nowrap;
  }

  .scroll-cue {
    position: absolute;
    bottom: 3%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
  }
}

/* ==========================================================================
   2/3 · QUIENES / DIFERENCIALES — manifiesto pinado, revelado por scroll
   ========================================================================== */

section[data-rol="quienes"],
section[data-rol="diferenciales"] {
  position: relative;
}

.manifiesto-pin {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem;
  gap: 2.5rem;
}

.manifiesto-texto {
  max-width: 46rem;
  font-family: 'Gilda Display', serif;
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  line-height: 1.35;
  text-align: center;
}

.manifiesto-texto .word {
  display: inline-block;
}

.invertida {
  background: var(--terracota);
  color: var(--crema);
}

.valores-foto {
  width: 100%;
  max-width: 20rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.valores-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   4 · OBRA — índice numerado (lista-numerada, CSS counters)
   ========================================================================== */

section[data-rol="obra"] {
  padding: 6rem 1.5rem 7rem;
  max-width: 56rem;
  margin: 0 auto;
}

.section-kicker {
  font-family: 'Archivo', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 3rem;
  text-align: center;
}

.lista-numerada {
  list-style: none;
  border-top: 1px solid currentColor;
}

.lista-numerada li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: baseline;
  padding: 2.25rem 0;
  border-bottom: 1px solid currentColor;
  opacity: 0.9;
}

.num {
  font-family: 'Gilda Display', serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  opacity: 0.5;
}

.lista-contenido h3 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  margin-bottom: 0.6rem;
}

.lista-contenido p {
  max-width: 34rem;
  font-size: 1rem;
  opacity: 0.85;
}

/* ==========================================================================
   5 · DIFERENCIALES — carrusel horizontal pinado (5 conceptos)
   Mobile: scroll nativo con snap. Desktop: pin + transform translateX (JS).
   ========================================================================== */

.carril-seccion {
  position: relative;
  padding-top: 4rem;
}

.section-kicker--carril {
  padding: 0 1.5rem;
}

.carril-pin {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 2rem;
}

.carril-track {
  display: flex;
  gap: 1rem;
  padding: 0 1.25rem;
  width: max-content;
}

.concepto {
  scroll-snap-align: start;
  width: 84vw;
  max-width: 22rem;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.concepto-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.concepto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.concepto-num {
  font-family: 'Gilda Display', serif;
  font-size: 0.95rem;
  opacity: 0.55;
  display: block;
  margin-bottom: 0.35rem;
}

.concepto-texto h3 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 0.6rem;
}

.concepto-texto p {
  font-size: 0.95rem;
  opacity: 0.85;
}

.concepto-texto em {
  font-style: italic;
}

.carril-nav {
  display: none;
}

@media (min-width: 901px) {
  .carril-seccion {
    padding-top: 0;
  }

  .section-kicker--carril {
    padding: 0 4rem;
    margin-bottom: 2rem;
  }

  /* Carril horizontal en escritorio: se queda como scroll NATIVO con scroll-snap
     (igual que en móvil, solo que con tarjetas más grandes) — no pinado por
     ScrollTrigger. Un pin de segundo nivel detrás de otros dos pines (hero +
     manifiestos) desincronizaba sus posiciones en producción (bug real, cazado
     por el jurado F4: el trigger calculaba 1620px por delante de la posición
     real del DOM). Un carrusel nativo no puede desincronizarse nunca — es la
     misma mecánica "carrusel-horizontal" del NORTE, con la variante de coste
     más baja y más fiable en vez de la más cara y más frágil.*/
  .carril-pin {
    padding-bottom: 1.5rem;
  }

  .carril-track {
    padding: 0 4rem;
    gap: 2.5rem;
  }

  .concepto {
    width: 30vw;
    max-width: 26rem;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }

  .concepto-img {
    width: 55%;
    aspect-ratio: 3 / 4;
  }

  .carril-nav {
    display: flex;
    flex-direction: row;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 1.5rem;
  }

  .carril-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    border: 1px solid var(--terracota);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
  }

  .carril-dot.is-activo {
    background: var(--terracota);
    transform: scale(1.3);
  }
}

/* ==========================================================================
   6 · QUIENES (cierre) — retrato + reseñas + contacto + footer
   ========================================================================== */

section#cierre {
  padding: 6rem 1.5rem 5rem;
}

.cierre-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 68rem;
  margin: 0 auto;
}

.cierre-retrato {
  width: 100%;
  max-width: 26rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin: 0 auto;
}

.cierre-retrato img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cierre-texto h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}

.cierre-texto > p {
  max-width: 34rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.resenas {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid currentColor;
}

.resenas blockquote {
  max-width: 32rem;
}

.resenas p {
  font-family: 'Gilda Display', serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.resenas cite {
  font-style: normal;
  font-size: 0.8rem;
  opacity: 0.65;
  letter-spacing: 0.02em;
}

.contacto-datos {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.contacto-datos a {
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.contacto-datos a:hover {
  border-color: currentColor;
}

.cta-whatsapp {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  border: 1px solid var(--terracota);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: background 0.25s ease, color 0.25s ease;
}

.cta-whatsapp:hover {
  background: var(--terracota);
  color: var(--crema);
}

.footer {
  max-width: 68rem;
  margin: 5rem auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid currentColor;
  font-size: 0.8rem;
  opacity: 0.7;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-bottom: 3rem;
}

@media (min-width: 901px) {
  .cierre-grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 4.5rem;
  }

  .cierre-retrato {
    margin: 0;
  }
}

/* ---------- Reduced motion ---------- */

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