:root {
  --papel: #efe9df;
  --verde: #2f2e18;
  --cobre: #d6a273;
  --tinta: #121212;
  --gris: #7a766f;
  --linea: rgba(18, 18, 18, .14);
  --rojo: #e2361f;
  --sans: "Inter Tight", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --m: clamp(1.25rem, 3.2vw, 3rem);           /* margen lateral */
  --suave: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papel); color: var(--tinta);
  font-family: var(--sans); font-weight: 400; font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; font-weight: 300; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
::selection { background: var(--tinta); color: var(--papel); }

/* textura de papel muy sutil */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Barra ---------- */
.barra {
  position: fixed; inset: 1.35rem var(--m) auto; z-index: 50; mix-blend-mode: difference; color: #f2f0ec;
  display: flex; justify-content: space-between; align-items: center;
  pointer-events: none; font-size: .8rem; font-weight: 500;
}
.barra > * { pointer-events: auto; }
.barra__marca { letter-spacing: -.01em; }
.barra__estado { display: flex; align-items: center; gap: .5rem; }
.barra__estado i { width: .45rem; height: .45rem; border-radius: 50%; background: #c33080; animation: latido 2.4s infinite; }
@keyframes latido { 50% { opacity: .3; } }
.pastilla {
  position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 51; font-size: .8rem; font-weight: 500;
  display: flex; align-items: center; gap: .15rem; padding: .25rem;
  background: rgba(18, 18, 18, .9); border-radius: 999px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.pastilla a { color: #f2f0ec; padding: .45rem .85rem; border-radius: 999px; transition: background .3s; }
.pastilla a:hover { background: rgba(255, 255, 255, .1); }
.pastilla .pastilla__cta { background: var(--rojo); }

/* ---------- Tarjeta (video) ---------- */
.tarjeta { position: relative; height: 520vh; background: #2b2824; }
.tarjeta__fija { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #2b2824; }
.tarjeta__fondo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tarjeta__video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tarjeta__fondo { filter: blur(28px) brightness(.75) saturate(1.1); transform: scale(1.15); }
.tarjeta__nombre {
  position: absolute; left: 0; top: 0; width: 1000px; height: 600px; transform-origin: 0 0;
  padding: 48px 64px 56px; display: flex; flex-direction: column; justify-content: flex-end;
  pointer-events: none; will-change: transform, opacity;
}
.tn__mm {
  position: absolute; top: 46px; left: 64px; font-family: "Cormorant Garamond", serif; font-weight: 500;
  font-size: 84px; letter-spacing: -.07em; line-height: 1; color: #2c3517; opacity: .9;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .1), 0 -1px 0 rgba(0, 0, 0, .4);
}
.tn__nombre {
  font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 96px; line-height: .95; letter-spacing: -.01em;
  background: linear-gradient(100deg, #b4764a 0%, #f0cfa2 32%, #b77a4b 52%, #e6bd8c 78%, #a8683f 100%);
  background-size: 220% 100%; background-position: var(--brillo, 30%) 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .35));
}
.tn__rol { margin-top: 22px; font-size: 22px; letter-spacing: .4em; text-transform: uppercase; color: #c9a37a; font-weight: 500; opacity: .9; }
.tarjeta__crema { position: absolute; inset: 0; background: var(--verde); opacity: 0; pointer-events: none; }
.tarjeta__ayuda {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); margin: 0; font-size: .75rem; letter-spacing: .2em;
  text-transform: uppercase; white-space: nowrap; opacity: 0; color: rgba(255, 244, 228, .85); text-shadow: 0 1px 8px rgba(0, 0, 0, .5); transition: opacity .4s;
}
.tarjeta__ayuda span { display: inline-block; animation: rebote 1.6s infinite; }
@keyframes rebote { 50% { transform: translateY(.3rem); } }

/* ---------- Inicio ---------- */
.hero:not(.en-vista) *, .hero:not(.en-vista) { animation-play-state: paused !important; }
.hero {
  min-height: 100svh; padding: 5.5rem var(--m) 2rem;
  display: grid; grid-template-rows: auto 1fr auto; gap: 2rem;
}
.hero__meta {
  display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 1rem;
  border-top: 1px solid var(--linea); font-size: .78rem; color: var(--gris);
  opacity: 0; animation: aparecer .9s .6s var(--suave) forwards;
}
.hero__hora { text-align: right; font-variant-numeric: tabular-nums; }
.hero__meta span:nth-child(2) { text-align: center; }
.hero__nombre {
  align-self: center; font-size: clamp(4.2rem, 17.5vw, 19rem); line-height: .8;
  letter-spacing: -.065em; font-weight: 200; text-transform: uppercase;
}
.hero__nombre em { text-transform: none; letter-spacing: -.04em; font-size: 1.02em; }
.linea { display: block; overflow: hidden; padding: 0 .02em .06em; }
.linea > span { display: block; transform: translateY(110%); animation: subir 1.3s var(--suave) forwards; }
.linea--der { text-align: right; }
.linea--der > span { animation-delay: .1s; }
@keyframes subir { to { transform: none; } }
@keyframes aparecer { from { opacity: 0; transform: translateY(.8rem); } to { opacity: 1; transform: none; } }

.hero__pie {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem;
  opacity: 0; animation: aparecer 1s .75s var(--suave) forwards;
}
.hero__bajada { max-width: 24rem; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.45; }
.hero__vista { margin: 0; width: clamp(12rem, 22vw, 20rem); }
.hero__marco { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: #e4e1db; }
.hero__marco img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--suave);
}
.hero__marco img.activa { clip-path: inset(0 0 0 0); z-index: 1; }
.hero__vista figcaption { margin-top: .6rem; font-size: .75rem; color: var(--gris); display: flex; gap: .4rem; }

/* inicio en el verde de la tarjeta */
.hero { background: var(--verde); color: #efe4d2; }
.hero .hero__meta { border-top-color: rgba(239, 228, 210, .18); color: rgba(239, 228, 210, .6); }
.hero .hero__nombre { color: #efe4d2; }
.hero .hero__nombre em {
  background: linear-gradient(100deg, #b4764a 0%, #f0cfa2 32%, #b77a4b 55%, #e6bd8c 80%, #a8683f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em;
}
.hero .hero__bajada em { color: var(--cobre); }
.hero .hero__marco { background: rgba(255, 255, 255, .06); }
.hero .hero__vista figcaption { color: rgba(239, 228, 210, .6); }

/* ---------- Escena fija ---------- */
.escena { position: relative; height: 480vh; }
.escena__fija { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; background: var(--papel); }
.escena__palabra {
  position: absolute; z-index: 2; mix-blend-mode: difference; color: #f2f0ec;
  font-size: clamp(3rem, 9vw, 9.5rem); font-weight: 200; text-transform: uppercase;
  letter-spacing: -.06em; line-height: 1;
}
.escena__palabra--izq { left: var(--m); top: 10%; }
.escena__palabra--der { right: var(--m); bottom: 12%; font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: -.02em; }
.escena__marco {
  position: relative; width: min(56vw, 900px); aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px;
  background: #e4e1db; transform: scale(var(--escala, .5)); will-change: transform;
}
.escena__marco img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  clip-path: inset(100% 0 0 0); transition: clip-path 1s var(--suave);
}
.escena__marco img.activa, .escena__marco img.pasada { clip-path: inset(0 0 0 0); }
.escena__pie {
  position: absolute; left: var(--m); right: var(--m); bottom: 1.8rem; z-index: 3;
  display: grid; grid-template-columns: auto 1fr; gap: .7rem 1.5rem; font-size: .78rem;
}
.escena__num { color: var(--gris); font-variant-numeric: tabular-nums; }
.escena__num b { color: var(--tinta); font-weight: 500; }
.escena__barra { grid-column: 1 / -1; height: 1px; background: var(--linea); overflow: hidden; }
.escena__barra i { display: block; height: 100%; background: var(--tinta); transform-origin: left; transform: scaleX(0); }

/* ---------- Cabezas de sección ---------- */
.seccion__cabeza {
  display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: baseline;
  padding-bottom: 1rem; border-bottom: 1px solid var(--tinta); margin-bottom: 0;
}
.seccion__cabeza h2 { font-size: clamp(2.2rem, 5vw, 4.5rem); letter-spacing: -.05em; line-height: 1; }
.seccion__num, .seccion__nota { font-size: .78rem; color: var(--gris); }
.seccion__nota { text-align: right; }

/* ---------- Índice ---------- */
.indice { padding: 9rem var(--m) 7rem; position: relative; }
.indice__lista { list-style: none; margin: 0; padding: 0; }
.fila { border-bottom: 1px solid var(--linea); }
.fila a, .fila > div {
  display: grid; grid-template-columns: 1fr 2fr 1fr auto; align-items: baseline; gap: 1rem;
  padding: 1.6rem 0; position: relative;
}
.fila__n { font-size: .78rem; color: var(--gris); font-variant-numeric: tabular-nums; }
.fila__nombre {
  font-size: clamp(1.8rem, 4.6vw, 4.2rem); letter-spacing: -.05em; line-height: 1; font-weight: 300;
  transition: transform .6s var(--suave), color .4s;
}
.fila__tipo { font-size: .85rem; color: var(--gris); }
.fila__ir { font-size: .85rem; width: 4.5rem; text-align: right; }
.fila__ir span { display: inline-block; transition: transform .4s var(--suave); }
.fila__privado { color: var(--gris); font-size: .72rem; }
.fila__mini { display: none; }

@media (hover: hover) {
  .indice__lista:hover .fila .fila__nombre { color: #b9b5ae; }
  .indice__lista .fila:hover .fila__nombre { color: var(--tinta); transform: translateX(1.2rem); }
  .fila:hover .fila__ir span { transform: translate(3px, -3px); }
}

/* vista previa que sigue al mouse */
.indice__flota {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: clamp(16rem, 24vw, 24rem); aspect-ratio: 16 / 10;
  transform: translate3d(var(--x, 0), var(--y, 0), 0) translate(-50%, -50%);
}
.indice__flota-in {
  position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 4px;
  clip-path: inset(50% 50% 50% 50%); transition: clip-path .55s var(--suave);
}
.indice__flota.ver .indice__flota-in { clip-path: inset(0 0 0 0); }
.indice__flota img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .3s; }
.indice__flota img.activa { opacity: 1; }

/* ---------- Anillo ---------- */
.anillo { position: relative; overflow: hidden; padding: 2rem 0 4rem; }
.anillo__escena {
  height: clamp(22rem, 42vw, 36rem); perspective: 1400px; perspective-origin: 50% 20%;
  display: grid; place-items: center;
}
.anillo__rueda {
  --r: clamp(10rem, 27vw, 28rem);
  position: relative; width: 0; height: 0; margin: 0; padding: 0; list-style: none;
  transform-style: preserve-3d;
  transform: rotateZ(-9deg) rotateX(-16deg) rotateY(var(--giro, 0deg));
}
.anillo__rueda li {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  font-size: clamp(1.6rem, 4.2vw, 4rem); line-height: 1; color: var(--tinta);
  transform: translate(-50%, -50%) rotateY(var(--ang)) translateZ(var(--r));
  backface-visibility: visible; will-change: opacity, filter;
}
.c-houssy { font-weight: 200; letter-spacing: .3em; }
.c-wil { font-family: var(--serif); }
.c-wil em { font-size: .7em; }
.c-unique { font-family: var(--serif); text-transform: uppercase; letter-spacing: .08em; }
.c-sadik { font-weight: 500; font-style: italic; letter-spacing: .04em; }
.c-stock { font-weight: 500; letter-spacing: -.03em; }
.c-hysteria { font-weight: 500; letter-spacing: -.02em; color: var(--rojo) !important; }

/* ---------- Servicios ---------- */
.servicios { padding: 6rem var(--m) 8rem; }
.servicios__lista { list-style: none; margin: 0; padding: 0; }
.servicios__lista li {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 1rem; align-items: baseline;
  padding: 1.6rem 0; border-bottom: 1px solid var(--linea);
}
.servicios__n { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--gris); }
.servicios__lista h3 { font-size: clamp(1.4rem, 2.4vw, 2.1rem); letter-spacing: -.04em; line-height: 1.1; }
.servicios__lista p { color: var(--gris); font-size: .92rem; max-width: 22rem; }
.servicios__plazo { text-align: right; font-size: .8rem; }

/* ---------- Contacto ---------- */
.contacto { padding: 6rem var(--m) 5rem; border-top: 1px solid var(--tinta); display: grid; gap: 2rem; }
.contacto__titulo {
  font-size: clamp(4.2rem, 17.5vw, 19rem); font-weight: 200; letter-spacing: -.065em; line-height: .8;
  text-transform: uppercase;
}
.contacto__titulo a { display: inline-flex; align-items: flex-start; }
.contacto__txt {
  background: linear-gradient(var(--rojo), var(--rojo)) 0 100% / 0 .06em no-repeat;
  transition: background-size .8s var(--suave), color .5s;
}
.contacto__titulo a:hover .contacto__txt { background-size: 100% .06em; }
.contacto__flecha { font-size: .3em; margin-left: .15em; transition: transform .5s var(--suave); }
.contacto__titulo a:hover .contacto__flecha { transform: translate(.15em, -.15em); color: var(--rojo); }
.contacto__links { display: flex; gap: 2rem; font-size: .9rem; }
.contacto__links a { position: relative; }
.contacto__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(.25); transform-origin: left; transition: transform .5s var(--suave);
}
.contacto__links a:hover::after { transform: scaleX(1); }

.pie { display: flex; justify-content: space-between; padding: 1.2rem var(--m); font-size: .75rem; color: var(--gris); border-top: 1px solid var(--linea); }

/* ---------- Revelar ---------- */
.revelar { opacity: 0; transform: translateY(1.5rem); transition: opacity 1s var(--suave), transform 1s var(--suave); }
.revelar.visible { opacity: 1; transform: none; }

/* ---------- Celular ---------- */
@media (max-width: 820px) {
  .barra__estado { display: none; }
  .pastilla { left: auto; right: var(--m); transform: none; }
  .pastilla a:not(.pastilla__cta) { display: none; }
  .hero { padding-top: 4.5rem; }
  .hero__nombre { font-size: 25vw; }
  .contacto__titulo { font-size: 19vw; }
  .hero__meta { grid-template-columns: 1fr 1fr; }
  .hero__meta span:nth-child(2) { display: none; }
  .hero__pie { grid-template-columns: 1fr; }
  .hero__vista { width: 62%; justify-self: end; }

  .escena { height: 420vh; }
  .escena__marco { width: min(58vw, 42svh); aspect-ratio: 390 / 844; border-radius: 1.2rem; }
  .escena__palabra { font-size: clamp(2.6rem, 13vw, 5rem); }
  .escena__palabra--izq { top: 13%; }
  .escena__palabra--der { bottom: 15%; }

  .seccion__cabeza { grid-template-columns: auto 1fr auto; gap: 1rem; }
  .indice { padding-top: 6rem; }
  .fila a, .fila > div { grid-template-columns: auto 1fr auto; row-gap: .4rem; padding: 1.3rem 0; }
  .fila__n { grid-row: 1; }
  .fila__nombre { grid-column: 2; grid-row: 1; }
  .fila__mini { grid-row: 3; }
  .fila__tipo { grid-column: 2; grid-row: 2; }
  .fila__ir { grid-row: 1; width: auto; }
  .fila__mini { display: block; grid-column: 2 / -1; margin-top: .8rem; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: #e4e1db; }
  .fila__mini img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
  .indice__flota { display: none; }

  .anillo__escena { height: 20rem; }
  .anillo__rueda { --r: 44vw; }
  .anillo__rueda li { font-size: 1.05rem; }

  .servicios__lista li { grid-template-columns: auto 1fr; row-gap: .4rem; }
  .servicios__lista p { grid-column: 2; }
  .servicios__plazo { grid-column: 2; text-align: left; color: var(--gris); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .revelar { opacity: 1; transform: none; }
}
