/* =============================================================
   SUMMIT Gem Studio — styles.css
   ============================================================= */

/* =============================================================
   0. Fonts — Jura + Courier Prime loaded via Google Fonts <link>
   in index.html (the provided CourierPrime-Regular.ttf was a license
   text file, not a font; Google Fonts serves the genuine typefaces).
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --ink: #102d23;
  --ink-deep: #0a1a14;
  --ink-2: #0d2419;
  --gold: #bd9034;
  --gold-soft: #d8af5a;
  --cream: #f3efe6;
  --cream-dim: #c8cfc6;
  --emerald: #1f7a5a;

  --font-display: "Jura", system-ui, sans-serif;
  --font-mono: "Courier Prime", "Courier New", monospace;

  --nav-h: 76px;
  --maxw: 1920px;
  --gutter: clamp(1.2rem, 4vw, 4rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream);
  background: var(--ink-deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.05; font-weight: 400; }
::selection { background: var(--gold); color: var(--ink-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* =============================================================
   3. Utilities
   ============================================================= */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 10000;
  padding: .6rem 1rem; background: var(--cream); color: var(--ink-deep);
  border-radius: 8px; font-family: var(--font-display);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   4. Background stage (crystalline 3D parallax)
   ============================================================= */
.bg-stage {
  position: fixed; inset: 0; z-index: -2;
  overflow: hidden; pointer-events: none;
  background: var(--ink-deep);
  perspective: 900px;
}
.bg-layer {
  position: absolute; inset: -8% 0 -25% 0;
  background: url("assets/img/fondo-landing.webp?q=2") top center / cover no-repeat;
  will-change: transform;
  transform: translate3d(0,0,0);
}
.bg-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(16,45,35,.35), transparent 70%),
    linear-gradient(180deg, rgba(10,26,20,.55), rgba(10,26,20,.78));
}

/* =============================================================
   5. Floating nav
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; justify-content: center;
  padding: 18px var(--gutter);
  transition: padding .4s var(--ease-out);
}
.nav__inner {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  gap: 0;
  width: max-content; max-width: 100%;
  padding: 12px 26px;
  border-radius: 999px;
  background: rgba(10, 26, 20, .35);
  border: 1px solid rgba(189, 144, 52, .18);
  backdrop-filter: blur(10px) saturate(135%);
  -webkit-backdrop-filter: blur(10px) saturate(135%);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  transition: background .35s var(--ease-out), border-color .35s var(--ease-out);
}
.nav.is-stuck .nav__inner {
  background: rgba(10, 26, 20, .82);
  border-color: rgba(189, 144, 52, .3);
}
/* Logo: hidden over the hero, reveals + widens the pill once past the banner */
.nav__logo {
  display: flex; align-items: center;
  width: 0; opacity: 0; overflow: hidden; pointer-events: none; margin-right: 0;
  transition: width .35s var(--ease-out), opacity .3s var(--ease-out), margin-right .35s var(--ease-out);
}
.nav__logo img { height: 30px; width: auto; transform: translateX(-6px); transition: transform .35s var(--ease-out); }
.nav.is-past-hero .nav__logo {
  width: 78px; opacity: 1; pointer-events: auto; margin-right: 1.4rem;
}
.nav.is-past-hero .nav__logo img { transform: none; }
.nav__menu { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav__menu a {
  font-family: var(--font-display);
  font-size: .82rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cream); position: relative; padding: 4px 2px;
  transition: color .3s var(--ease-out);
}
.nav__menu a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--gold); transition: width .35s var(--ease-out);
}
.nav__menu a:hover { color: var(--gold-soft); }
.nav__menu a:hover::after { width: 100%; }
.nav__toggle { display: none; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 22px; }
.nav__toggle span { display: block; height: 2px; width: 100%; background: var(--cream);
  border-radius: 2px; margin: 5px 0; transition: transform .3s var(--ease-out), opacity .3s; }

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 983;   /* show the full banner — logo & text always visible */
  overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.4s var(--ease-soft);
  will-change: opacity;
}
.hero__slide img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center;
}
.hero__slide.is-active { opacity: 1; }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,26,20,.55) 0%, rgba(10,26,20,0) 26%),
    linear-gradient(0deg, rgba(10,26,20,.92) 0%, rgba(10,26,20,.4) 12%, rgba(10,26,20,0) 32%);
}
/* scroll cue: down arrow + label (mobile only — hidden on desktop) */
.hero__cue {
  display: none;
  position: absolute; left: 50%; bottom: clamp(1rem, 3vh, 1.8rem); transform: translateX(-50%);
  z-index: 3; justify-items: center; gap: .35rem;
  color: var(--cream); text-decoration: none;
}
.hero__cue span {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: .68rem; letter-spacing: .3em; opacity: .85;
}
.hero__cue svg { animation: cueBounce 1.8s var(--ease-soft) infinite; }
.hero__cue:hover { color: var(--gold-soft); }
@keyframes cueBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
.hero__scroll {
  display: none; /* replaced by the centered .hero__cue */
  position: absolute; left: var(--gutter); bottom: clamp(1.5rem, 5vh, 3rem);
  font-family: var(--font-display); font-size: .72rem; letter-spacing: .4em;
  text-transform: uppercase; color: var(--cream-dim);
  writing-mode: vertical-rl; opacity: .8;
}
.hero__scroll::after { content: ""; display:block; width:1px; height:40px; margin:8px auto 0;
  background: linear-gradient(var(--gold), transparent); }

/* =============================================================
   7. Bands (bilingual statements)
   ============================================================= */
.band {
  position: relative;
  text-align: center;
  padding: clamp(3.5rem, 9vw, 7rem) var(--gutter);
  background: linear-gradient(180deg, rgba(16,45,35,.92), rgba(13,36,25,.92));
}
.band--phrase {
  background: linear-gradient(rgba(10,26,20,.62), rgba(10,26,20,.72)),
              url("assets/img/fondo-frases.webp?q=2") center / cover no-repeat;
}
.band__es {
  font-family: var(--font-mono); font-weight: 700;
  color: var(--gold-soft);
  font-size: clamp(1.15rem, 2.7vw, 2rem);
  letter-spacing: .02em; max-width: 24ch; margin: 0 auto .9rem;
}
.band__en {
  font-family: var(--font-mono); font-style: italic;
  color: var(--cream); opacity: .9;
  font-size: clamp(.95rem, 1.8vw, 1.3rem); max-width: 30ch; margin: 0 auto;
}
/* white separator line between the Spanish and English text pairs */
.txt-sep {
  display: block; width: clamp(180px, 38%, 480px); height: 1px;
  background: rgba(243, 239, 230, .5); margin: 1.3rem auto;
}
/* statement band — spans wide like the mockup */
.band--statement .band__es {
  max-width: 90%;
  font-size: clamp(1.25rem, 3vw, 2.5rem);
  letter-spacing: .02em;
}
.band--statement .band__en {
  max-width: 82%;
  font-size: clamp(.98rem, 2vw, 1.45rem);
}

/* phrase band spans wider than the statement band */
.band--phrase { padding-block: clamp(4rem, 10vw, 8rem); }
.band--phrase .band__es {
  max-width: 100%;
  font-size: clamp(1.3rem, 2.9vw, 2.5rem);
  letter-spacing: .02em; margin-bottom: 1.1rem;
}
.band--phrase .band__en {
  max-width: 90%;
  font-size: clamp(1rem, 2.1vw, 1.55rem);
}

/* =============================================================
   8. Accesorios (category rows)
   ============================================================= */
.accesorios { position: relative; }
.cat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.cat__pieces { display: contents; }
.cat__label {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1.6rem, 4vw, 3.6rem);
  background: linear-gradient(rgba(10,26,20,.5), rgba(10,26,20,.66)),
             url("assets/img/fondo-landing.webp?q=2") center / cover no-repeat;
  overflow: hidden;
}
.cat__label-inner {
  display: inline-flex; flex-direction: column; align-items: center; gap: 1.1rem;
  text-align: center;
}
.cat__label h2 {
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .3em;
  color: var(--gold-soft);
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  transition: letter-spacing .5s var(--ease-out), color .5s var(--ease-out);
}
.cat__rule { display: block; width: 100%; height: 2px; background: var(--gold);
  transform-origin: center; transition: transform .5s var(--ease-out); }
/* hover: subtle realce on the label */
.cat__label:hover h2 { letter-spacing: .38em; color: var(--gold); }
.cat__label:hover .cat__rule { transform: scaleX(1.14); }
.piece {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 4;
}
.piece img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease-out), filter .5s var(--ease-out);
  will-change: transform;
}
.piece::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border: 1px solid rgba(189,144,52,0);
  transition: border-color .5s var(--ease-out);
}
/* hover: realce — zoom + brillo + borde dorado (sin texto) */
.piece:hover img { transform: scale(1.07); filter: brightness(1.08); }
.piece:hover::after { border-color: rgba(189,144,52,.55); }

/* =============================================================
   9. Gallery (mosaic masonry)
   ============================================================= */
.gallery {
  position: relative;
  padding: clamp(2rem, 5vw, 4.5rem) var(--gutter) clamp(1rem, 3vw, 2.5rem);
  background: linear-gradient(180deg, rgba(10,26,20,.4), rgba(10,26,20,.55));
}
.gallery__viewport { position: relative; }
.gallery__nav { display: none; } /* shown only in the mobile carousel */
/* Exact mosaic: 4-column grid reproducing the mockup distribution.
   Row unit + spans derived from the pre-sized source images (each
   column totals 70 row-units, so all columns align perfectly). */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1.55vw;
  gap: 0.7vw;
}
.ph {
  position: relative; overflow: hidden; border-radius: 4px;
  background: var(--ink-2); will-change: transform;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.ph img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-out), opacity .5s var(--ease-out);
  will-change: transform;
}
.g1  { grid-column: 1;          grid-row: 1  / span 10; }
.g2  { grid-column: 2 / span 3; grid-row: 1  / span 19; }
.g3  { grid-column: 1;          grid-row: 11 / span 25; }
.g4  { grid-column: 2 / span 2; grid-row: 20 / span 16; }
.g5  { grid-column: 4;          grid-row: 20 / span 16; }
.g6  { grid-column: 1;          grid-row: 36 / span 17; }
.g7  { grid-column: 2;          grid-row: 36 / span 17; }
.g8  { grid-column: 3 / span 2; grid-row: 36 / span 17; }
.g9  { grid-column: 1;          grid-row: 53 / span 18; }
.g10 { grid-column: 2 / span 2; grid-row: 53 / span 18; }
.g11 { grid-column: 4;          grid-row: 53 / span 18; }
.ph::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid rgba(189,144,52,0); transition: border-color .4s var(--ease-out);
  pointer-events: none; border-radius: 4px;
}
/* full-image dark overlay with the piece's spec */
.ph__desc {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .5rem;
  padding: clamp(1rem, 6%, 1.9rem);
  background: rgba(7, 18, 13, .72);
  color: var(--cream); text-align: center;
  font-family: var(--font-mono); font-size: clamp(.76rem, 1.4vw, .96rem); line-height: 1.5;
  opacity: 0; transition: opacity .4s var(--ease-out);
}
.ph__desc .ph__row b { color: var(--gold-soft); font-weight: 700; }
/* web: reveal on hover or click; the image stays still under the overlay */
.ph:hover img, .ph.is-info img { transform: scale(1.04); }
.ph:hover::after, .ph.is-info::after { border-color: rgba(189,144,52,.5); }
.ph:hover .ph__desc, .ph.is-info .ph__desc { opacity: 1; }
/* "+" badge hinting the tap/click info overlay (turns to × when open) */
.ph::before {
  content: "+"; position: absolute; top: 8px; right: 9px; z-index: 4;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; line-height: 1;
  font-family: var(--font-display); font-size: 1.15rem;
  background: rgba(10, 26, 20, .5); color: var(--gold-soft);
  border: 1px solid rgba(189, 144, 52, .5);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  pointer-events: none;
  transition: transform .35s var(--ease-out), background .3s var(--ease-out), color .3s var(--ease-out);
}
.ph:hover::before, .ph.is-info::before { transform: rotate(45deg); background: var(--gold); color: var(--ink-deep); }
.gallery__handle { position: relative; height: 56px; margin-top: 1.2rem; }
.gallery__ig {
  position: absolute; top: 0; right: 0;
  font-family: var(--font-display); text-transform: uppercase;
  color: var(--cream); letter-spacing: .18em;
  font-size: clamp(.9rem, 1.5vw, 1.2rem);
  transition: color .3s var(--ease-out);
}
.gallery__ig:hover { color: var(--gold-soft); }
.gallery__line { position: absolute; left: 0; bottom: 4px; width: 100%; height: 30px; display: block; }

/* =============================================================
   10. Visítanos
   ============================================================= */
.visit {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: start;
  column-gap: clamp(1.2rem, 3vw, 3.5rem);
  padding: clamp(2.5rem, 6vw, 5.5rem) var(--gutter);
  background: linear-gradient(180deg, rgba(16,45,35,.94), rgba(13,36,25,.96));
}
.visit__info { align-self: start; }
.visit__kicker { font-family: var(--font-mono); font-weight: 700;
  color: var(--cream); letter-spacing: .04em;
  font-size: clamp(1.1rem, 2vw, 1.5rem); margin-bottom: .8rem; }
.visit__place { font-family: var(--font-mono); font-weight: 700;
  color: var(--gold-soft); font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1; margin-bottom: 1rem; }
.visit__addr { font-family: var(--font-mono); color: var(--cream);
  font-size: clamp(1rem, 1.8vw, 1.4rem); margin-bottom: 2rem; }
.visit__hours { display: flex; flex-direction: column; gap: 1rem; max-width: 420px; }
.hourbox {
  border: 1px solid rgba(189,144,52,.4); border-radius: 4px;
  padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: .2rem;
}
.hourbox span { font-family: var(--font-mono); color: var(--cream); font-size: 1.05rem; }
.hourbox strong { font-family: var(--font-mono); font-weight: 700; color: var(--gold-soft);
  font-size: 1.15rem; letter-spacing: .02em; }
.visit__map { align-self: start; border-radius: 4px; overflow: hidden; }
.visit__map iframe { width: 100%; height: clamp(340px, 30vw, 460px); border: 0; display: block;
  filter: saturate(.95); }

/* =============================================================
   10b. Reseñas (Google reviews)
   ============================================================= */
.reviews {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7rem) var(--gutter);
  background: linear-gradient(180deg, rgba(10,26,20,.42), rgba(13,36,25,.8));
}
.sg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.star { width: clamp(20px, 2.4vw, 26px); height: clamp(20px, 2.4vw, 26px); fill: var(--gold); display: block; }
.stars { display: inline-flex; gap: .16rem; }
.stars--sm .star { width: 15px; height: 15px; }

.reviews__head { text-align: center; margin-bottom: clamp(2.4rem, 5vw, 3.8rem); }
.reviews__title {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: .22em; color: var(--gold-soft);
  font-size: clamp(1.15rem, 2.4vw, 1.8rem); margin-bottom: 1.5rem;
}
.reviews__rating {
  display: inline-flex; align-items: center; gap: .9rem;
  flex-wrap: wrap; justify-content: center;
}
.reviews__score {
  font-family: var(--font-display); font-weight: 700; color: var(--cream);
  font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1;
}
.reviews__source {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); color: var(--cream-dim);
  font-size: clamp(.85rem, 1.4vw, 1rem);
  padding-left: .9rem; border-left: 1px solid rgba(189,144,52,.4);
  transition: color .3s var(--ease-out);
}
.reviews__source:hover { color: var(--gold-soft); }
.g-mark { width: 18px; height: 18px; flex: none; }

/* Featured pull-quote */
.reviews__feature {
  max-width: 880px; margin: 0 auto clamp(2.6rem, 5vw, 3.8rem);
  text-align: center; padding: 0 clamp(1rem, 3vw, 2rem);
}
.quote-mark {
  display: block; font-family: var(--font-display); font-weight: 700;
  color: var(--gold); opacity: .5; line-height: .5;
  font-size: clamp(4rem, 9vw, 7rem); height: .5em;
}
.reviews__feature blockquote {
  font-family: var(--font-mono); color: var(--cream);
  font-size: clamp(1.1rem, 2.3vw, 1.7rem); line-height: 1.5; letter-spacing: .01em;
}
.reviews__feature .txt-sep { margin: 1.6rem auto 1.2rem; }
.reviews__feature figcaption { display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.r-name {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .16em;
  color: var(--gold-soft); font-size: clamp(.9rem, 1.6vw, 1.1rem);
}

/* Grid of reviews */
.reviews__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem); max-width: 1200px; margin: 0 auto;
}
.rev {
  border: 1px solid rgba(189,144,52,.25); border-radius: 6px;
  background: rgba(16,45,35,.4);
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  display: flex; flex-direction: column; gap: 1.1rem;
  transition: transform .4s var(--ease-out), border-color .4s var(--ease-out), background .4s var(--ease-out);
}
.rev:hover { transform: translateY(-4px); border-color: rgba(189,144,52,.6); background: rgba(16,45,35,.62); }
.rev__text {
  font-family: var(--font-mono); color: var(--cream);
  font-size: clamp(.95rem, 1.5vw, 1.05rem); line-height: 1.55; flex: 1;
}
.rev__by { display: flex; align-items: center; gap: .65rem; }
.rev__avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--ink-deep); font-family: var(--font-display); font-weight: 700; font-size: 1rem;
}
.rev__name {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em;
  color: var(--cream); font-size: .82rem;
}

/* CTA */
.reviews__cta { text-align: center; margin-top: clamp(2.4rem, 4vw, 3.4rem); }
.pill--ghost {
  background: transparent; color: var(--cream);
  border: 1px solid rgba(189,144,52,.5);
}
.pill--ghost:hover {
  background: rgba(189,144,52,.12); color: var(--gold-soft);
  box-shadow: none; transform: translateY(-3px);
}

@media (max-width: 900px) { .reviews__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .reviews__grid { grid-template-columns: 1fr; }
  .reviews__rating { gap: .5rem; }
  .reviews__source { border-left: 0; padding-left: 0; width: 100%; justify-content: center; }
}

/* =============================================================
   11. FAQ (AEO)
   ============================================================= */
.faq {
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
  background: linear-gradient(180deg, rgba(10,26,20,.7), rgba(10,26,20,.85));
  max-width: var(--maxw); margin: 0 auto;
}
.faq__title {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: .26em; color: var(--gold-soft); text-align: center;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem); margin-bottom: 2.5rem;
}
.faq__list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; }
.faq__item {
  border: 1px solid rgba(189,144,52,.25); border-radius: 6px;
  background: rgba(16,45,35,.4); overflow: hidden;
}
.faq__item summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.3rem;
  font-family: var(--font-mono); font-weight: 700; color: var(--cream);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--gold-soft); font-size: 1.4rem; transition: transform .3s var(--ease-out); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 1.3rem 1.2rem; color: var(--cream-dim); font-family: var(--font-mono); }

/* =============================================================
   12. Footer
   ============================================================= */
.footer {
  position: relative; text-align: center;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(2rem, 4vw, 3rem);
  background: linear-gradient(rgba(5,12,9,.7), rgba(5,12,9,.85)),
              url("assets/img/fondo-footer.webp?q=2") center / cover no-repeat;
}
.footer__logo { width: clamp(180px, 22vw, 280px); height: auto; margin: 0 auto 1.8rem; }
.footer__es { font-family: var(--font-mono); font-weight: 700; color: var(--gold-soft);
  font-size: clamp(1.05rem, 2.2vw, 1.6rem); margin-bottom: .5rem; }
.footer__en { font-family: var(--font-mono); font-style: italic; color: var(--cream);
  opacity: .9; font-size: clamp(.9rem, 1.6vw, 1.2rem); margin-bottom: 2rem; }
.footer__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 2.4rem; }
.pill {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .7rem 1.3rem; border-radius: 999px;
  background: var(--gold); color: var(--ink-deep);
  font-family: var(--font-display); font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  transition: transform .3s var(--ease-out), background .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.pill:hover { transform: translateY(-3px); background: var(--gold-soft);
  box-shadow: 0 12px 30px rgba(189,144,52,.3); }
.footer__copy { font-family: var(--font-mono); color: var(--cream-dim); font-size: .85rem; letter-spacing: .04em; }

/* =============================================================
   12b. WhatsApp modal (desktop)
   ============================================================= */
.wa-modal {
  position: fixed; inset: 0; margin: auto;
  height: fit-content; max-height: 92vh;
  border: 0; border-radius: 18px;
  padding: 2.4rem 1.8rem 1.8rem;
  max-width: 360px; width: 90vw;
  background: linear-gradient(180deg, var(--ink), var(--ink-deep));
  color: var(--cream); text-align: center;
  border: 1px solid rgba(189,144,52,.3);
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}
.wa-modal::backdrop { background: rgba(5,12,9,.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.wa-modal[open] { animation: waIn .32s var(--ease-out); }
@keyframes waIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.wa-modal__close { position: absolute; top: 8px; right: 14px; font-size: 1.9rem; line-height: 1; color: var(--cream-dim); }
.wa-modal__close:hover { color: var(--gold-soft); }
.wa-modal__title { font-family: var(--font-mono); font-weight: 700; color: var(--gold-soft); font-size: 1.3rem; margin-bottom: .6rem; }
.wa-modal__lead { font-family: var(--font-mono); font-size: .92rem; color: var(--cream-dim); margin-bottom: 1.4rem; }
.wa-modal__qr { background: #fff; padding: 12px; border-radius: 12px; width: max-content; margin: 0 auto 1.4rem; line-height: 0; }
.wa-modal__qr img { width: 200px; height: 200px; display: block; }
.wa-modal__web { margin: 0 auto; }

/* =============================================================
   12c. Floating WhatsApp button
   ============================================================= */
.wa-fab {
  position: fixed; z-index: 900;
  right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: var(--ink-deep);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  opacity: 0; transform: translateY(24px) scale(.6); pointer-events: none;
  transition: opacity .45s var(--ease-out), transform .55s var(--ease-out), background .3s var(--ease-out);
}
.wa-fab.is-visible { opacity: 1; transform: none; pointer-events: auto;
  animation: waPulse 2.6s ease-in-out infinite; }
.wa-fab:hover { background: var(--gold-soft); }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(0,0,0,.35), 0 0 0 0 rgba(189,144,52,.45); }
  50%      { box-shadow: 0 12px 30px rgba(0,0,0,.35), 0 0 0 14px rgba(189,144,52,0); }
}

/* =============================================================
   13. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 9000;
  display: grid; place-items: center;
  background: var(--ink-deep);
  will-change: transform;
  animation: splashSafety .01s 4.8s forwards;
}
.splash__logo { width: clamp(180px, 30vw, 260px); height: auto;
  animation: splashPulse 1.8s var(--ease-soft) infinite alternate; }
/* Exit: blackout slides straight up, revealing the banner */
.splash.is-out { animation: splashUp .9s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
@keyframes splashUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-104%); }
}
@keyframes splashSafety { to { transform: translateY(-104%); pointer-events: none; } }
@keyframes splashPulse { from { opacity: .55; transform: scale(.98); } to { opacity: 1; transform: scale(1); } }

/* =============================================================
   14. Reveal on scroll
   ============================================================= */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.is-revealed { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }   /* defensive */

/* =============================================================
   15. Responsive
   ============================================================= */
/* Below desktop, the exact 4-col mosaic relaxes into a masonry */
@media (max-width: 900px) {
  .gallery__grid { display: block; columns: 2; column-gap: 10px; }
  .gallery__grid .ph { grid-column: auto; grid-row: auto;
    margin: 0 0 10px; break-inside: avoid; }
  .gallery__grid .ph img { height: auto; }
}

@media (max-width: 720px) {
  .nav__inner { justify-content: space-between; width: 100%; padding: 12px 18px; }
  /* mobile: logo always visible so the pill isn't empty */
  .nav__logo { width: auto; opacity: 1; pointer-events: auto; margin-right: 0; }
  .nav__logo img { height: 26px; transform: none; }
  /* mobile hero: dedicated vertical banners shown in full (jewel + logo) */
  .hero { aspect-ratio: 886 / 1158; }
  .hero__slide img { object-position: center; }
  /* lighter bottom fade so the banner's own logo stays clean */
  .hero__overlay { background: linear-gradient(0deg, rgba(10,26,20,.35) 0%, transparent 18%); }
  /* scroll cue: compact dark-circle arrow at the very bottom (mobile only) */
  .hero__cue { display: grid; bottom: .55rem; }
  .hero__cue span { display: none; }
  .hero__cue svg { width: 36px; height: 36px; padding: 6px; border-radius: 50%;
    background: rgba(10,26,20,.5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
  /* gallery info text clears the side arrows */
  .gallery__grid .ph__desc { padding-inline: 56px; justify-content: center; }
  .nav__menu {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: center; gap: 1.2rem;
    padding: 1.4rem; border-radius: 18px;
    background: rgba(10,26,20,.95); backdrop-filter: blur(14px);
    border: 1px solid rgba(189,144,52,.22);
    transform: translateY(-12px) scale(.98); opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
  }
  .nav.is-open .nav__menu { opacity: 1; transform: none; pointer-events: auto; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .cat { grid-template-columns: 1fr 1fr; }
  .cat__label { grid-column: 1 / -1; min-height: 32vh; align-items: center; text-align: center; }
  .cat--right .cat__label { align-items: center; }
  .cat--right { grid-template-areas: none; }
  .cat--right .cat__label { order: -1; }

  /* gallery → elegant horizontal swipe carousel (less vertical scroll) */
  .gallery__grid {
    display: flex; flex-wrap: nowrap;
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: 12px; padding-bottom: 1.1rem;
    scroll-padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .gallery__grid::-webkit-scrollbar { display: none; }
  .gallery__grid .ph {
    flex: 0 0 82%; height: 54vh; margin: 0;
    scroll-snap-align: center;
  }
  .gallery__grid .ph img { height: 100%; }
  /* info overlay appears on tap (not always) to keep the jewel clean */
  /* side arrows: affordance for horizontal swipe */
  .gallery__nav {
    display: grid; place-items: center;
    position: absolute; top: 27vh; transform: translateY(-50%);
    width: 42px; height: 42px; border-radius: 50%; z-index: 4;
    background: rgba(10, 26, 20, .55); color: var(--cream);
    border: 1px solid rgba(189, 144, 52, .55);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 6px 18px rgba(0,0,0,.3);
    transition: background .3s var(--ease-out), color .3s var(--ease-out);
  }
  .gallery__nav:active { background: var(--gold); color: var(--ink-deep); }
  .gallery__nav--prev { left: 4px; }
  .gallery__nav--next { right: 4px; }

  .visit { grid-template-columns: 1fr; row-gap: clamp(1.6rem, 5vw, 2.6rem); }
  .visit__map { min-height: 300px; }
  .visit__map iframe { min-height: 300px; }
}

@media (max-width: 460px) {
  .gallery__grid .ph { flex-basis: 86%; }
  .hero__scroll { display: none; }
}

/* =============================================================
   16. Reduced motion (only intrusive effects)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .splash__logo { animation: none; }
  .bg-layer { transform: none !important; }
  .reveal { opacity: 1; transform: none; }
}
