/* ============================================================
   DIEZ BOTONES — tinta sobre marfil
   ============================================================ */

:root {
  --marfil: #f4f1ea;
  --marfil-2: #ece7dc;
  --tinta: #17140f;
  --gris: #6f675a;
  --rojo: #a4271c;
  --linea: rgba(23, 20, 15, 0.14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: auto;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  background: var(--marfil);
  color: var(--tinta);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* grain */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 200;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

em {
  font-style: italic;
  font-weight: 300;
}

.red {
  color: var(--rojo);
}

/* ---------- cursor ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--tinta);
  pointer-events: none;
  z-index: 300;
  transition: transform 0.35s var(--ease), background 0.35s;
}

.cursor.is-hover {
  transform: scale(4);
  background: var(--rojo);
  mix-blend-mode: multiply;
}

@media (hover: none) {
  .cursor {
    display: none;
  }
}

/* ---------- preloader ---------- */
.preloader {
  display: none; /* solo visible con JS activo */
}

.js .preloader {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--marfil);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader__mark {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 300;
}

.preloader__num {
  position: absolute;
  bottom: 5vh;
  right: 5vw;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
}

/* ---------- header ---------- */
.head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 3rem;
  /* difference sobre marfil = tinta; sobre la sección oscura = marfil */
  mix-blend-mode: difference;
  color: var(--marfil);
  transition: transform 0.9s var(--ease);
}

.js .head {
  transform: translateY(-110%);
}

.js .head.is-in {
  transform: translateY(0);
}

.head__mark {
  font-size: 1.05rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
}

.head__nav {
  display: flex;
  gap: 2.2rem;
}

.head__nav a,
.head__cta {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.head__nav a {
  position: relative;
  opacity: 0.75;
  transition: opacity 0.3s;
}

.head__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.head__nav a:hover {
  opacity: 1;
}

.head__nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.head__cta {
  border: 1px solid currentColor;
  border-radius: 99px;
  padding: 0.7em 1.6em;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

.head__cta:hover {
  background: var(--marfil);
  color: var(--tinta);
}

@media (max-width: 800px) {
  .head {
    padding: 1.2rem 1.4rem;
  }
  .head__nav {
    display: none;
  }
}

/* ---------- section label ---------- */
.section-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gris);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::before {
  content: "";
  width: 3rem;
  height: 1px;
  background: var(--linea);
}

.section-label--light {
  color: rgba(244, 241, 234, 0.8);
}

.section-label--light::before {
  background: rgba(244, 241, 234, 0.4);
}

/* ---------- reveal helpers (estados ocultos solo con JS) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(2.2rem);
}

.mline,
.line {
  display: block;
  overflow: hidden;
}

.mline > .mline__in,
.line > .line__in {
  display: inline-block;
}

.js .mline > .mline__in,
.js .line > .line__in {
  transform: translateY(115%);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__silk {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero__sketch {
  position: absolute;
  right: 2vw;
  bottom: -4vh;
  width: min(42vw, 520px);
  z-index: 1;
  mix-blend-mode: multiply;
  opacity: 0.9;
  pointer-events: none;
  will-change: transform;
}

.hero__sketch img {
  height: auto;
  object-fit: contain;
}

.js .hero__sketch {
  opacity: 0;
}

@media (max-width: 800px) {
  .hero__sketch {
    width: 68vw;
    right: -8vw;
    bottom: 6vh;
    opacity: 0.55;
  }
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 3rem;
}

.hero__eyebrow {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 3rem;
}

.hero__title {
  font-size: clamp(3rem, 17vw, 15rem);
  line-height: 0.92;
  font-weight: 300;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.line--indent {
  padding-left: 0.9em;
}

.hero__ast {
  font-size: 0.22em;
  vertical-align: 2.2em;
  color: var(--rojo);
  font-style: italic;
}

.hero__foot {
  margin-top: 3.2rem;
  max-width: 32ch;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-style: italic;
  color: rgba(23, 20, 15, 0.82);
}

.hero__scroll {
  position: absolute;
  bottom: 2.4rem;
  left: 3rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gris);
}

.hero__scroll i {
  width: 1px;
  height: 3.4rem;
  background: var(--tinta);
  transform-origin: top;
  animation: scrollhint 2.2s var(--ease) infinite;
}

@media (max-width: 800px) {
  .hero__inner {
    padding: 0 1.4rem;
  }
  .hero__title {
    font-size: 15.5vw;
  }
  .line--indent {
    padding-left: 0.5em;
  }
  .hero__foot {
    margin-right: 0;
    margin-top: 2.4rem;
  }
  .hero__eyebrow {
    margin-bottom: 2rem;
  }
  .hero__scroll {
    left: 1.4rem;
  }
}

@keyframes scrollhint {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   MANIFIESTO
   ============================================================ */
.manifiesto {
  position: relative;
  padding: 22vh 3rem;
  overflow: hidden;
}

.manifiesto__sketch {
  position: absolute;
  top: -4vh;
  right: -22vw;
  width: min(90vw, 1150px);
  height: auto;
  opacity: 0.09;
  mix-blend-mode: multiply;
  pointer-events: none;
  will-change: transform;
}

.manifiesto__text {
  margin-top: 4rem;
  font-size: clamp(2.4rem, 7vw, 6.2rem);
  line-height: 1.06;
  font-weight: 300;
  max-width: 16ch;
}

.manifiesto__body {
  margin-top: 5rem;
  margin-left: min(30vw, 28rem);
  max-width: 44ch;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--gris);
}

/* ============================================================
   PROCESO — horizontal
   ============================================================ */
.proceso {
  background: var(--marfil-2);
}

.proceso__pin {
  position: relative;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.proceso__label {
  position: absolute;
  top: 3rem;
  left: 3rem;
  z-index: 2;
}

.proceso__track {
  display: flex;
  gap: 8vw;
  padding: 0 8vw;
  will-change: transform;
}

.panel {
  flex: 0 0 auto;
  width: min(64vw, 460px);
}

.panel__fig {
  height: min(58svh, 560px);
  overflow: hidden;
}

.panel__fig img {
  transform: scale(1.12);
  will-change: transform;
}

.panel__num {
  margin-top: 1.4rem;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--rojo);
}

.panel__name {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  margin-top: 0.3rem;
}

.panel__txt {
  margin-top: 0.6rem;
  max-width: 34ch;
  color: var(--gris);
  font-size: 1.05rem;
}

.panel:nth-child(even) {
  transform: translateY(6vh);
}

/* ============================================================
   DIEZ
   ============================================================ */
.diez {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 20vh 3rem;
  align-items: center;
  overflow: hidden;
}

.diez__sketch {
  position: absolute;
  left: -4vw;
  bottom: -6vh;
  width: min(34vw, 420px);
  height: auto;
  object-fit: contain;
  opacity: 0.1;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.diez__num {
  font-size: clamp(8rem, 22vw, 20rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
}

.diez__dots {
  display: flex;
  gap: 0.9rem;
  margin: 2rem 0 2.6rem;
}

.diez__dots i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--tinta);
}

.js .diez__dots i {
  transform: scale(0);
}

.diez__dots i.is-on {
  background: var(--tinta);
}

.diez__dots i:last-child.is-on {
  background: var(--rojo);
  border-color: var(--rojo);
}

.diez__txt {
  max-width: 40ch;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--gris);
}

.diez__fig {
  height: min(85svh, 780px);
  overflow: hidden;
}

@media (max-width: 800px) {
  .diez {
    grid-template-columns: 1fr;
    padding: 14vh 1.4rem;
  }
  .diez__fig {
    height: 70svh;
  }
}

/* ============================================================
   LA ENTREGA — banda oscura
   ============================================================ */
.entrega {
  background: var(--tinta);
  color: var(--marfil);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  padding: 20vh 3rem;
  align-items: center;
}

.entrega__title {
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  line-height: 1.06;
  font-weight: 300;
  margin-top: 3rem;
}

.entrega__txt {
  margin-top: 2.4rem;
  max-width: 42ch;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: rgba(244, 241, 234, 0.72);
}

.entrega__figs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1.6rem;
  align-items: start;
}

.entrega__fig {
  overflow: hidden;
}

/* los flatlays son fondo tinta: se funden con la sección sin bordes */
.entrega__fig--a {
  grid-column: 1 / span 5;
  height: min(72svh, 620px);
}

.entrega__fig--b {
  grid-column: 6 / span 3;
  height: min(38svh, 330px);
  margin-top: 18vh;
}

.entrega__fig--c {
  grid-column: 6 / span 3;
  height: min(30svh, 260px);
  margin-top: 2vh;
}

@media (max-width: 800px) {
  .entrega {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 14vh 1.4rem;
  }
  .entrega__fig--a {
    grid-column: 1 / -1;
    height: 62svh;
  }
  .entrega__fig--b {
    grid-column: 1 / span 5;
    margin-top: 0;
  }
  .entrega__fig--c {
    grid-column: 6 / span 3;
    margin-top: 8vh;
  }
}

/* ============================================================
   NOVIAS
   ============================================================ */
.novias {
  position: relative;
  padding: 20vh 3rem 14vh;
  overflow: hidden;
}

.novias__sketch {
  position: absolute;
  top: 22vh;
  left: -18vw;
  width: min(95vw, 1250px);
  height: auto;
  object-fit: contain;
  opacity: 0.07;
  mix-blend-mode: multiply;
  pointer-events: none;
  will-change: transform;
}

.novias__title,
.invitadas__title,
.cita__title {
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  line-height: 1.04;
  font-weight: 300;
  margin-top: 3rem;
}

.novias__grid {
  margin-top: 8vh;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

.novias__fig {
  overflow: hidden;
}

.novias__fig--a {
  grid-column: 1 / span 6;
  height: min(110svh, 900px);
}

.novias__fig--b {
  grid-column: 8 / span 5;
  height: min(60svh, 520px);
  margin-top: 14vh;
}

.novias__fig--c {
  grid-column: 8 / span 4;
  height: min(44svh, 400px);
  margin-top: 6vh;
}

.novias__quote {
  grid-column: 2 / span 9;
  margin-top: 14vh;
}

.novias__quote p {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.2;
}

.novias__quote cite {
  display: block;
  margin-top: 1.6rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gris);
}

@media (max-width: 800px) {
  .novias {
    padding: 14vh 1.4rem 10vh;
  }
  .novias__fig--a {
    grid-column: 1 / -1;
    height: 80svh;
  }
  .novias__fig--b {
    grid-column: 3 / -1;
    margin-top: 4vh;
    height: 52svh;
  }
  .novias__fig--c {
    grid-column: 1 / span 8;
    margin-top: 4vh;
    height: 40svh;
  }
  .novias__quote {
    grid-column: 1 / -1;
    margin-top: 8vh;
  }
}

/* ============================================================
   EL ÚLTIMO GESTO — panorámica vertical
   ============================================================ */
.momento {
  position: relative;
  height: 260vh;
  background: var(--tinta);
}

.momento__frame {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}

.momento__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150%;
  object-fit: cover;
  will-change: transform;
}

.momento__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 20, 15, 0.55) 0%, transparent 38%);
  pointer-events: none;
}

.momento__caption {
  position: absolute;
  left: 3rem;
  bottom: 3rem;
  z-index: 2;
  color: var(--marfil);
}

.momento__line {
  margin-top: 1.6rem;
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  font-weight: 300;
  line-height: 1.18;
}

@media (max-width: 800px) {
  .momento {
    height: 200vh;
  }
  .momento__caption {
    left: 1.4rem;
    bottom: 2.2rem;
    padding-right: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .momento {
    height: 100svh;
  }
  .momento__img {
    height: 100%;
  }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
  padding: 1.4rem 0;
}

.marquee__track {
  display: flex;
  white-space: nowrap;
  animation: marquee 36s linear infinite;
}

.marquee__track span {
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--gris);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   INVITADAS
   ============================================================ */
.invitadas {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  padding: 20vh 3rem;
  align-items: center;
}

.invitadas__fig {
  height: min(80svh, 720px);
  overflow: hidden;
  background: #fff;
}

.invitadas__fig img {
  object-fit: contain;
  mix-blend-mode: multiply;
}

.invitadas__txt {
  margin-top: 2.6rem;
  max-width: 44ch;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--gris);
}

@media (max-width: 800px) {
  .invitadas {
    grid-template-columns: 1fr;
    padding: 14vh 1.4rem;
  }
  .invitadas__fig {
    height: 60svh;
  }
}

/* ============================================================
   CITA
   ============================================================ */
.cita {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--marfil);
}

.cita__bg {
  position: absolute;
  inset: -10% 0;
}

.cita__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(23, 20, 15, 0.62);
}

.cita__inner {
  position: relative;
  z-index: 2;
  padding: 18vh 3rem;
  width: 100%;
}

.cita__txt {
  margin-top: 2.4rem;
  max-width: 40ch;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: rgba(244, 241, 234, 0.85);
}

.cita__btn {
  display: inline-block;
  margin-top: 3.4rem;
  border: 1px solid var(--marfil);
  border-radius: 99px;
  padding: 1.3em 3em;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: background 0.45s var(--ease), color 0.45s var(--ease);
  will-change: transform;
}

.cita__btn:hover {
  background: var(--marfil);
  color: var(--tinta);
}

.cita__note {
  margin-top: 2.2rem;
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.6);
}

@media (max-width: 800px) {
  .cita__inner {
    padding: 16vh 1.4rem;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 3rem;
  border-top: 1px solid var(--linea);
}

.foot__mark {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 0.9rem;
}

.foot__links {
  display: flex;
  gap: 2rem;
}

.foot__links a,
.foot__legal {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gris);
}

.foot__links a:hover {
  color: var(--rojo);
}

/* ============================================================
   MOTION SAFETY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .mline > .mline__in,
  .line > .line__in,
  .diez__dots i {
    opacity: 1 !important;
    transform: none !important;
  }
  .js .hero__sketch {
    opacity: 0.9 !important;
    transform: none !important;
  }
  .marquee__track,
  .hero__scroll i {
    animation: none;
  }
}
