/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f3ede0;
  --bg-2:      #e8ddc4;
  --paper:     #fffcf6;
  --ink:       #221d15;
  --ink-soft:  #362f22;
  --ink-mute:  #6d6353;
  --accent:    #a8532e;
  --accent-2:  #55643c;
  --gold:      #b6902f;
  --blue:      #2d4864;
  --line:      rgba(34, 29, 21, 0.12);
  --line-2:    rgba(34, 29, 21, 0.22);
  --cream:     #fffcf6;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 84px;
  --container: 1240px;
}

@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { 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; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-family: var(--serif); color: var(--ink); font-weight: 500; }
::selection { background: var(--accent); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--cream);
  z-index: 9999; border-radius: 8px; font-weight: 500;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 720px) { .container { padding-inline: 2.5rem; } }

.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;
}

.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.kicker::before {
  content: ""; width: 22px; height: 1px; background: var(--accent);
}

.eyebrow-line { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
h4 { font-size: 1.1rem; }
em, .italic { font-style: italic; }
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-mute);
  max-width: 62ch;
}
.section-title { margin-bottom: 1.1rem; }
.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.9rem;
  font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(34,29,21,0.08), 0 1px 3px rgba(34,29,21,0.06);
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background .3s, color .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }

.btn-primary { background: var(--accent); color: var(--cream); }
.btn-primary:hover { box-shadow: 0 22px 44px rgba(168,83,46,0.28), 0 10px 20px rgba(34,29,21,0.14); }

.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); box-shadow: none; }
.btn-outline:hover { border-color: var(--ink); box-shadow: 0 14px 30px rgba(34,29,21,0.1); }

.btn-ghost { background: transparent; color: var(--ink); box-shadow: none; padding: .6rem .2rem; }
.btn-ghost::after {
  content: ""; display: block; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
  margin-top: 2px;
}
.btn-ghost:hover::after { transform: scaleX(1); transform-origin: left; }
.btn-ghost:hover { transform: none; }

.btn-sm { padding: .65rem 1.3rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* Magnetic wrapper */
.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner {
  display: inline-flex; align-items: center; justify-content: center; gap: inherit;
  will-change: transform;
  transition: transform .8s var(--ease-soft);
}

/* Cards base */
.card {
  background: var(--paper);
  border-radius: 20px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.has-tilt {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-soft), box-shadow .45s var(--ease-soft);
}
.has-tilt:hover {
  transition-duration: .15s;
  box-shadow: 0 40px 80px -24px rgba(34,29,21,0.28), 0 14px 30px -10px rgba(168,83,46,0.18);
}

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

/* Tag / pill */
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .85rem; border-radius: 999px;
  font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: var(--bg-2); color: var(--ink-soft);
}
.pill-blue { background: rgba(45,72,100,0.12); color: var(--blue); }
.pill-accent { background: rgba(168,83,46,0.12); color: var(--accent); }

/* Form fields */
.field { position: relative; margin-bottom: 1.3rem; }
.field label {
  display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: .5rem; font-weight: 600;
}
.field input, .field select, .field textarea {
  width: 100%; padding: .95rem 1.1rem; border: 1.5px solid var(--line-2); border-radius: 12px;
  background: var(--paper); color: var(--ink); font-family: inherit; font-size: 1rem;
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(168,83,46,0.12);
}
.field textarea { resize: vertical; min-height: 120px; }

/* =============================================================
   6. Sections — Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), box-shadow .4s var(--ease-out), height .3s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(243,237,224,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  height: 72px;
}
.nav-inner {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav-brand {
  display: flex; flex-direction: column; line-height: 1.1;
}
.nav-brand-name {
  font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink);
}
.nav-brand-est {
  font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute);
}
.nav-links {
  display: none; align-items: center; gap: 2.1rem;
}
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link {
  position: relative; font-size: .92rem; font-weight: 500; padding: .3rem 0;
  color: var(--ink-soft);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-link.is-active { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: .9rem; }
.nav-cart {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line);
  transition: transform .35s var(--ease-soft), border-color .3s;
}
.nav-cart:hover { transform: translateY(-2px); border-color: var(--accent); }
.nav-cart svg { width: 19px; height: 19px; }
.nav-cart-count {
  position: absolute; top: -6px; right: -6px;
  min-width: 19px; height: 19px; padding: 0 4px; border-radius: 999px;
  background: var(--accent); color: var(--cream);
  font-size: .68rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
  transform: scale(0); transition: transform .3s var(--ease-bounce);
}
.nav-cart-count.is-visible { transform: scale(1); }

.nav-burger {
  display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
}
@media (min-width: 960px) { .nav-burger { display: none; } }
.nav-burger span, .nav-burger::before, .nav-burger::after { display: none; }
.nav-burger-icon { width: 18px; height: 12px; position: relative; }
.nav-burger-icon span {
  display: block !important; position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--ink);
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out), top .3s var(--ease-out);
}
.nav-burger-icon span:nth-child(1) { top: 0; }
.nav-burger-icon span:nth-child(2) { top: 5px; }
.nav-burger-icon span:nth-child(3) { top: 10px; }
.nav-burger.is-open .nav-burger-icon span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-burger.is-open .nav-burger-icon span:nth-child(2) { opacity: 0; }
.nav-burger.is-open .nav-burger-icon span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 95;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
  padding: 2rem;
}
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile a { font-family: var(--serif); font-size: 1.9rem; color: var(--ink); }
.nav-mobile a.is-active { color: var(--accent); font-style: italic; }

/* =============================================================
   6b. Hero
   ============================================================= */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(34,29,21,0.18) 0%, rgba(34,29,21,0.06) 38%, rgba(34,29,21,0.55) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  width: 100%;
  padding-block: 3.5rem 4.5rem;
  color: var(--cream);
}
.hero .kicker { color: var(--gold); }
.hero .kicker::before { background: var(--gold); }
.hero-title {
  color: var(--cream);
  max-width: 16ch;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}
.hero-sub {
  margin-top: 1.1rem; max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: rgba(255,252,246,0.88);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-actions .btn-outline { color: var(--cream); border-color: rgba(255,252,246,0.5); }
.hero-actions .btn-outline:hover { border-color: var(--cream); }

.hero-meta {
  position: relative; z-index: 1;
  display: flex; gap: 2.4rem; flex-wrap: wrap;
  margin-top: 2.6rem; padding-top: 1.8rem;
  border-top: 1px solid rgba(255,252,246,0.25);
  color: rgba(255,252,246,0.9);
}
.hero-meta-item { display: flex; flex-direction: column; gap: .2rem; }
.hero-meta-item strong { font-family: var(--serif); font-size: 1.3rem; font-style: italic; }
.hero-meta-item span { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,252,246,0.65); }

/* Page hero (secondary pages, no video-like scale) */
.page-hero {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--nav-h) + 3.5rem);
  padding-bottom: 4rem;
  overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-bg::after {
  content: ""; position: absolute; inset: 0; background: rgba(34,29,21,0.5);
}
.page-hero.is-light { background: var(--bg-2); }
.page-hero .kicker { color: var(--accent); }
.page-hero.has-image .kicker { color: var(--gold); }
.page-hero.has-image .kicker::before { background: var(--gold); }
.page-hero.has-image h1, .page-hero.has-image .lede { color: var(--cream); }
.page-hero.has-image .lede { color: rgba(255,252,246,0.85); }

/* =============================================================
   6c. Marquee ticker
   ============================================================= */
.marquee {
  overflow: hidden; position: relative;
  padding-block: 1.4rem;
  background: var(--ink);
  border-block: 1px solid rgba(255,252,246,0.08);
}
.marquee-track {
  display: inline-flex; gap: 3rem; white-space: nowrap; will-change: transform;
}
.marquee-track span {
  font-family: var(--serif); font-style: italic; font-size: 1.15rem;
  color: rgba(255,252,246,0.75);
}
.marquee-track span.dot { color: var(--gold); font-style: normal; }

/* =============================================================
   6d. Teaser grid (home)
   ============================================================= */
.teasers {
  display: grid; gap: 1.5rem;
  padding-block: 5rem;
}
@media (min-width: 720px) { .teasers { grid-template-columns: repeat(3, 1fr); } }
.teaser-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 3/4;
  isolation: isolate;
}
.teaser-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-soft); }
.teaser-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(34,29,21,0) 30%, rgba(34,29,21,0.85) 100%);
}
.teaser-card:hover img { transform: scale(1.08); }
.teaser-content {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 1; padding: 1.8rem;
  color: var(--cream);
}
.teaser-content .pill { margin-bottom: .8rem; }
.teaser-content h3 { color: var(--cream); margin-bottom: .5rem; }
.teaser-content p { color: rgba(255,252,246,0.8); font-size: .92rem; margin-bottom: 1rem; }
.teaser-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .88rem; color: var(--gold); }
.teaser-link svg { width: 14px; height: 14px; transition: transform .3s var(--ease-out); }
.teaser-card:hover .teaser-link svg { transform: translateX(4px); }

/* =============================================================
   6e. Content sections general
   ============================================================= */
.section { padding-block: 5.5rem; }
.section.is-bg2 { background: var(--bg-2); }
.section.is-paper { background: var(--paper); }
.section.is-dark { background: var(--ink); color: rgba(255,252,246,0.85); }
.section.is-dark h2, .section.is-dark h3 { color: var(--cream); }
.section.is-dark .lede { color: rgba(255,252,246,0.7); }

.two-col {
  display: grid; gap: 2.5rem;
}
@media (min-width: 960px) { .two-col { grid-template-columns: 1fr 1fr; align-items: center; gap: 4.5rem; } }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.figure {
  border-radius: 22px; overflow: hidden; position: relative;
}
.figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.figure-caption {
  position: absolute; left: 1.2rem; bottom: 1.2rem;
  padding: .5rem 1rem; border-radius: 999px;
  background: rgba(34,29,21,0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--cream); font-size: .78rem; letter-spacing: .04em;
}

/* Timeline (history) */
.timeline { position: relative; margin-top: 1rem; }
.timeline::before {
  content: ""; position: absolute; left: 16px; top: 8px; bottom: 8px; width: 1px;
  background: var(--line-2);
}
@media (min-width: 720px) { .timeline::before { left: 50%; margin-left: -0.5px; } }
.timeline-item {
  position: relative; padding-left: 3rem; padding-bottom: 3rem;
}
.timeline-item:last-child { padding-bottom: 0; }
@media (min-width: 720px) {
  .timeline-item { width: 50%; padding-left: 0; padding-right: 3.5rem; }
  .timeline-item:nth-child(even) { margin-left: 50%; padding-right: 0; padding-left: 3.5rem; }
}
.timeline-dot {
  position: absolute; left: 8px; top: 6px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--accent);
}
@media (min-width: 720px) {
  .timeline-dot { left: auto; right: -8.5px; top: 4px; }
  .timeline-item:nth-child(even) .timeline-dot { right: auto; left: -8.5px; }
}
.timeline-year {
  font-family: var(--serif); font-style: italic; font-size: 1.8rem; color: var(--accent);
  display: block; margin-bottom: .3rem;
}
.timeline-item h3 { margin-bottom: .5rem; }
.timeline-item p { color: var(--ink-mute); max-width: 42ch; }

/* Fincas cards */
.fincas-grid { display: grid; gap: 1.5rem; margin-top: 1rem; }
@media (min-width: 720px) { .fincas-grid { grid-template-columns: repeat(2, 1fr); } }
.finca-card { padding: 2rem; }
.finca-card .pill { margin-bottom: 1rem; }
.finca-card h3 { margin-bottom: .3rem; }
.finca-card .finca-place { color: var(--ink-mute); font-size: .88rem; margin-bottom: 1rem; }

/* Divisa + encaste band */
.info-band {
  display: grid; gap: 1.5rem; margin-top: 3rem;
}
@media (min-width: 720px) { .info-band { grid-template-columns: repeat(2, 1fr); } }
.info-block {
  padding: 2.2rem; border-radius: 20px; background: var(--paper); border: 1px solid var(--line);
}
.info-block h3 { margin-bottom: .8rem; }
.divisa-swatch { display: flex; gap: .5rem; margin-bottom: 1rem; }
.divisa-swatch span { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); }
.divisa-swatch .c-blue { background: var(--blue); }
.divisa-swatch .c-celeste { background: #aed6f1; }
.divisa-swatch .c-white { background: var(--cream); }

/* =============================================================
   6f. Visitas cards
   ============================================================= */
.visits-grid { display: grid; gap: 2rem; margin-top: 1rem; }
@media (min-width: 860px) { .visits-grid { grid-template-columns: repeat(2, 1fr); } }
.visit-card {
  display: flex; flex-direction: column;
}
.visit-media { aspect-ratio: 4/3; position: relative; overflow: hidden; }
.visit-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visit-badge {
  position: absolute; top: 1rem; left: 1rem;
  padding: .4rem .9rem; border-radius: 999px; background: var(--paper);
  font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
}
.visit-body { padding: 1.8rem 1.8rem 2rem; display: flex; flex-direction: column; flex: 1; }
.visit-body h3 { margin-bottom: .4rem; }
.visit-meta { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1rem; color: var(--ink-mute); font-size: .84rem; }
.visit-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.visit-meta svg { width: 14px; height: 14px; opacity: .7; }
.visit-desc { color: var(--ink-mute); margin-bottom: 1.3rem; }
.visit-includes { margin-bottom: 1.6rem; display: flex; flex-direction: column; gap: .55rem; }
.visit-includes li { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; }
.visit-includes svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: .15rem; color: var(--accent-2); }
.visit-price-row {
  margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  padding-top: 1.4rem; border-top: 1px solid var(--line);
}
.visit-price { font-family: var(--serif); font-style: italic; font-size: 2.1rem; color: var(--ink); }
.visit-price span { font-family: var(--sans); font-style: normal; font-size: .78rem; color: var(--ink-mute); display: block; margin-top: .2rem; }

/* =============================================================
   6g. Tienda / shop
   ============================================================= */
.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.products-grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card { display: flex; flex-direction: column; }
.product-media {
  aspect-ratio: 1; position: relative; overflow: hidden;
  background: var(--bg-2);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-soft); }
.product-card:hover .product-media img { transform: scale(1.08); }
.product-media.is-iconcard { display: flex; align-items: center; justify-content: center; }
.product-media.is-iconcard svg { width: 46%; height: 46%; color: var(--ink-soft); opacity: .55; }

/* Clickable gallery hint on product photos with multiple images */
.product-media[data-gallery] { cursor: zoom-in; }
.product-media-hint {
  position: absolute; right: .7rem; bottom: .7rem; z-index: 1;
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .35rem .65rem; border-radius: 999px;
  background: rgba(34,29,21,0.62); color: var(--cream);
  font-size: .68rem; font-weight: 600; letter-spacing: .02em;
  opacity: 0; transform: translateY(4px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
  pointer-events: none;
}
.product-media-hint svg { width: 13px; height: 13px; }
.product-card:hover .product-media-hint { opacity: 1; transform: translateY(0); }
.product-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.product-name { font-size: 1rem; font-weight: 600; color: var(--ink); font-family: var(--sans); letter-spacing: 0; }
.product-desc { font-size: .82rem; color: var(--ink-mute); flex: 1; }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: .6rem; gap: .6rem; }
.product-price { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink); }
.product-add {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1rem; border-radius: 999px; background: var(--ink); color: var(--cream);
  font-size: .8rem; font-weight: 600;
  transition: background .3s, transform .3s var(--ease-soft);
}
.product-add:hover { background: var(--accent); transform: translateY(-2px); }
.product-add svg { width: 14px; height: 14px; }

/* Cart drawer */
.cart-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(34,29,21,0.45);
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease-out);
}
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 201;
  width: min(420px, 100%); background: var(--paper);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .5s var(--ease-soft);
  box-shadow: -30px 0 60px rgba(34,29,21,0.2);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 1.6rem 1.6rem 1.2rem; border-bottom: 1px solid var(--line); }
.cart-close { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; }
.cart-body { flex: 1; overflow-y: auto; padding: 1rem 1.6rem; }
.cart-empty { color: var(--ink-mute); padding: 2rem 0; text-align: center; }
.cart-line { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-line-media { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: var(--bg-2); display: flex; align-items: center; justify-content: center; }
.cart-line-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-media svg { width: 46%; height: 46%; opacity: .5; }
.cart-line-info { flex: 1; display: flex; flex-direction: column; gap: .3rem; }
.cart-line-name { font-weight: 600; font-size: .92rem; }
.cart-line-qty { display: flex; align-items: center; gap: .6rem; }
.cart-qty-btn { width: 24px; height: 24px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .9rem; display: inline-flex; align-items: center; justify-content: center; }
.cart-line-actions { display: flex; align-items: center; justify-content: space-between; margin-top: .3rem; }
.cart-line-pay {
  font-size: .76rem; font-weight: 700; color: var(--accent); letter-spacing: .03em;
}
.cart-line-remove { font-size: .76rem; color: var(--ink-mute); text-decoration: underline; }
.cart-foot { padding: 1.4rem 1.6rem 1.8rem; border-top: 1px solid var(--line); }
.cart-subtotal { display: flex; justify-content: space-between; margin-bottom: .5rem; font-family: var(--serif); font-style: italic; font-size: 1.3rem; }
.cart-note { font-size: .78rem; color: var(--ink-mute); margin-bottom: 1.2rem; line-height: 1.5; }

/* =============================================================
   6h. Contact
   ============================================================= */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-cards { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.contact-card {
  display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; border-radius: 16px;
  background: var(--paper); border: 1px solid var(--line);
  transition: transform .35s var(--ease-soft), border-color .3s;
}
.contact-card:hover { transform: translateX(4px); border-color: var(--accent); }
.contact-icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--bg-2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; color: var(--accent); }
.contact-card-text strong { display: block; font-size: .95rem; }
.contact-card-text span { font-size: .84rem; color: var(--ink-mute); }
.map-frame {
  margin-top: 1.5rem; border-radius: 18px; overflow: hidden; aspect-ratio: 16/10;
  border: 1px solid var(--line); background: var(--bg-2);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-fallback { margin-top: .7rem; font-size: .85rem; color: var(--ink-mute); }
.map-fallback a { color: var(--accent); text-decoration: underline; }

.form-card { padding: 2rem; scroll-margin-top: 100px; }
.form-status {
  display: none; padding: 1rem 1.2rem; border-radius: 12px; background: rgba(85,100,60,0.12);
  color: var(--accent-2); font-size: .9rem; margin-bottom: 1.2rem;
}
.form-status.is-visible { display: block; }

/* =============================================================
   6i. Footer
   ============================================================= */
.footer {
  background: var(--ink); color: rgba(255,252,246,0.7);
  padding-block: 4.5rem 2.2rem;
}
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1.4fr 1fr 1fr;
}
@media (max-width: 719px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand-name { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--cream); margin-bottom: .8rem; }
.footer-tagline { max-width: 34ch; font-size: .92rem; }
.footer-col h4 { color: var(--cream); font-family: var(--sans); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 600; }
.footer-col ul { display: flex; flex-direction: column; gap: .7rem; }
.footer-col a { font-size: .92rem; transition: color .25s; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  margin-top: 3.5rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,252,246,0.12);
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  font-size: .78rem;
}
.footer-bottom a { text-decoration: underline; }
.footer-social { display: flex; gap: .8rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,252,246,0.2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .3s, transform .3s var(--ease-soft);
}
.footer-social a:hover { border-color: var(--cream); transform: translateY(-3px); }
.footer-social svg { width: 16px; height: 16px; }

/* =============================================================
   6j. Credits page
   ============================================================= */
.credits-list { display: flex; flex-direction: column; gap: .9rem; margin-top: 2rem; }
.credits-list li { padding: 1rem 1.2rem; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-size: .88rem; }
.credits-list a { text-decoration: underline; color: var(--accent); }

/* =============================================================
   7. Effects
   ============================================================= */
@keyframes meshShift {
  0%   { --mesh-angle: 0deg; }
  100% { --mesh-angle: 360deg; }
}

/* Lightbox (product photo gallery) */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(20, 17, 12, 0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-out);
}
.lightbox-overlay.is-open { opacity: 1; pointer-events: auto; }
.lightbox-stage {
  position: relative;
  width: min(92vw, 900px);
  display: flex; align-items: center; justify-content: center;
}
.lightbox-img {
  max-width: 100%; max-height: 82vh; width: auto; height: auto;
  border-radius: 16px; object-fit: contain;
  background: var(--paper);
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
  opacity: 0; transform: scale(.97);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
}
.lightbox-img.is-visible { opacity: 1; transform: scale(1); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px;
  background: rgba(255,252,246,0.12); color: var(--cream);
  border: 1px solid rgba(255,252,246,0.25);
  transition: background .3s, transform .3s var(--ease-soft);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,252,246,0.22); }
.lightbox-close { top: -56px; right: 0; }
@media (min-width: 720px) { .lightbox-close { top: 0; right: -56px; } }
.lightbox-prev { left: -8px; top: 50%; transform: translate(-100%, -50%); }
.lightbox-next { right: -8px; top: 50%; transform: translate(100%, -50%); }
@media (max-width: 719px) { .lightbox-prev { left: .5rem; transform: translateY(-50%); } .lightbox-next { right: .5rem; transform: translateY(-50%); } }
.lightbox-prev svg, .lightbox-next svg, .lightbox-close svg { width: 18px; height: 18px; }
.lightbox-dots { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); display: flex; gap: .5rem; }
.lightbox-dots span {
  width: 7px; height: 7px; border-radius: 50%; background: rgba(255,252,246,0.35);
  transition: background .3s, transform .3s;
}
.lightbox-dots span.is-active { background: var(--cream); transform: scale(1.3); }

/* =============================================================
   8. Responsive helpers
   ============================================================= */
.hide-mobile { display: none; }
@media (min-width: 720px) { .hide-mobile { display: initial; } }
.show-mobile { display: initial; }
@media (min-width: 720px) { .show-mobile { display: none; } }

/* =============================================================
   9. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg img { animation: none !important; }
}

/* =============================================================
   10. Páginas legales
   ============================================================= */
.legal { max-width: 760px; }
.legal h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 2.6rem 0 .8rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p { margin-bottom: 1rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1rem; display: flex; flex-direction: column; gap: .4rem; }
.legal a { color: var(--accent); text-decoration: underline; }
.legal .updated { color: var(--ink-mute); font-size: .88rem; margin-bottom: 2rem; }
.pendiente { background: #fff2a8; color: #5c4a00; padding: .05em .35em; border-radius: 4px; font-weight: 600; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.map-frame { position: relative; }
.map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1.5rem; text-align: center; }
.map-consent p { font-size: .88rem; color: var(--ink-mute); max-width: 36ch; }
.map-consent a { color: var(--accent); text-decoration: underline; }
.map-consent[hidden] { display: none; }

/* lanzamiento: 2 tarjetas en la portada */
@media (min-width: 720px) { .teasers { grid-template-columns: repeat(2, 1fr); max-width: 920px; margin-inline: auto; } }
