/* Caribay — hoja única. Recorrido de color: noche (hero) → amanecer (leyenda/oficio) → sol (Alba) → atardecer (contacto). */
:root {
  --orange: #fc702b;
  --brown: #492c1d;
  --yellow: #f8ee84;
  --cream: #fff9df;
  --ink: #102448;
  --plum: #6d4468;
  --serif: Georgia, "Times New Roman", serif;
  --label: Oswald, "Arial Narrow", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: max(5vw, calc((100vw - 1440px) / 2));
  /* ritmo vertical común entre secciones */
  --space: clamp(72px, 8vw, 120px);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --cream-filter: brightness(0) invert(97%) sepia(25%) saturate(910%)
    hue-rotate(345deg);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  color: var(--cream);
  background: var(--ink);
  font:
    17px/1.6 Arial,
    Helvetica,
    sans-serif;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
/* Grano de película sobre toda la página */
body:after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background: var(--noise);
  opacity: 0.07;
  mix-blend-mode: overlay;
}
a {
  color: inherit;
}
a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 7px;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
::selection {
  background: var(--orange);
  color: var(--ink);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: normal;
}
.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 100;
  background: var(--yellow);
  color: var(--ink);
  padding: 10px;
}
.skip:focus {
  top: 10px;
}
.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 70;
  background: linear-gradient(90deg, var(--yellow), var(--orange), #ff4f6d);
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
}
.eyebrow {
  margin: 0;
  font: 500 13px/1.5 var(--label);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

/* ---------- Header: transparente arriba, cápsula de vidrio al hacer scroll ---------- */
.header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: 104px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border: 1px solid transparent;
  transition:
    top 0.6s var(--ease),
    left 0.6s var(--ease),
    right 0.6s var(--ease),
    height 0.6s var(--ease),
    padding 0.6s var(--ease),
    background 0.6s,
    border-color 0.6s,
    border-radius 0.6s,
    box-shadow 0.6s;
}
.header.is-scrolled {
  top: 14px;
  left: 3%;
  right: 3%;
  height: 72px;
  padding: 0 28px;
  border-color: #fff9df26;
  border-radius: 100px;
  background: #102448cc;
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 20px 50px -20px #020a1b99;
}
.brand img {
  width: 125px;
  height: 75px;
  object-fit: contain;
  display: block;
  filter: var(--cream-filter);
  transition:
    width 0.6s var(--ease),
    height 0.6s var(--ease);
}
.header.is-scrolled .brand img {
  width: 90px;
  height: 54px;
}
.header nav {
  display: flex;
  gap: 38px;
  font: 500 13px/1 var(--label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.header nav a {
  position: relative;
  padding: 6px 0;
  text-decoration: none;
}
.header nav a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.header nav a:hover:after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---------- Botones y enlaces ---------- */
.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 15px 30px;
  border: 1px solid var(--yellow);
  border-radius: 100px;
  background: var(--yellow);
  color: var(--ink);
  font: 500 14px/1 var(--label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.5s var(--ease),
    translate 0.5s var(--ease),
    background 0.4s,
    color 0.4s,
    border-color 0.4s,
    box-shadow 0.5s;
}
/* Brillo que recorre el botón al pasar el cursor */
.button:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, #0000 30%, #fff9 50%, #0000 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
}
.button:hover:after {
  transform: translateX(120%);
}
.button:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -12px #fc702b99;
}
.button.small {
  min-height: 44px;
  padding: 10px 22px;
  font-size: 12px;
  background: transparent;
  color: var(--cream);
  border-color: #fff9df80;
}
.button.small:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
}
.plate {
  display: inline-block;
  font: 500 15px/1 var(--label);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 9px 14px 8px;
  background: #efd9c4;
  color: var(--brown);
  box-shadow:
    inset 0 0 0 2px var(--cream),
    0 0 0 1.5px var(--brown),
    4px 5px 0 #492c1d40;
}
.plate.red {
  background: var(--cream);
  color: #b4352b;
}

/* ---------- 00 Hero: noche andina con nieve, aura dorada y parallax al cursor ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 120px var(--pad) 70px;
  background: var(--ink);
}
.hero-landscape {
  position: absolute;
  inset: 0 0 auto;
  height: 980px;
  z-index: -3;
  translate: calc(var(--mx, 0) * -18px) calc(var(--my, 0) * -12px);
  transition: translate 1.2s var(--ease);
  /* se desvanece entero (foto, velo y nieve) para que no quede un borde con el fondo */
  -webkit-mask: linear-gradient(180deg, #000 55%, #0000 98%) no-repeat;
  mask: linear-gradient(180deg, #000 55%, #0000 98%) no-repeat;
}
.hero-landscape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  will-change: transform;
}
.hero-landscape:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #08162ecc, #08162e1a 75%),
    linear-gradient(0deg, var(--ink) 0%, transparent 42%);
}
.hero-landscape:before {
  content: "";
  position: absolute;
  inset: -300px 0 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 30px 40px, #fff9dfdd, #0000),
    radial-gradient(1px 1px at 130px 90px, #fff9dfaa, #0000),
    radial-gradient(2px 2px at 210px 170px, #f8ee84aa, #0000),
    radial-gradient(1px 1px at 270px 250px, #fff9df99, #0000),
    radial-gradient(1.5px 1.5px at 80px 220px, #fff9dfbb, #0000);
  background-size: 300px 300px;
  -webkit-mask: linear-gradient(180deg, #000 35%, #0000 85%);
  mask: linear-gradient(180deg, #000 35%, #0000 85%);
  animation: snow 28s linear infinite;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  min-height: 700px;
}
.hero-watermark {
  position: absolute;
  bottom: -15px;
  left: -3%;
  width: 106%;
  z-index: -1;
  pointer-events: none;
  font: 900 clamp(120px, 20.4vw, 330px) / 0.8 var(--serif);
  letter-spacing: -0.08em;
  color: transparent;
  -webkit-text-stroke: 1px #fff9df2e;
  translate: calc(var(--mx, 0) * 14px) 0;
  transition: translate 1.2s var(--ease);
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 16px 0 60px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  color: var(--yellow);
}
.hero-eyebrow:before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
}
h1 {
  margin: 0 0 28px;
  /* también limitado por el alto para que el botón quede visible sin hacer scroll */
  font-size: clamp(52px, min(6vw, 11.5vh), 104px);
  line-height: 0.92;
  letter-spacing: -0.065em;
}
h1 em {
  display: block;
  white-space: nowrap;
}
h1 strong {
  display: block;
  margin-left: -0.03em;
  padding-right: 0.08em;
  font-size: 1.44em;
  line-height: 0.93;
  letter-spacing: -0.07em;
  font-weight: bold;
  background: linear-gradient(
    100deg,
    var(--yellow) 0%,
    #ffd98a 45%,
    var(--orange) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy > p:not(.eyebrow) {
  max-width: 380px;
  margin-bottom: 34px;
  color: #fff9dfdc;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 34px;
}
.hero-visual {
  position: relative;
  height: 640px;
  display: grid;
  place-items: center;
  perspective: 1000px;
}
.hero-visual:before {
  content: "";
  position: absolute;
  width: 115%;
  max-width: 640px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 40%, #f8ee8455, #0000 55%),
    radial-gradient(circle at 60% 65%, #fc702b55, #0000 60%);
  filter: blur(30px);
  animation: breathe 7s ease-in-out infinite;
}
.halo {
  position: absolute;
  width: 92%;
  max-width: 510px;
  aspect-ratio: 1;
  border: 1px solid #f8ee8460;
  border-radius: 50%;
  transform: rotateX(28deg) rotateY(-22deg);
  animation: orbit 60s linear infinite;
}
.halo:after {
  content: "";
  position: absolute;
  inset: -30px;
  border: 1.5px dashed #f8ee8455;
  border-radius: 50%;
}
.hero-can {
  position: relative;
  height: 565px;
  width: auto;
  max-width: 85%;
  object-fit: contain;
  filter: drop-shadow(25px 40px 20px #020a1bc0);
  transform: translateY(var(--float-y, 0px))
    rotate(calc(-12deg + var(--tilt-x, 0deg)));
  transition: transform 0.35s ease-out;
  will-change: transform;
  animation: bob 6s ease-in-out infinite;
}
.can-caption {
  position: absolute;
  left: 0;
  bottom: 52px;
  font: italic 33px/1 var(--serif);
  transform: rotate(-8deg);
}
.can-caption span {
  display: block;
  margin-top: 7px;
  font: 500 10px/2 var(--label);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font: 500 10px/1 var(--label);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #fff9dfaa;
}
.scroll-cue:after {
  content: "";
  width: 1px;
  height: 54px;
  background: linear-gradient(var(--yellow), #f8ee8400);
  animation: cue 2.6s var(--ease) infinite;
}
/* Entrada coreografiada del hero */
h1 > *,
.hero-copy > p,
.hero-actions,
.hero-visual {
  animation: rise 1.4s var(--ease) both;
}
h1 > :nth-child(1) {
  animation-delay: 0.1s;
}
h1 > :nth-child(2) {
  animation-delay: 0.22s;
}
h1 > :nth-child(3) {
  animation-delay: 0.34s;
}
h1 > :nth-child(4) {
  animation-delay: 0.46s;
}
.hero-copy > p:not(.eyebrow) {
  animation-delay: 0.5s;
}
.hero-actions {
  animation-delay: 0.65s;
}
.hero-visual {
  animation-name: zoom-in;
  animation-duration: 1.8s;
  animation-delay: 0.2s;
}

/* ---------- 01 Leyenda: el texto se ilumina con el scroll y aparecen las cinco águilas ---------- */
.leyenda {
  position: relative;
  isolation: isolate;
  padding: var(--space) var(--pad) 80px;
  text-align: center;
  background: linear-gradient(
    180deg,
    var(--ink) 0%,
    #15295a 30%,
    #2c2f5e 60%,
    var(--plum) 88%,
    #a4566a 100%
  );
}
.l-sky {
  position: relative;
  max-width: 980px;
  height: 250px;
  /* el texto final sube y queda dentro del arco, bajo la cima */
  margin: 0 auto -140px;
}
.l-ridge {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.l-ridge polyline {
  fill: none;
  stroke: #f8ee8466;
  stroke-width: 0.3;
  stroke-dasharray: 1;
  stroke-dashoffset: var(--draw, 0);
}
.l-sky img {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w, 68px);
  height: auto;
  translate: -50% -50%;
  filter: brightness(0) invert(1) drop-shadow(0 0 16px #fff9dfbb);
  transition:
    opacity 1s var(--ease),
    scale 1s var(--ease),
    filter 1s;
}
.motion-enabled .l-sky img:not(.on) {
  opacity: 0.25;
  scale: 0.7;
  filter: brightness(0) invert(1);
}
.leyenda .eyebrow {
  margin-bottom: 22px;
  color: var(--yellow);
}
.leyenda h2 {
  margin: 0 0 52px;
  font-size: clamp(48px, 6.4vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.leyenda h2 em {
  color: var(--orange);
}
.l-text {
  max-width: 1080px;
  margin: 0 auto 34px;
  font: clamp(26px, 3.1vw, 46px) / 1.3 var(--serif);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.l-text em {
  color: var(--yellow);
}
.motion-enabled .l-text .w {
  color: #fff9df2b;
  transition:
    color 0.6s var(--ease),
    text-shadow 0.6s;
}
.motion-enabled .l-text .w.on {
  color: var(--cream);
}
.motion-enabled .l-text em .w.on {
  color: var(--yellow);
  text-shadow: 0 0 28px #f8ee8466;
}
.l-coda {
  position: relative;
  max-width: 330px;
  margin: 0 auto;
  font: italic 19px/1.55 var(--serif);
  letter-spacing: -0.01em;
  color: #fff9dfcc;
}

/* ---------- 02 Oficio: amanecer → crema y carril horizontal fijado al scroll ---------- */
.oficio {
  position: relative;
  isolation: isolate;
  /* clip (no hidden) para que el carril sticky funcione */
  overflow: clip;
  color: var(--brown);
  padding: 130px var(--pad) 0;
  background: linear-gradient(
    180deg,
    #a4566a 0,
    #e07a62 55px,
    #f6a873 105px,
    #fbd3a6 155px,
    var(--cream) 230px
  );
}
.oficio:before,
.alba:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--noise);
  opacity: 0.09;
  mix-blend-mode: multiply;
}
.o-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  padding: 10px 0 56px;
}
.o-head h2 {
  margin: 0;
  font-size: clamp(68px, 9.5vw, 150px);
  line-height: 0.9;
  letter-spacing: -0.06em;
}
/* «Qué nos hace» forma un bloque tipográfico con «artesanal.» */
.o-head h2 > span {
  display: block;
  margin: 0 0 0.12em 0.05em;
  font-size: 0.4em;
  line-height: 1;
  letter-spacing: -0.035em;
  color: #492c1dcc;
}
.o-head h2 em {
  display: block;
}
.o-head h2 b {
  color: var(--orange);
  font-weight: normal;
}
.o-lede {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 380px;
  padding-bottom: 14px;
}
.o-mark {
  width: 88px;
  height: auto;
  animation: float 7s ease-in-out infinite;
}
.o-lede p {
  margin: 0;
  font-size: 19px;
  line-height: 1.65;
  color: #492c1dcc;
}
/* Diseño base (móvil, tablet o sin animación): tarjetas en zigzag */
.o-rail {
  display: grid;
  gap: 90px;
  padding: 10px 0 var(--space);
}
.o-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 6vw;
  align-items: center;
}
.o-card:nth-child(2) .o-arch {
  order: 2;
}
.o-arch {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 470px;
  aspect-ratio: 0.74;
  padding: 10px;
  border: 1.5px solid var(--brown);
  border-radius: 999px 999px 0 0;
  transition:
    border-color 0.6s,
    box-shadow 0.8s var(--ease);
}
.o-card:hover .o-arch {
  border-color: var(--orange);
  box-shadow: 0 40px 70px -35px #fc702b99;
}
.o-win {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 999px 999px 0 0;
  background: #f3a96b;
}
/* Margen extra (8% por lado) para el parallax horizontal del carril */
.o-img {
  position: absolute;
  top: -8%;
  left: -8%;
  width: 116%;
  height: 116%;
  max-width: none;
  object-fit: cover;
  /* tono cálido para que las fotos armonicen con la paleta crema/marrón */
  filter: sepia(0.18) saturate(1.05) contrast(1.03);
  transition: transform 1.2s var(--ease);
}
.o-card:hover .o-img {
  transform: scale(1.07);
}
.o-win:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #492c1dd0 0%, #492c1d00 45%);
}
.o-num {
  position: absolute;
  left: 28px;
  bottom: 18px;
  z-index: 2;
  font: italic clamp(64px, 7vw, 110px) / 1 var(--serif);
  letter-spacing: -0.08em;
  color: var(--cream);
}
.o-arch .plate {
  position: absolute;
  right: -14px;
  bottom: 44px;
  z-index: 3;
  transform: rotate(-4deg);
  transition: transform 0.6s var(--ease);
}
.o-card:nth-child(2) .plate {
  transform: rotate(3deg);
}
.o-card:hover .o-arch .plate {
  transform: rotate(0deg) translateY(-6px);
}
.o-text h3 {
  margin: 0 0 22px;
  font-size: clamp(34px, 3.6vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.o-text h3 em {
  color: var(--orange);
}
.o-text p {
  max-width: 440px;
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: #492c1dcc;
}
.o-end {
  display: grid;
  justify-items: center;
  gap: 28px;
  text-align: center;
}
.o-end img {
  width: 96px;
  height: auto;
}
.o-end p {
  margin: 0;
  font: clamp(40px, 5vw, 80px) / 1.02 var(--serif);
  letter-spacing: -0.045em;
}
.o-end em {
  display: block;
  color: var(--orange);
}
.o-meter {
  display: none;
}
/* Modo carril (escritorio con animación): JS añade .is-rail y fija la altura */
.o-pin.is-rail {
  margin: 0 calc(-1 * var(--pad));
}
.is-rail .o-sticky {
  position: sticky;
  top: 100px;
  overflow: hidden;
  padding: 10px 0 84px;
}
.is-rail .o-rail {
  display: flex;
  align-items: center;
  gap: 9vw;
  width: max-content;
  padding: 0 var(--pad);
  will-change: transform;
}
.is-rail .o-card {
  flex: none;
  width: min(72vw, 1000px);
}
.is-rail .o-card:nth-child(2) .o-arch {
  order: 0;
}
.is-rail .o-arch {
  width: auto;
  height: min(62vh, 580px);
  max-width: none;
}
.is-rail .o-end {
  flex: none;
  width: min(56vw, 760px);
}
.is-rail .o-meter {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  font: 500 11px/1 var(--label);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #492c1d99;
}
.o-meter i {
  position: relative;
  flex: 1;
  height: 1px;
  background: #492c1d33;
}
.o-meter b {
  position: absolute;
  inset: -0.5px 0;
  background: var(--orange);
  transform: scaleX(var(--rp, 0));
  transform-origin: left;
}
/* Cintas cruzadas */
.o-bands {
  position: relative;
  height: 230px;
  margin: 0 calc(-1 * var(--pad));
}
.o-band {
  position: absolute;
  top: 50%;
  left: -5%;
  right: -5%;
  overflow: hidden;
  padding: 20px 0;
  background: var(--orange);
  color: var(--brown);
  border-block: 1.5px solid var(--brown);
  box-shadow: 0 25px 50px -25px #492c1d66;
  transform: translateY(-50%) rotate(-3deg);
}
.o-band.alt {
  background: var(--brown);
  color: var(--cream);
  transform: translateY(-50%) rotate(2.5deg);
}
.o-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.o-band.alt .o-track {
  animation-direction: reverse;
  animation-duration: 46s;
}
.o-track span {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
  font: italic clamp(34px, 4vw, 58px) / 1 var(--serif);
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.o-band.alt span {
  font-size: clamp(26px, 3vw, 42px);
}
.o-track i {
  font-style: normal;
  font-size: 0.6em;
  color: var(--orange);
}
.o-track img {
  width: 62px;
  height: auto;
  filter: brightness(0) saturate(100%) invert(16%) sepia(26%) saturate(1500%)
    hue-rotate(345deg) brightness(0.9);
}

/* ---------- 03 Alba: portada de revista con sol, burbujas y anotaciones ---------- */
.alba {
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: var(--brown);
  padding: calc(var(--space) - 20px) var(--pad) 0;
  background: linear-gradient(
    180deg,
    var(--cream) 0%,
    #fbdcb3 10%,
    #f9c99a 24%,
    #f6a96c 55%,
    var(--orange) 100%
  );
}
.a-stage {
  position: relative;
  height: 940px;
  display: grid;
  place-items: center;
  perspective: 1200px;
  z-index: 6;
  /* el escenario se superpone a la ficha: solo la lata y el sello reciben el cursor */
  pointer-events: none;
}
.a-can,
.a-badge {
  pointer-events: auto;
}
.a-sun {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 600px;
  height: 600px;
  margin: -300px 0 0 -300px;
  transform: translateY(var(--sun-y, 0px));
  will-change: transform;
}
.a-rays {
  position: absolute;
  inset: -70%;
  background: repeating-conic-gradient(
    #fff9df59 0deg 3deg,
    #fff9df00 3deg 11deg
  );
  -webkit-mask: radial-gradient(circle, #000 18%, #0000 62%);
  mask: radial-gradient(circle, #000 18%, #0000 62%);
  animation: spin 120s linear infinite;
}
.a-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 35%,
    #fffbe0 0%,
    var(--yellow) 38%,
    #fbb45c 100%
  );
  box-shadow: 0 0 120px 30px #fff3b066;
  animation: glow 6s ease-in-out infinite;
}
.a-disc:after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1.5px solid #492c1d30;
}
.a-kicker {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  color: #b4352b;
}
.a-title {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  z-index: 1;
  margin: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  font: 700 clamp(150px, 25vw, 400px) / 0.8 var(--serif);
  letter-spacing: -0.02em;
  filter: drop-shadow(0 24px 30px #7a2e0a33);
}
.a-title span {
  display: inline-block;
  background: linear-gradient(
    180deg,
    #fff3c4 0%,
    #f1d57c 30%,
    #c4972f 62%,
    #8a5f17 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition:
    transform 1.4s var(--ease) calc(var(--i) * 0.09s),
    opacity 1.4s var(--ease) calc(var(--i) * 0.09s);
}
.motion-enabled .a-title:not(.is-visible) span {
  opacity: 0;
  transform: translateY(45%) rotate(4deg);
}
.a-bubbles {
  position: absolute;
  inset: 22% 26% 4%;
  z-index: 2;
  pointer-events: none;
}
.a-bubbles i {
  position: absolute;
  bottom: 0;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    #fffef5,
    #fff9df66 55%,
    #fff9df00 72%
  );
  box-shadow: inset 0 0 0 1px #fff9df99;
  opacity: 0;
  animation: bubble var(--d) linear var(--t) infinite;
}
.a-can {
  position: relative;
  z-index: 3;
  height: 660px;
  width: auto;
  margin-top: 170px;
  filter: drop-shadow(28px 40px 34px #7a2e0a66);
  transform: rotate(-8deg) rotateY(var(--tilt, 0deg));
  transition: transform 0.6s var(--ease);
  animation: bob 7s ease-in-out infinite;
}
.a-stage:hover .a-can {
  transform: rotate(-4deg) translateY(-14px) rotateY(var(--tilt, 0deg));
}
/* Anotaciones con línea que apunta a la lata */
.a-notes {
  position: absolute;
  inset: 0;
  z-index: 4;
  margin: 0;
  pointer-events: none;
}
.a-notes div {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.a-notes dt {
  font: 500 12px/1 var(--label);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #492c1dbb;
}
.a-notes dd {
  margin: 0;
  font: italic clamp(26px, 2.4vw, 38px) / 1.1 var(--serif);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.a-notes div:after {
  content: "";
  position: absolute;
  top: 50%;
  width: var(--len, 150px);
  height: 9px;
  margin-top: -4.5px;
  transition: transform 1.2s var(--ease) 0.5s;
}
.a-notes .n1,
.a-notes .n3 {
  right: calc(50% + 225px);
  align-items: flex-end;
  text-align: right;
}
.a-notes .n1 {
  top: 47%;
}
.a-notes .n3 {
  top: 75%;
  --len: 140px;
}
.a-notes .n2 {
  left: calc(50% + 225px);
  top: 61%;
}
.a-notes .n1:after,
.a-notes .n3:after {
  left: calc(100% + 18px);
  transform-origin: left;
  background:
    radial-gradient(
      circle at calc(100% - 4.5px) 50%,
      var(--brown) 3.5px,
      #0000 4.5px
    ),
    linear-gradient(var(--brown), var(--brown)) 0 50% / calc(100% - 6px) 1px
      no-repeat;
}
.a-notes .n2:after {
  right: calc(100% + 18px);
  transform-origin: right;
  background:
    radial-gradient(circle at 4.5px 50%, var(--brown) 3.5px, #0000 4.5px),
    linear-gradient(var(--brown), var(--brown)) 100% 50% / calc(100% - 6px)
      1px no-repeat;
}
.motion-enabled .a-notes:not(.is-visible) div:after {
  transform: scaleX(0);
}
/* Sello giratorio */
.a-badge {
  position: absolute;
  z-index: 4;
  left: calc(50% + 150px);
  top: 30%;
  width: 132px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.a-badge svg {
  position: absolute;
  inset: 0;
  overflow: visible;
  animation: spin 22s linear infinite;
}
.a-badge circle {
  fill: var(--brown);
}
.a-badge path {
  fill: none;
}
.a-badge text {
  font: 500 9.5px var(--label);
  letter-spacing: 2px;
  fill: var(--yellow);
}
.a-badge img {
  position: relative;
  width: 50px;
  height: auto;
  filter: var(--cream-filter);
}
/* Ficha de vidrio que se superpone al escenario */
.a-info {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 6vw;
  align-items: end;
  margin-top: -90px;
  padding: 64px clamp(28px, 4.5vw, 70px) 56px;
  border: 1px solid #fff9dfaa;
  border-radius: 32px;
  background: #fff9dfcc;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 50px 90px -40px #7a2e0a99;
}
.a-lead .eyebrow {
  display: block;
  margin-bottom: 20px;
  color: #b4352b;
}
.a-intro {
  margin: 0 0 18px;
  font: italic clamp(36px, 3.6vw, 56px) / 1.05 var(--serif);
  letter-spacing: -0.035em;
}
.a-desc {
  max-width: 480px;
  margin: 0;
  line-height: 1.75;
  color: #492c1dd9;
}
.a-specs {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid #492c1d33;
}
.a-specs dt {
  margin-bottom: 10px;
  font: 500 12px/1 var(--label);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #492c1daa;
}
.a-specs dd {
  margin: 0;
  font: 500 clamp(44px, 4.6vw, 72px) / 1 var(--label);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.a-specs small {
  margin-left: 4px;
  font-size: 0.36em;
  letter-spacing: 0.1em;
  color: #b4352b;
}
.a-specs dd.word {
  padding-top: 0.4em;
  font: italic clamp(24px, 2.2vw, 34px) / 1.1 var(--serif);
  letter-spacing: -0.02em;
}
.a-btn {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--yellow);
}
.a-strip {
  position: relative;
  z-index: 1;
  height: 270px;
  margin: -60px calc(-1 * var(--pad)) 0;
}
.a-strip-img {
  position: absolute;
  inset: 0;
  background: url("../assets/images/hero-landscape.webp") no-repeat;
  background-size: cover;
  background-position: var(--sx, 50%) 100%;
  -webkit-mask: linear-gradient(180deg, #0000 0%, #000 45%);
  mask: linear-gradient(180deg, #0000 0%, #000 45%);
}
/* El paisaje se disuelve en el marrón del pie */
.a-strip:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #492c1d00 35%, var(--brown) 100%);
}

/* ---------- 04 Contacto: atardecer, foco que sigue al cursor y firma gigante ---------- */
.ft {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(ellipse 60% 35% at 50% 40%, #fc702b22, #0000 70%),
    linear-gradient(180deg, var(--brown) 0%, #3a2216 60%, #26150d 100%);
}
.ft:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    520px circle at var(--mx, 50%) var(--my, -600px),
    #fc702b30,
    #0000 70%
  );
}
.ft-inner {
  position: relative;
  padding: calc(var(--space) - 30px) var(--pad) 0;
}
.ft-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding-bottom: var(--space);
  text-align: center;
}
.ft-eagle {
  width: 110px;
  height: auto;
  filter: drop-shadow(0 10px 30px #fc702b55);
  animation: float 7s ease-in-out infinite;
}
.ft-head .eyebrow {
  color: var(--yellow);
}
.ft-head h2 {
  margin: 0;
  font-size: clamp(52px, 7.4vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.ft-head h2 em {
  padding-right: 0.08em;
  background: linear-gradient(100deg, var(--orange), #ffb35c 50%, var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ft-head > p {
  max-width: 540px;
  text-wrap: balance;
  margin: 0;
  font-size: 18px;
  color: #fff9dfcc;
}
.ft-btn {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--brown);
}
.ft-btn:hover {
  background: var(--yellow);
  border-color: var(--yellow);
}
.ft-btn.alt {
  background: transparent;
  border-color: #fff9df66;
  color: var(--cream);
}
.ft-btn.alt:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--brown);
}
/* Formulario de contacto */
.ft-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
  width: min(760px, 100%);
  margin-top: 14px;
  padding: 36px clamp(22px, 3vw, 40px);
  text-align: left;
  border: 1px solid #fff9df1f;
  border-radius: 28px;
  background: #fff9df08;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ft-form .full {
  grid-column: 1/-1;
}
.ft-field {
  display: grid;
  gap: 8px;
}
.ft-field label {
  font: 500 12px/1 var(--label);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--yellow);
}
.ft-field input,
.ft-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #fff9df2e;
  border-radius: 14px;
  background: #fff9df0d;
  color: var(--cream);
  font: 17px/1.5 Arial, Helvetica, sans-serif;
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    background 0.3s;
}
.ft-field textarea {
  min-height: 130px;
  resize: vertical;
}
.ft-field input:focus,
.ft-field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: #fff9df14;
  box-shadow: 0 0 0 3px #fc702b40;
}
.ft-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.ft-form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}
button.button {
  cursor: pointer;
}
button.button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 5px;
}
button.button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.ft-form .ft-status {
  min-height: 1.5em;
  margin: 0;
  font-size: 15px;
}
.ft-status[data-state="ok"] {
  color: var(--yellow);
}
.ft-status[data-state="error"] {
  color: #ff9a7a;
}
.ft-form .ft-privacy {
  margin: -8px 0 0;
  font-size: 12px;
  color: #fff9df88;
}
.ft-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding: 56px 0 50px;
  border-top: 1px solid #fff9df1f;
}
.ft-cols > div,
.ft-cols nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.ft-label {
  margin-bottom: 10px;
  font: 500 11px/1 var(--label);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--yellow);
}
.ft-cols a {
  font: italic 21px/1.35 var(--serif);
  letter-spacing: -0.02em;
  text-decoration: none;
  transition:
    color 0.3s,
    transform 0.4s var(--ease);
}
.ft-cols a:hover {
  color: var(--orange);
  transform: translateX(6px);
}
.ft-small {
  font-size: 13px;
  color: #fff9dfaa;
}
.ft-plates {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.ft-plates .plate {
  font-size: 12px;
}
.ft-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding: 26px 0 34px;
  border-top: 1px solid #fff9df1f;
}
.ft-base p {
  margin: 0;
  font: italic 20px var(--serif);
  color: var(--yellow);
}
.ft-base span {
  font-size: 12px;
  color: #fff9dfaa;
}

/* ---------- Revelado al scroll ---------- */
.motion-enabled [data-reveal] {
  transition:
    opacity 1.2s var(--ease),
    transform 1.2s var(--ease),
    filter 1.2s var(--ease);
}
.motion-enabled [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(60px);
  filter: blur(8px);
}
.motion-enabled .o-card .o-win {
  transition: clip-path 1.4s var(--ease) 0.15s;
}
.motion-enabled .o-card:not(.is-visible) .o-win {
  clip-path: inset(100% 0 0 0);
}
.motion-enabled .o-card:not(.is-visible) .o-img {
  transform: scale(1.25);
}
.motion-enabled .a-facts {
  transition-delay: 0.15s;
}

/* ---------- Animaciones ---------- */
@keyframes snow {
  to {
    transform: translateY(300px);
  }
}
@keyframes breathe {
  50% {
    transform: scale(1.12);
    opacity: 0.75;
  }
}
@keyframes orbit {
  from {
    transform: rotateX(28deg) rotateY(-22deg) rotateZ(0deg);
  }
  to {
    transform: rotateX(28deg) rotateY(-22deg) rotateZ(360deg);
  }
}
@keyframes bob {
  50% {
    translate: 0 -16px;
  }
}
@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(10px);
  }
}
@keyframes zoom-in {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
    filter: blur(14px);
  }
}
@keyframes cue {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  50.1% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes glow {
  50% {
    box-shadow: 0 0 180px 60px #fff3b088;
  }
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
@keyframes bubble {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  12% {
    opacity: 0.9;
  }
  50% {
    transform: translate(10px, -320px);
  }
  100% {
    transform: translate(-8px, -640px);
    opacity: 0;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid {
    min-height: 620px;
  }
  .hero-visual {
    height: 550px;
  }
  .hero-can {
    height: 480px;
  }
  .hero-copy {
    padding-bottom: 65px;
  }
  .o-head {
    grid-template-columns: 1fr;
  }
  .o-lede {
    justify-self: start;
  }
  .a-stage {
    height: 820px;
  }
  .a-can {
    height: 540px;
  }
  .a-sun {
    width: 460px;
    height: 460px;
    margin: -230px 0 0 -230px;
  }
  .a-notes .n1,
  .a-notes .n3 {
    right: calc(50% + 170px);
  }
  .a-notes .n2 {
    left: calc(50% + 170px);
  }
  .a-notes div {
    --len: 100px;
  }
  .a-badge {
    left: calc(50% + 110px);
    top: 26%;
    width: 110px;
  }
  .a-info {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .ft-cols {
    grid-template-columns: 1fr 1fr;
  }
  .ft-cols > :first-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 640px) {
  :root {
    --pad: 6vw;
  }
  body {
    font-size: 16px;
  }
  .header {
    height: 84px;
  }
  .header.is-scrolled {
    top: 10px;
    height: 62px;
    padding: 0 16px;
  }
  /* shortcut: en móvil el menú se oculta (los enlaces siguen en el pie); añadir menú hamburguesa si hace falta */
  .header nav {
    display: none;
  }
  .brand img {
    width: 93px;
    height: 57px;
  }
  .header.is-scrolled .brand img {
    width: 70px;
    height: 42px;
  }
  .button {
    min-height: 50px;
    padding: 12px 24px;
    font-size: 13px;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.22em;
  }
  .hero {
    padding: 110px var(--pad) 90px;
  }
  .hero-landscape {
    height: 1050px;
  }
  .hero-landscape img {
    object-position: 60% center;
  }
  .hero-landscape:after {
    background:
      linear-gradient(90deg, #08162e66, transparent),
      linear-gradient(0deg, var(--ink), transparent 55%);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-copy {
    padding: 40px 0 0;
  }
  .hero-eyebrow {
    margin-bottom: 20px;
  }
  h1 {
    margin-bottom: 20px;
    font-size: clamp(50px, 12.4vw, 79px);
  }
  h1 strong {
    font-size: 1.58em;
  }
  h1 em {
    white-space: normal;
  }
  .hero-copy > p:not(.eyebrow) {
    max-width: 300px;
    margin-bottom: 24px;
    font-size: 15px;
  }
  .hero-visual {
    height: 425px;
    margin-top: 10px;
  }
  .hero-can {
    height: 385px;
  }
  .halo {
    width: 78%;
    max-width: 315px;
  }
  .halo:after {
    inset: -20px;
  }
  .can-caption {
    bottom: 35px;
    left: 5px;
    font-size: 30px;
  }
  .can-caption span {
    font-size: 8px;
  }
  .hero-watermark {
    bottom: 32px;
    left: -6%;
    font-size: 22vw;
  }
  .leyenda {
    padding: var(--space) var(--pad) 90px;
  }
  .l-sky {
    height: 130px;
    margin-bottom: 36px;
  }
  .l-sky img {
    width: calc(var(--w, 68px) * 0.55);
  }
  .leyenda h2 {
    margin-bottom: 40px;
  }
  .l-text {
    font-size: 25px;
  }
  .oficio {
    padding-top: 120px;
  }
  .o-head {
    padding: 0 0 44px;
    gap: 20px;
  }
  .o-mark {
    width: 84px;
  }
  .o-rail {
    gap: 70px;
    padding-bottom: 50px;
  }
  .o-card {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .o-card:nth-child(2) .o-arch {
    order: 0;
  }
  .o-arch {
    aspect-ratio: 0.86;
  }
  .o-arch .plate {
    right: -6px;
  }
  .o-text h3 {
    font-size: 32px;
  }
  .o-text p {
    font-size: 15px;
  }
  .o-bands {
    height: 200px;
  }
  .o-band {
    padding: 14px 0;
  }
  .o-track img {
    width: 44px;
  }
  .a-stage {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0 140px;
  }
  .a-kicker {
    position: static;
    margin-bottom: 14px;
  }
  .a-title {
    position: relative;
    top: auto;
    font-size: 27vw;
  }
  .a-sun {
    top: 52%;
    width: 330px;
    height: 330px;
    margin: -165px 0 0 -165px;
  }
  .a-can {
    height: 420px;
    margin-top: -12px;
  }
  .a-bubbles {
    inset: 20% 10% 20%;
  }
  .a-notes {
    position: relative;
    inset: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 28px;
    margin-top: 34px;
  }
  .a-notes div,
  .a-notes .n1,
  .a-notes .n2,
  .a-notes .n3 {
    position: static;
    align-items: center;
    text-align: center;
  }
  .a-notes div:after {
    display: none;
  }
  .a-notes dd {
    font-size: 24px;
  }
  .a-badge {
    left: auto;
    right: 2%;
    top: 30%;
    width: 92px;
  }
  .a-badge img {
    width: 36px;
  }
  .a-info {
    margin-top: -100px;
    padding: 36px 24px;
    border-radius: 24px;
  }
  .a-specs {
    grid-template-columns: auto auto;
  }
  .a-specs div:last-child {
    grid-column: 1/-1;
  }
  .a-strip {
    height: 220px;
  }
  .ft-cols {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .ft-form {
    grid-template-columns: 1fr;
    padding: 26px 20px;
    border-radius: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-can {
    transform: rotate(-12deg);
  }
}
