/* =========================================================
   EXPO PINOS METEPEC · Landing 2026
   ========================================================= */
:root {
  --rojo: #981616;
  --rojo-2: #b81d1d;
  --vino: #5c0b0f;
  --vino-2: #3d070a;
  --crema: #f6f7e7;
  --papel: #f3efe2;
  --oro: #e8d39a;
  --oro-2: #c9a45c;
  --bosque: #0e2a1e;
  --bosque-2: #143826;
  --noche: #0b1533;
  --noche-2: #101d45;
  --tinta: #2a1310;
  --header-h: 76px;
  --intro-top: 76px;   /* espacio que ocupa el encabezado sobre el intro */
  --ann-h: calc(clamp(.85rem, 1.4vw, 1.7rem) * 1.9);  /* alto reservado para "Temporada 2026" */
  --cue-h: 96px;       /* alto reservado para "Descubre" */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  background: var(--rojo);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { html, body { overflow-x: clip; } }
img { display: block; max-width: 100%; }
a { color: inherit; }
svg { width: 1em; height: 1em; flex: none; }
.nowrap { white-space: nowrap; }
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--crema);
  transition: background .5s var(--ease), box-shadow .5s, backdrop-filter .5s;
}
.site-header .bar {
  width: min(1320px, 100% - 40px);
  margin-inline: auto;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.hdr-logo { justify-self: start; display: block; }
.hdr-logo img {
  width: 170px; height: auto;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.slogan {
  margin: 0;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  letter-spacing: .01em;
  color: var(--oro);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .8s var(--ease);
}
.slogan b { font-weight: 700; color: var(--crema); }
.slogan-star { width: 10px; height: 10px; color: var(--oro-2); }
.socials { justify-self: end; display: flex; gap: 6px; opacity: 0; transition: opacity .8s var(--ease); }
.socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--crema);
  border: 1px solid rgba(246, 247, 231, .22);
  transition: background .25s, color .25s, transform .25s, border-color .25s;
}
.socials a:hover { background: var(--crema); color: var(--rojo); transform: translateY(-2px); border-color: var(--crema); }
.socials svg { width: 18px; height: 18px; }

body.ready .slogan, body.ready .socials { opacity: 1; }
.site-header.solid {
  background: rgba(110, 13, 16, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(232, 211, 154, .18), 0 10px 30px rgba(30, 0, 0, .25);
}
.site-header.solid .hdr-logo img { opacity: 1; transform: none; }
.site-header.solid .slogan, .site-header.solid .socials { opacity: 1; }

/* ---------- Intro (escena original) ---------- */
.intro {
  --scene-scale: 1;
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
  background: var(--rojo);
}
#atmosphere { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Columna del intro: logo → fecha → "Descubre". Nada se encima:
   cada pieza ocupa su espacio y el logo se reduce según la altura. */
.intro-stack {
  position: absolute;
  inset: var(--intro-top) 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
}
.intro-main {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 4.2vh, 46px);
}
.brand {
  /* alto disponible = pantalla − encabezado − fecha − "Descubre" − espacios */
  --avail-h: calc(100vh - var(--intro-top) - var(--ann-h) - var(--cue-h) - 8.4vh - 24px);
  width: min(calc(580px * var(--scene-scale)), 84vw, max(150px, calc(var(--avail-h) * 1.3317)));
  aspect-ratio: 547.87 / 411.41;
  flex: none;
}
@supports (height: 100svh) {
  .brand { --avail-h: calc(100svh - var(--intro-top) - var(--ann-h) - var(--cue-h) - 8.4svh - 24px); }
}
.brand-logo {
  display: block; width: 100%; height: auto;
  transform-origin: center;
  filter: drop-shadow(0 0 9px #fff6d94d) drop-shadow(0 0 22px #fff0cc24);
  will-change: transform, opacity;
  animation: logo-arrive 4.2s cubic-bezier(.12, .65, .2, 1) both,
             logo-reveal .45s linear both,
             logo-glow 5.5s ease-in-out 4.2s infinite;
}
@keyframes logo-arrive { from { transform: scale(6.5); } to { transform: scale(1); } }
@keyframes logo-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes logo-glow {
  0%, 100% { filter: drop-shadow(0 0 9px #fff6d94d) drop-shadow(0 0 22px #fff0cc24); }
  50% { filter: drop-shadow(0 0 11px #fff8d980) drop-shadow(0 0 28px #ffdc7852); }
}
#announcement {
  flex: none;
  margin: 0;
  max-width: 100%;
  color: var(--oro);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(.85rem, 1.4vw, 1.7rem);
  font-weight: 400; line-height: 1.25; letter-spacing: .035em;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 2px 14px #00000059;
}
#announcement[hidden] { display: block; visibility: hidden; }
#announcement span { display: inline-block; width: max-content; margin-inline: auto; }
.announcement-title { font-size: calc(1em + 2pt); font-weight: 700; letter-spacing: .12em; }
#announcement.entering span { animation: write-horizontal .9s steps(12, end) both; }
@keyframes write-horizontal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }

.scroll-cue {
  flex: none;
  height: var(--cue-h);
  padding-bottom: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px;
  color: var(--oro); text-decoration: none;
  font-size: .72rem; letter-spacing: .32em; text-transform: uppercase;
  opacity: 0; transition: opacity 1s var(--ease);
}
.scroll-cue i { width: 1px; height: 40px; background: linear-gradient(var(--oro), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after {
  content: ''; position: absolute; left: -1px; top: -14px; width: 3px; height: 14px;
  border-radius: 3px; background: var(--crema);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { to { top: 40px; } }
body.cue .scroll-cue { opacity: .9; }

/* ---------- Shared bits ---------- */
.scallop { position: relative; }
.scallop::before {
  content: '';
  position: absolute; left: 0; right: 0; top: -21px; height: 22px;
  background: radial-gradient(circle at 22px 22px, var(--sbg) 21.5px, transparent 22.5px) repeat-x;
  background-size: 44px 22px;
  background-position: center top;
  pointer-events: none;
  z-index: 2;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 22px;
  font-size: .8rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--rojo);
}
.eyebrow svg { width: 18px; height: 18px; }
.eyebrow-gold { color: var(--oro); }
.eyebrow-gold::before { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .7; }

.display {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 50, 'opsz' 144;
  font-weight: 500;
  font-size: clamp(2.5rem, 6.2vw, 5.9rem);
  line-height: .98;
  letter-spacing: -.025em;
  color: var(--vino);
  text-wrap: balance;
}
.display em {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
  color: var(--rojo);
}
.display-light { color: var(--crema); }
.display-light em { color: var(--oro); }
.sec-head { max-width: 860px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head-split { max-width: none; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.sec-head-split .sec-sub { margin: 0 0 10px; justify-self: end; max-width: 380px; font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.35; color: rgba(246, 247, 231, .85); border-left: 2px solid var(--oro); padding-left: 22px; }
.sec-head-center { margin-inline: auto; text-align: center; }
.sec-sub {
  margin: 22px 0 0;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: rgba(246, 247, 231, .78);
  max-width: 640px;
}
.sec-head-center .sec-sub { margin-inline: auto; }
.sec-sub strong { color: var(--crema); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s;
  position: relative;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-3px); }
.btn-lg { padding: 19px 34px; font-size: 1.08rem; }
.btn-red { background: var(--rojo); color: var(--crema); box-shadow: 0 10px 26px -8px rgba(152, 22, 22, .65); }
.btn-red:hover { background: var(--rojo-2); box-shadow: 0 16px 32px -8px rgba(152, 22, 22, .75); }
.btn-line { border: 1.5px solid var(--vino); color: var(--vino); }
.btn-line:hover { background: var(--vino); color: var(--crema); }
.btn-gold { background: linear-gradient(135deg, var(--oro), var(--oro-2)); color: var(--vino-2); box-shadow: 0 10px 26px -10px rgba(232, 211, 154, .6); }
.btn-cream { background: var(--crema); color: var(--rojo); box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45); }
.btn-line-light { border: 1.5px solid rgba(246, 247, 231, .55); color: var(--crema); }
.btn-line-light:hover { background: var(--crema); color: var(--rojo); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Manifesto / CTA principal ---------- */
.manifesto {
  --sbg: var(--papel);
  background:
    radial-gradient(1200px 600px at 85% 10%, rgba(232, 211, 154, .35), transparent 60%),
    var(--papel);
  padding: clamp(90px, 11vw, 150px) 0 0;
  margin-top: 0;
}
.m-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.m-copy .display { font-size: clamp(2.6rem, 5.6vw, 5.4rem); }
.m-copy .display em { display: block; margin-top: .08em; }
.lead { margin: 30px 0 36px; max-width: 540px; font-size: 1.12rem; color: #5a3a33; }

.m-visual { position: relative; aspect-ratio: 1 / 1.02; }
.ph { margin: 0; position: absolute; overflow: hidden; border-radius: 22px; box-shadow: 0 30px 60px -24px rgba(60, 10, 10, .5); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-main { inset: 4% 0 18% 14%; border-radius: 220px 220px 24px 24px; }
.ph-a { width: 36%; aspect-ratio: 3 / 4; left: 0; bottom: 2%; border: 7px solid var(--papel); rotate: -5deg; }
.ph-b { width: 40%; aspect-ratio: 4 / 3; right: -3%; bottom: -4%; border: 7px solid var(--papel); rotate: 4deg; }
.seal {
  position: absolute; top: -2%; left: 2%;
  width: clamp(120px, 13vw, 168px); aspect-ratio: 1;
  display: grid; place-items: center;
  background: var(--rojo);
  border-radius: 50%;
  color: var(--crema);
  box-shadow: 0 18px 40px -12px rgba(152, 22, 22, .7);
}
.seal-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.seal-ring text { font-family: var(--sans); font-size: 13.5px; font-weight: 600; letter-spacing: 1px; fill: var(--oro); }
.seal-core { text-align: center; line-height: 1; font-family: var(--serif); }
.seal-core b { display: block; font-size: clamp(2.4rem, 3.4vw, 3.3rem); font-weight: 700; font-variation-settings: 'SOFT' 100; }
.seal-core span { font-style: italic; font-size: 1rem; color: var(--oro); }
@keyframes spin { to { transform: rotate(360deg); } }

.ribbon {
  margin-top: clamp(80px, 10vw, 130px);
  background: var(--rojo);
  color: var(--crema);
  transform: rotate(-1.6deg) scale(1.04);
  padding: 18px 0;
  overflow: hidden;
  position: relative; z-index: 3;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .5);
  margin-bottom: -28px;
}
.ribbon-track {
  display: flex; align-items: center; gap: 28px;
  width: max-content;
  animation: slide 38s linear infinite;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  white-space: nowrap;
}
.ribbon-track i { font-style: normal; color: var(--oro); font-size: .8em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Pinos ---------- */
.pinos {
  position: relative;
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(40, 110, 70, .35), transparent 60%),
    radial-gradient(700px 500px at 100% 60%, rgba(232, 211, 154, .08), transparent 60%),
    var(--bosque);
  color: var(--crema);
  padding: clamp(120px, 13vw, 180px) 0 clamp(90px, 10vw, 140px);
  overflow: hidden;
}
.trees { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3vw, 40px); }
.tree-card {
  background: linear-gradient(180deg, rgba(246, 247, 231, .06), rgba(246, 247, 231, .02));
  border: 1px solid rgba(232, 211, 154, .18);
  border-radius: 28px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), border-color .5s;
}
.tree-card:nth-child(2) { transition-delay: .12s; }
.tree-card:hover { border-color: rgba(232, 211, 154, .45); }
.tree-photo { position: relative; margin: 0; aspect-ratio: 4 / 3.3; overflow: hidden; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.slides { position: absolute; inset: 0; overflow: hidden; }
.slides-track { display: flex; height: 100%; transition: transform .75s var(--ease); will-change: transform; }
.slides-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.4s var(--ease); -webkit-user-drag: none; }
.tree-card:hover .slides-track img { transform: scale(1.08); }
.tree-photo.dragging .slides-track { transition: none; }
.tree-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 42, 30, .35) 0%, transparent 22%, transparent 55%, rgba(14, 42, 30, .9)); pointer-events: none; }

/* controles del carrusel */
.car-count {
  position: absolute; top: 18px; right: 22px; z-index: 2;
  font-size: .82rem; letter-spacing: .08em; color: var(--crema);
  padding: 6px 12px; border-radius: 99px;
  background: rgba(14, 42, 30, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(246, 247, 231, .25);
}
.car-count b { color: var(--oro); font-weight: 600; }
.car-btn {
  position: absolute; top: 42%; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(246, 247, 231, .4);
  background: rgba(14, 42, 30, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--crema); cursor: pointer;
  opacity: 0; transform: translateY(-50%) scale(.9);
  transition: opacity .3s, transform .3s var(--ease), background .25s, color .25s;
}
.car-btn svg { width: 20px; height: 20px; }
.car-prev { left: 16px; } .car-prev svg { transform: rotate(180deg); }
.car-next { right: 16px; }
.tree-photo:hover .car-btn, .car-btn:focus-visible { opacity: 1; transform: translateY(-50%) scale(1); }
.car-btn:hover { background: var(--oro); color: var(--vino-2); border-color: var(--oro); }
.car-dots { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 8px; }
.car-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 8px;
  background: rgba(246, 247, 231, .55); cursor: pointer;
  transition: width .4s var(--ease), background .3s;
}
.car-dots button[aria-current="true"] { width: 26px; background: var(--oro); }
.car-hint {
  position: absolute; left: 50%; top: 42%; z-index: 2;
  transform: translate(-50%, -50%);
  padding: 9px 16px; border-radius: 99px;
  font-size: .85rem; font-weight: 500; white-space: nowrap; color: var(--crema);
  background: rgba(14, 42, 30, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(246, 247, 231, .3);
  pointer-events: none; opacity: 0;
}
.tree-card.in .car-hint { animation: hint 3.6s ease 1.6s both; }
.tree-photo.used .car-hint { animation: none; opacity: 0; }
@keyframes hint { 0%, 100% { opacity: 0; } 15%, 75% { opacity: 1; } }
@media (hover: none) {
  .car-btn { opacity: 1; transform: translateY(-50%) scale(1); width: 40px; height: 40px; }
}
.tree-num {
  position: absolute; top: 18px; left: 22px; z-index: 2;
  font-family: var(--serif); font-style: italic; font-size: 1rem;
  color: var(--crema);
  padding: 6px 14px; border-radius: 99px;
  background: rgba(14, 42, 30, .55); backdrop-filter: blur(6px);
  border: 1px solid rgba(246, 247, 231, .25);
}
.tree-body { padding: 4px clamp(24px, 3vw, 40px) clamp(28px, 3vw, 40px); margin-top: -64px; position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; }
.tree-body h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  line-height: .95; letter-spacing: -.03em;
  color: var(--crema);
}
.tree-height { margin: 10px 0 0; font-size: 1.15rem; color: rgba(246, 247, 231, .8); }
.tree-height strong { color: var(--oro); font-family: var(--serif); font-size: 1.35em; font-weight: 600; }

.tape { position: relative; margin: 26px 0 8px; height: 50px; }
.tape-track { position: absolute; left: 0; right: 0; top: 6px; height: 10px; border-radius: 10px; background: rgba(246, 247, 231, .1); }
.tape-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #2f7a4f, var(--oro));
  transition: width 1.8s var(--ease) .35s;
}
.tree-card.in .tape-fill { width: calc(var(--h) / 2.5 * 100%); }
.tape-mark {
  position: absolute; right: 0; top: -34px; transform: translateX(50%);
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  background: var(--oro); color: var(--vino-2);
  padding: 3px 9px; border-radius: 6px; white-space: nowrap;
  opacity: 0; transition: opacity .5s 1.8s;
}
.tape-mark::after { content: ''; position: absolute; left: 50%; bottom: -4px; translate: -50% 0; border: 4px solid transparent; border-top-color: var(--oro); border-bottom: 0; }
.tree-card.in .tape-mark { opacity: 1; }
.tape-ticks span {
  position: absolute; top: 24px; left: calc(var(--p) * 100%);
  font-size: .72rem; color: rgba(246, 247, 231, .5); letter-spacing: .06em;
}
.tape-ticks span::before { content: ''; position: absolute; left: 0; top: -8px; width: 1px; height: 6px; background: rgba(246, 247, 231, .4); }
.traits { list-style: none; padding: 0; margin: 14px 0 30px; display: grid; gap: 10px; }
.traits li { display: flex; align-items: center; gap: 12px; color: rgba(246, 247, 231, .88); }
.traits li::before { content: ''; width: 8px; height: 8px; rotate: 45deg; background: var(--oro); flex: none; }
.tree-body .btn { align-self: flex-start; margin-top: auto; }

.help {
  margin-top: clamp(40px, 6vw, 70px);
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: center;
  background: var(--rojo);
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.help > * { min-width: 0; }
.help-photo { margin: 0; height: 100%; min-height: 300px; }
.help-photo img { width: 100%; height: 100%; object-fit: cover; }
.help-copy { padding: clamp(30px, 4.5vw, 64px); }
.script {
  margin: 0 0 12px;
  font-family: var(--serif); font-style: italic;
  font-variation-settings: 'SOFT' 100;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.05;
  color: var(--crema);
}
.help-copy p:not(.script) { margin: 0 0 26px; color: rgba(246, 247, 231, .85); max-width: 440px; }

/* ---------- Tienda ---------- */
.tienda {
  --sbg: var(--noche);
  background:
    radial-gradient(1000px 600px at 50% 0%, rgba(70, 90, 220, .35), transparent 60%),
    radial-gradient(800px 600px at 0% 100%, rgba(152, 22, 22, .28), transparent 60%),
    var(--noche);
  color: var(--crema);
  padding: 0 0 clamp(90px, 10vw, 140px);
}
.tienda::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255, 255, 255, .7), transparent),
    radial-gradient(1px 1px at 72% 12%, rgba(255, 255, 255, .6), transparent),
    radial-gradient(1.5px 1.5px at 88% 46%, rgba(232, 211, 154, .8), transparent),
    radial-gradient(1px 1px at 32% 64%, rgba(255, 255, 255, .5), transparent),
    radial-gradient(1.5px 1.5px at 56% 84%, rgba(232, 211, 154, .7), transparent),
    radial-gradient(1px 1px at 6% 90%, rgba(255, 255, 255, .5), transparent);
  background-size: 520px 520px;
  opacity: .8;
}
.tienda > * { position: relative; z-index: 1; }
.marquee { overflow: hidden; padding: 70px 0 clamp(60px, 8vw, 100px); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: slide 60s linear infinite; }
.marquee-track img {
  height: clamp(170px, 20vw, 260px); width: auto; aspect-ratio: 3 / 2;
  object-fit: cover; border-radius: 18px;
}
.marquee-track img:nth-child(3n+2) { aspect-ratio: 2 / 3; }
.marquee-track img { cursor: zoom-in; transition: filter .3s, transform .4s var(--ease); }
.marquee-track img:hover { filter: brightness(1.08); transform: translateY(-4px); }
body.lb-open .marquee-track { animation-play-state: paused; }

.rainbow em {
  background: linear-gradient(90deg, #ff5a5a, var(--oro) 30%, #7ec98f 55%, #8fa8ff 78%, #e79bd6);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: shimmer 8s ease-in-out infinite alternate;
  padding-right: .06em;
}
@keyframes shimmer { to { background-position: 100% 0; } }

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(120px, 13vw, 190px);
  gap: 14px;
}
.b { margin: 0; position: relative; overflow: hidden; border-radius: 20px; background: var(--noche-2); cursor: zoom-in; }
.b:focus-visible, .tree-photo:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; }
.b img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.b:hover img { transform: scale(1.07); }
.b figcaption {
  position: absolute; left: 12px; bottom: 12px;
  padding: 6px 13px; border-radius: 99px;
  font-size: .82rem; font-weight: 500;
  background: rgba(11, 21, 51, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(246, 247, 231, .2);
  transform: translateY(6px); opacity: .92;
  transition: transform .4s var(--ease), background .4s;
}
.b:hover figcaption { transform: none; background: var(--rojo); }
.b1 { grid-area: 1 / 1 / 3 / 4; }
.b2 { grid-area: 1 / 4 / 2 / 7; }
.b3 { grid-area: 2 / 4 / 4 / 5; }
.b4 { grid-area: 2 / 5 / 3 / 7; }
.b5 { grid-area: 3 / 1 / 5 / 2; }
.b6 { grid-area: 3 / 2 / 4 / 4; }
.b7 { grid-area: 3 / 5 / 5 / 6; }
.b8 { grid-area: 4 / 2 / 5 / 4; }
.b9 { grid-area: 3 / 6 / 5 / 7; }
.b10 { grid-area: 4 / 4 / 5 / 5; }
.bento .reveal:nth-child(3n+2) { transition-delay: .08s; }
.bento .reveal:nth-child(3n) { transition-delay: .16s; }

/* ---------- Visita ---------- */
.visita {
  --sbg: var(--rojo);
  background:
    radial-gradient(900px 600px at 0% 0%, rgba(255, 210, 150, .16), transparent 60%),
    radial-gradient(900px 700px at 100% 100%, rgba(40, 0, 0, .45), transparent 60%),
    var(--rojo);
  color: var(--crema);
  padding: clamp(100px, 11vw, 150px) 0;
}
#snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.visita .wrap { position: relative; z-index: 1; }
.v-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px 0 36px; }
.info-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px;
  border-radius: 20px;
  background: rgba(60, 5, 8, .28);
  border: 1px solid rgba(232, 211, 154, .22);
}
.info-wide { grid-column: 1 / -1; }
.info-item > svg { width: 26px; height: 26px; color: var(--oro); margin-top: 2px; }
.info-item h3 { margin: 0 0 4px; font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--oro); }
.info-item p { margin: 0; line-height: 1.45; font-size: 1.05rem; }
.info-item p b { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.map {
  position: relative;
  aspect-ratio: 4 / 4.4;
  border-radius: 240px 240px 28px 28px;
  overflow: hidden;
  border: 8px solid var(--crema);
  box-shadow: 0 40px 80px -30px rgba(30, 0, 0, .8);
  background: var(--papel);
}
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.85) contrast(1.02); }
.map-tag {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rojo); color: var(--crema);
  padding: 11px 20px; border-radius: 99px;
  text-decoration: none; font-weight: 600; font-size: .92rem;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5);
  white-space: nowrap;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--vino-2);
  color: rgba(246, 247, 231, .75);
  padding: 70px 0 110px;
  text-align: center;
}
.f-grid { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.f-logo { width: 190px; height: auto; opacity: .95; }
.f-slogan { margin: 4px 0 6px; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--oro); }
.socials-lg { opacity: 1 !important; }
.socials-lg a { width: 48px; height: 48px; }
.socials-lg svg { width: 20px; height: 20px; }
.f-areas { margin: 18px auto 0; max-width: 640px; font-size: .8rem; line-height: 1.6; opacity: .55; text-wrap: balance; }
.f-legal { margin: 10px 0 0; font-size: .85rem; opacity: .7; }

/* ---------- Popup de fotos ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 12, 30, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .3s ease;
}
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lb-stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 70px 84px; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; max-height: 100%; }
.lb-img {
  display: block; max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100svh - 170px);
  width: auto; height: auto; object-fit: contain;
  border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  transform: scale(.96); transition: transform .35s var(--ease), opacity .25s;
}
.lightbox.open .lb-img { transform: none; }
.lightbox.loading .lb-img { opacity: .35; }
.lb-cap { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--oro); }
.lb-cap[hidden] { display: none; }
.lb-btn {
  position: absolute; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(246, 247, 231, .35);
  background: rgba(246, 247, 231, .1); color: var(--crema);
  cursor: pointer; transition: background .25s, color .25s;
}
.lb-btn:hover { background: var(--crema); color: var(--rojo); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 16px; right: 16px; font-size: 2rem; line-height: 1; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-prev svg { transform: rotate(180deg); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); font-size: .85rem; letter-spacing: .1em; color: rgba(246, 247, 231, .75); }
body.lb-open { overflow: hidden; }
body.lb-open .fab { opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
  .lb-stage { padding: 72px 12px; }
  .lb-img { max-height: calc(100svh - 190px); }
  /* flechas a los lados, sobre la orilla de la foto, con fondo oscuro para que se distingan */
  .lb-prev, .lb-next { width: 44px; height: 44px; background: rgba(20, 8, 8, .55); border-color: rgba(246, 247, 231, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .lb-btn:hover { background: rgba(20, 8, 8, .55); color: var(--crema); }
  .lb-close:hover { background: var(--crema); color: var(--rojo); }
}

/* ---------- FAB WhatsApp ---------- */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px 13px 15px;
  border-radius: 999px;
  background: #1fa855; color: #fff;
  text-decoration: none; font-weight: 600;
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, .45);
  transform: translateY(120px); opacity: 0;
  transition: transform .6s var(--ease), opacity .6s, background .25s;
}
.fab svg { width: 26px; height: 26px; }
.fab::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(31, 168, 85, .55);
  animation: pulse 2.6s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 16px rgba(31, 168, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 168, 85, 0); } }
.fab:hover { background: #18914a; }
body.ready .fab { transform: none; opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-header .bar { grid-template-columns: auto 1fr auto; }
  .slogan { justify-self: center; font-size: .92rem; }
}

@media (max-width: 900px) {
  :root { --header-h: 62px; --intro-top: 104px; --cue-h: 84px; --ann-h: calc(1.1rem * 1.9); }
  html { scroll-padding-top: 100px; }
  .site-header .bar {
    grid-template-columns: 1fr auto;
    grid-template-areas: "logo social" "slogan slogan";
    height: auto; row-gap: 0; padding-top: 10px;
  }
  .hdr-logo { grid-area: logo; }
  .hdr-logo img { width: 128px; }
  .socials { grid-area: social; gap: 4px; }
  .socials a { width: 36px; height: 36px; }
  .socials svg { width: 16px; height: 16px; }
  .slogan {
    grid-area: slogan; justify-self: stretch; justify-content: center;
    font-size: .86rem; padding: 6px 0 8px;
    border-top: 1px solid rgba(232, 211, 154, .16); margin-top: 10px;
  }
  .m-grid, .v-grid { grid-template-columns: 1fr; }
  .m-visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .trees { grid-template-columns: 1fr; }
  .help { grid-template-columns: 1fr; }
  .help-photo { min-height: 240px; aspect-ratio: 16 / 9; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; grid-auto-flow: dense; }
  .sec-head-split { grid-template-columns: 1fr; gap: 22px; }
  .sec-head-split .sec-sub { justify-self: start; }
  .bento .b { grid-area: auto; }
  .bento .b1, .bento .b2, .bento .b4, .bento .b6, .bento .b8 { grid-column: span 2; }
  .bento .b1, .bento .b3, .bento .b5, .bento .b7, .bento .b9 { grid-row: span 2; }
  .b10 { display: none; }
  .map { aspect-ratio: 1 / 1.05; border-radius: 180px 180px 24px 24px; max-width: 560px; width: 100%; margin-inline: auto; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .site-header .bar { width: calc(100% - 24px); }
  .hdr-logo img { width: 112px; }
  .socials a { width: 34px; height: 34px; border-color: transparent; }
  #announcement { font-size: clamp(.9rem, 4vw, 1.1rem); letter-spacing: .02em; }
  .display { font-size: clamp(2.3rem, 10.5vw, 3rem); }
  .m-copy .display { font-size: clamp(2.3rem, 10.5vw, 3rem); }
  .nowrap { white-space: normal; }
  .eyebrow { font-size: .72rem; letter-spacing: .14em; }
  .actions .btn { flex: 1 1 100%; }
  .info { grid-template-columns: 1fr; }
  .tree-body h3 { font-size: 3.4rem; }
  .fab { padding: 15px; right: 16px; bottom: 16px; }
  .fab span { display: none; }
  .ribbon { padding: 14px 0; }
}

@media (max-height: 560px) {
  :root { --cue-h: 64px; }
  .intro { min-height: 340px; }
  .scroll-cue i { height: 24px; }
  @keyframes cue { to { top: 24px; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand-logo, #announcement.entering span, .seal-ring, .ribbon-track, .marquee-track, .rainbow em, .fab::before, .scroll-cue i::after { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tape-fill, .slides-track { transition: none; }
  .car-hint { display: none; }
}
