/* Aguamiel Bags - continuidad visual con la tienda original. */
:root {
  --paper: #ffffff;
  --card: #ffffff;
  --ink: #121212;
  --muted: #747171;
  --blush: #F0EDEC;
  --story: #66705B;
  --blush-deep: #e7dfdf;
  --line: #d4d0d0;
  --agave: #121212;
  --agave-deep: #121212;
  --agave-soft: #747171;
  --honey: #d8bda5;
  --honey-deep: #695a4e;
  --nectar: #f1eded;
  --sold: #8d8989;
  --shadow: 0 8px 24px rgba(18, 18, 18, .08);
  --f-display: "Avenir Next", Avenir, "Century Gothic", Helvetica, Arial, sans-serif;
  --f-body: "Avenir Next", Avenir, "Century Gothic", Helvetica, Arial, sans-serif;
  --wrap: 1160px;
  --r: 0;
}

* { box-sizing: border-box; }
html {
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(128px + env(safe-area-inset-top));
  background: var(--blush);
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100%;
  margin: 0;
  background: var(--blush);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
.site-shell { min-height: 100%; background: var(--blush); }
html.is-storytelling,
html.is-storytelling body,
html.is-storytelling .site-shell { background: var(--story); }
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Aparicion suave al entrar por primera vez en pantalla. */
.reveal-item {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity .55s cubic-bezier(.22, .61, .36, 1),
    transform .55s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }

/* Cabecera */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top);
  background: #F0EDEC;
  border-bottom: 1px solid rgba(18, 18, 18, .08);
  backdrop-filter: blur(8px);
  transform: translateY(0);
  transition: transform .23s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.site-head.is-scroll-hidden { transform: translateY(-100%); }
.site-head .wrap {
  min-height: 128px;
  display: grid;
  grid-template-columns: 190px 1fr 110px;
  align-items: center;
  gap: 30px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 142px; height: 78px; object-fit: cover; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .name { font-family: var(--f-display); font-weight: 700; color: var(--ink); }
.main-nav { display: flex; justify-content: center; align-items: center; gap: clamp(22px, 4vw, 48px); }
.main-nav a, .head-link {
  color: var(--ink);
  font-size: .98rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover, .head-link:hover { opacity: .55; }
.head-link { justify-self: end; }

/* Presentacion */
.hero {
  min-height: 640px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 44%) 1fr;
  background: #fff;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 44px;
  text-align: center;
}
.hero h1 {
  margin: 0;
  max-width: 10ch;
  font-family: var(--f-display);
  font-size: 3.3rem;
  line-height: 1.08;
  font-weight: 700;
}
.hero-kicker {
  margin: 0 0 22px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-intro {
  max-width: 390px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.7;
}
.hero-cta {
  margin-top: 30px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
}
.hero-cta:hover { opacity: .55; }
.hero-cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.hero-media {
  min-height: 640px;
  background: url("assets/aguamiel-hero.avif") center / cover no-repeat;
}
.wave-divider {
  height: 112px;
  position: relative;
  overflow: hidden;
  background: var(--blush);
}
.wave-divider span {
  position: absolute;
  left: -5%;
  width: 110%;
  height: 68px;
  border: 4px solid #fff;
  border-color: #fff transparent transparent;
  border-radius: 50%;
}
.wave-divider span:nth-child(1) { top: 18px; }
.wave-divider span:nth-child(2) { top: 31px; }
.wave-divider span:nth-child(3) { top: 44px; }
.wave-divider span:nth-child(4) { top: 57px; }

/* Catalogo */
.catalog { padding-top: 104px; }
.collection-section { padding: 72px 0 64px; background: #fff; }
.collection-section.is-tinted { background: var(--blush); }
.collection-head { margin-bottom: 38px; }
.collection-head h2 { margin: 0; font-family: var(--f-display); font-size: 3rem; line-height: 1.1; }
.collection-subheadline { max-width: 620px; margin: 16px 0 0; color: var(--ink); font-size: 1.12rem; font-weight: 600; line-height: 1.4; }
.collection-description { max-width: 650px; margin: 10px 0 0; color: #5e5b5b; line-height: 1.65; }
.collection-link { display: inline-flex; align-items: center; gap: 9px; padding-bottom: 4px; border-bottom: 1px solid var(--ink); color: var(--ink); font-size: .86rem; font-weight: 600; text-decoration: none; }
.collection-link:hover { opacity: .55; }
.grid.collection-grid { padding-bottom: 0; }
.collection-empty { padding: 54px 0; border-top: 1px solid var(--line); color: var(--muted); }
.collection-footer { display: flex; justify-content: center; padding-top: 64px; }
.products-page { min-height: 70vh; }
.products-title h1 { margin: 0; font-family: var(--f-display); font-size: 3rem; line-height: 1.1; }
.products-title .eyebrow { margin-bottom: 13px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 38px; }
.section-head h2 {
  margin: 0;
  font-family: var(--f-display);
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 700;
}
.section-head p { margin: 0 0 7px; color: var(--muted); }
.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 25px;
  margin-bottom: 44px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.chip {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 0 9px;
  font: 600 .92rem/1 var(--f-body);
  cursor: pointer;
}
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
  padding-bottom: 120px;
}
.card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
}
.card .ph { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; background: #fafafa; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: opacity .3s ease; }
.card:hover .ph img { opacity: .96; }
.card .ph .leaf { width: 38%; color: #b8afaf; opacity: .55; }
.card-carousel { width: 100%; height: 100%; position: relative; overflow: hidden; }
.card-carousel-track { width: 100%; height: 100%; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
.card-carousel-track::-webkit-scrollbar { display: none; }
.card-gallery-trigger { width: 100%; height: 100%; flex: 0 0 100%; display: block; padding: 0; border: 0; background: transparent; scroll-snap-align: start; scroll-snap-stop: always; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.card-placeholder-trigger { display: grid; place-items: center; cursor: pointer; }
.card-gallery-trigger:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.image-count { position: absolute; right: 10px; bottom: 10px; padding: 4px 7px; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: .67rem; font-weight: 700; pointer-events: none; }
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  font-size: .64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.badge.vendido { background: var(--sold); border-color: var(--sold); color: #fff; }
.badge.reservado { background: var(--blush-deep); }
.badge.personalizada { max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 18px 16px 16px; }
.card .tipo { color: var(--muted); font-size: .67rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.card .name { margin: 5px 0 0; font: 500 1rem/1.35 var(--f-body); }
.card-product-trigger { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.card-product-trigger:hover { opacity: .55; }
.card-product-trigger:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.card .price { margin-top: 3px; color: var(--muted); font-size: .93rem; }
.card-colors { display: flex; align-items: center; gap: 5px; margin-top: 11px; }
.card-colors span { width: 17px; height: 17px; border: 1px solid rgba(18, 18, 18, .18); background: var(--swatch, #ddd); }
.card-colors small { margin-left: 3px; color: var(--muted); font-size: .68rem; }
.card .cta {
  width: 100%;
  margin-top: auto;
  padding: 10px 0 3px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  text-align: left;
}
.card .cta:hover { opacity: .55; }
.card .cta.disabled { color: var(--sold); border-bottom-color: var(--line); pointer-events: none; }
.card.is-sold .ph img, .card.is-sold .name { opacity: .62; }
.state { padding: 60px 0 100px; color: var(--muted); text-align: center; }
.state h3 { margin: 0 0 6px; color: var(--ink); font-family: var(--f-display); }

/* Galería de producto */
body.gallery-open { overflow: hidden; }
.gallery-dialog { width: min(1120px, calc(100% - 32px)); max-width: none; height: min(88dvh, 820px); max-height: none; padding: 0; border: 0; border-radius: 4px; background: #fff; color: var(--ink); }
.gallery-dialog::backdrop { background: rgba(18, 18, 18, .78); }
.gallery-dialog[open] { animation: product-dialog-in .22s cubic-bezier(.22, .61, .36, 1) both; }
.gallery-dialog[open]::backdrop { animation: product-backdrop-in .2s ease-out both; }
@keyframes product-dialog-in {
  from { opacity: 0; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes product-dialog-in-mobile {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes product-backdrop-in {
  from { background: rgba(18, 18, 18, 0); }
  to { background: rgba(18, 18, 18, .78); }
}
.gallery-shell { height: 100%; position: relative; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, .75fr); }
.gallery-media { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: #f6f4f4; }
.gallery-close, .gallery-nav { display: grid; place-items: center; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.gallery-close { position: absolute; z-index: 4; top: 12px; right: 12px; width: 40px; height: 40px; background: rgba(255, 255, 255, .94); font-size: 1.6rem; }
.gallery-stage {
  --gallery-inset: clamp(18px, 2vw, 34px);
  --gallery-gutter: clamp(36px, 4vw, 68px);
  min-height: 0;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f6f4f4;
  touch-action: pan-y;
}
.gallery-stage > img {
  width: calc(100% - var(--gallery-gutter));
  height: calc(100% - var(--gallery-gutter));
  position: absolute;
  inset: var(--gallery-inset);
  object-fit: contain;
  transform-origin: center;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}
.gallery-stage.is-zoomed { touch-action: none; }
.gallery-stage.is-zoomed .gallery-nav,
.gallery-stage.is-zoomed .gallery-counter { visibility: hidden; }
.gallery-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #b8afaf; }
.gallery-placeholder[hidden], .gallery-thumbs[hidden], .gallery-nav[hidden] { display: none; }
.gallery-placeholder .leaf { width: min(190px, 32%); opacity: .55; }
.gallery-counter { position: absolute; right: 14px; bottom: 14px; padding: 5px 8px; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: .72rem; font-weight: 600; }
.gallery-nav { position: absolute; z-index: 2; top: 50%; width: 44px; height: 52px; transform: translateY(-50%); background: rgba(255, 255, 255, .9); font-size: 2rem; }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-close:hover, .gallery-nav:hover { background: #fff; }
.gallery-close:focus-visible, .gallery-nav:focus-visible, .gallery-thumbs button:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; }
.gallery-thumbs { display: flex; justify-content: center; gap: 8px; min-height: 88px; padding: 10px 18px; overflow-x: auto; border-top: 1px solid var(--line); }
.gallery-thumbs button { width: 66px; height: 66px; flex: none; padding: 0; border: 2px solid transparent; background: #f6f4f4; cursor: pointer; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--ink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-detail { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; overflow-y: auto; padding: 76px 42px 38px; background: #fff; }
.product-detail-badge { max-width: 100%; margin-bottom: 20px; padding: 6px 10px; overflow: hidden; border: 1px solid var(--ink); color: var(--ink); font-size: .65rem; font-weight: 700; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.product-detail .eyebrow { margin-bottom: 12px; color: var(--muted); }
.product-detail h2 { margin: 0; font: 700 2rem/1.15 var(--f-display); }
.product-detail-price { margin: 13px 0 0; color: var(--muted); font-size: 1rem; }
.product-variant-picker { width: 100%; margin-top: 25px; }
.product-variant-picker > p { margin: 0 0 10px; color: var(--muted); font-size: .78rem; }
.product-variant-picker strong { color: var(--ink); font-weight: 600; }
.product-variant-options { display: flex; flex-wrap: wrap; gap: 9px; max-width: 100%; padding: 2px; }
.product-variant-option { width: 32px; height: 32px; flex: none; position: relative; padding: 3px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.product-variant-option::before { content: ""; display: block; width: 100%; height: 100%; background: var(--swatch, #ddd); }
.product-variant-option[aria-pressed="true"] { border: 2px solid var(--ink); padding: 2px; }
.product-variant-option[aria-current="true"] { border: 2px solid var(--ink); padding: 2px; }
.product-variant-option.is-unavailable { opacity: .38; }
.product-variant-option.is-unavailable::after { content: ""; position: absolute; top: 50%; right: 2px; left: 2px; height: 1px; background: var(--ink); transform: rotate(-45deg); }
.product-variant-option:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.product-detail-description { margin: 30px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.75; }
.product-detail-specs { width: 100%; margin: 28px 0 0; border-top: 1px solid var(--line); }
.product-detail-specs > div { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.product-detail-specs dt { color: var(--ink); font-size: .78rem; font-weight: 600; }
.product-detail-specs dd { margin: 0; color: var(--muted); font-size: .78rem; }
.product-detail-note { width: 100%; margin: 20px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; font-style: italic; line-height: 1.6; }
.product-detail-cta { width: 100%; margin-top: auto; padding: 14px 18px; background: var(--ink); color: #fff; font-size: .84rem; font-weight: 700; text-align: center; text-decoration: none; }
.product-detail-cta:hover { opacity: .78; }
.product-detail-cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

@media (min-width: 621px) {
  .product-detail-specs { margin-bottom: 24px; }
}

.product-page { padding-top: 38px; padding-bottom: 76px; }
.product-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 25px; color: var(--muted); font-size: .78rem; }
.product-breadcrumb a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.product-page-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, .8fr); align-items: stretch; border: 1px solid var(--line); background: #fff; }
.product-page-media { min-width: 0; background: #f6f4f4; }
.product-page-stage { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 0; aspect-ratio: 4 / 5; max-height: 76dvh; overflow: hidden; }
.product-page-stage img { display: block; width: 100%; height: 100%; min-width: 0; object-fit: contain; object-position: center; }
.product-image-empty { width: 100%; height: 100%; background: #f6f4f4; }
.product-page-thumbs { background: #f6f4f4; }
.product-page-layout .product-detail { min-height: 0; overflow: visible; padding: 44px 36px 36px; }
.product-page-layout .product-detail h1 { margin: 0; font: 700 2rem/1.15 var(--f-display); }
.product-page-subtitle { margin: 18px 0 0; color: var(--muted); font-size: .9rem; }
.product-page-availability { margin: 18px 0 0; font-size: .78rem; font-weight: 600; }
.product-page-layout .product-detail-cta { margin-top: 36px; }
.not-found { min-height: 55dvh; padding-top: clamp(80px, 10vw, 150px); padding-bottom: 100px; }
.not-found h1 { margin: 0; font: 700 clamp(2rem, 4vw, 3.4rem)/1.1 var(--f-display); }
.not-found > p:not(.eyebrow) { max-width: 36rem; color: var(--muted); }
.not-found .product-detail-cta { display: inline-block; width: auto; margin-top: 24px; }

/* Relato de marca */
.editorial { padding: clamp(96px, 10vw, 148px) 0 clamp(72px, 7vw, 104px); background: var(--story); color: #f7f4f0; }
.editorial-wrap { display: flex; flex-direction: column; gap: clamp(72px, 8vw, 112px); }
.eyebrow { margin: 0 0 14px; font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.editorial-intro { max-width: 760px; }
.editorial-intro h2,
.story-copy h2 { margin: 0; font: 700 clamp(2.55rem, 5vw, 4.4rem)/1.04 var(--f-display); }
.editorial-intro > p { max-width: 650px; margin: 24px 0 0; color: rgba(247, 244, 240, .96); font-size: 1.06rem; line-height: 1.75; }
.editorial-intro > strong { display: block; margin-top: 30px; font-size: 1.42rem; }
.story-copy { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); align-items: start; gap: clamp(72px, 10vw, 150px); }
.story-origin { max-width: 680px; }
.story-origin > strong { display: block; margin-top: 34px; font-size: 1.23rem; }
.story-copy p { margin: 20px 0 0; color: rgba(247, 244, 240, .96); line-height: 1.8; }
.story-name { margin-top: clamp(130px, 14vw, 210px); padding-top: 32px; border-top: 1px solid rgba(247, 244, 240, .32); }
.story-name h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
.story-name strong { display: block; margin-top: 30px; font-size: 1.25rem; }
.story-collage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "market market workshop"
    "market market detail"
    "making making tenerife";
  gap: clamp(12px, 1.7vw, 22px);
  align-items: stretch;
}
.story-photo { width: 100%; min-width: 0; margin: 0; overflow: hidden; background: rgba(240, 237, 236, .08); }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
.story-photo-market { grid-area: market; aspect-ratio: 3 / 4; }
.story-photo-making { grid-area: making; aspect-ratio: 4 / 3; }
.story-photo-workshop { grid-area: workshop; aspect-ratio: 3 / 4; }
.story-photo-tenerife { grid-area: tenerife; aspect-ratio: 3 / 4; }
.story-photo-detail { grid-area: detail; aspect-ratio: 3 / 4; }

/* Invitación sencilla fuera del relato; el fondo claro continúa hasta el pie. */
.instagram-now { padding: clamp(60px, 5vw, 72px) 0; background: var(--blush); color: var(--ink); }
.instagram-exit { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.instagram-exit p { margin: 0; color: var(--muted); }
.instagram-exit a { padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: 1.06rem; font-weight: 600; text-decoration: none; }
.instagram-exit a:hover { opacity: .55; }
.instagram-exit a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* Pie */
.site-foot { padding: 42px 0 calc(34px + env(safe-area-inset-bottom)); background: var(--blush); color: var(--ink); border-top: 1px solid var(--line); }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px 60px; }
.foot-logo { width: 145px; height: 76px; object-fit: cover; transform: translateX(-27px); }
.site-foot a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); }
.site-foot a:hover { opacity: .55; }
.site-foot .col p { margin: 5px 0; color: var(--muted); font-size: .88rem; }
.site-foot .fine { width: 100%; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.footer-preferences { padding: 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.footer-preferences:hover { opacity: .55; }

/* Consentimiento de analítica */
.analytics-consent { position: fixed; z-index: 100; right: 20px; bottom: 20px; width: min(440px, calc(100% - 40px)); padding: 20px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.analytics-consent p { margin: 0; font-size: .86rem; line-height: 1.55; }
.analytics-consent-links { margin-top: 8px !important; }
.analytics-consent a { color: inherit; }
.analytics-consent-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.analytics-consent button { padding: 9px 12px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 600 .8rem/1 var(--f-body); cursor: pointer; }
.analytics-consent .analytics-consent-accept { background: var(--ink); color: #fff; }
.analytics-consent button:hover { opacity: .7; }

@media (max-width: 900px) {
  .site-head .wrap { min-height: 92px; grid-template-columns: 150px 1fr; }
  .brand img { width: 124px; height: 66px; }
  .main-nav { display: none; }
  .hero { min-height: 0; grid-template-columns: 1fr 1.2fr; }
  .hero-copy { min-height: 520px; padding: 55px 28px; }
  .hero-media { min-height: 520px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-copy { grid-template-columns: minmax(0, 1.15fr) minmax(240px, .85fr); gap: 54px; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: calc(96px + env(safe-area-inset-top)); }
  .wrap { padding: 0 18px; }
  .site-head .wrap { min-height: 78px; grid-template-columns: 1fr auto; gap: 16px; }
  .brand img { width: 105px; height: 58px; }
  .head-link { font-size: .78rem; }
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero-copy { min-height: 322px; flex: none; padding: 30px 22px 54px; }
  .hero h1 { font-size: 2.65rem; }
  .hero-kicker { max-width: 25ch; margin-bottom: 18px; line-height: 1.6; }
  .hero-intro { max-width: 31ch; margin-top: 20px; font-size: .9rem; line-height: 1.65; }
  .hero-cta { margin-top: 24px; }
  .hero-media { min-height: 0; aspect-ratio: 4 / 3; flex: none; order: -1; }
  .wave-divider { height: 76px; }
  .catalog { padding-top: 72px; }
  .collection-section { padding: 52px 0 48px; }
  .collection-head { margin-bottom: 28px; }
  .collection-head h2, .products-title h1 { font-size: 2.35rem; }
  .collection-subheadline { margin-top: 13px; font-size: 1.02rem; }
  .collection-description { max-width: 34rem; margin-top: 9px; font-size: .92rem; }
  .collection-footer { justify-content: flex-start; padding-top: 48px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 25px; }
  .section-head h2 { font-size: 2.35rem; }
  .controls { gap: 16px 20px; margin-bottom: 30px; }
  .grid { grid-template-columns: 1fr; gap: 24px; padding-bottom: 80px; }
  .editorial { padding: 76px 0 58px; }
  .editorial-wrap { gap: 62px; }
  .editorial-intro h2,
  .story-copy h2 { font-size: 2.5rem; }
  .editorial-intro > p,
  .story-copy p { font-size: .94rem; }
  .story-copy { display: flex; flex-direction: column; gap: 70px; }
  .story-origin > strong { font-size: 1.1rem; }
  .story-name { margin-top: 0; padding-top: 28px; }
  .story-name h2 { font-size: 2.1rem; }
  .story-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "market market"
      "making workshop"
      "detail detail";
    gap: 12px;
  }
  .story-photo-market { aspect-ratio: 4 / 5; }
  .story-photo-making,
  .story-photo-workshop { aspect-ratio: 3 / 4; }
  .story-photo-tenerife { display: none; }
  .story-photo-detail { aspect-ratio: 4 / 5; }
  .instagram-now { padding: 40px 0 44px; }
  .instagram-exit { align-items: flex-start; flex-direction: column; gap: 18px; }
  .site-foot { padding-top: 40px; }
  .site-foot .wrap { flex-direction: column; }
  .gallery-dialog { width: 100%; height: 100dvh; margin: 0; overflow-y: auto; border-radius: 0; }
  .gallery-dialog[open] { animation-name: product-dialog-in-mobile; animation-duration: .28s; }
  .gallery-shell { height: auto; min-height: 100%; display: block; }
  .gallery-media { height: auto; display: block; }
  .gallery-stage {
    --gallery-inset: 0px;
    --gallery-gutter: 0px;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: 72dvh;
    aspect-ratio: var(--gallery-aspect, 4 / 3);
  }
  .gallery-close { position: fixed; top: 10px; right: 10px; }
  .gallery-nav { width: 40px; height: 48px; }
  .gallery-prev { left: 6px; }
  .gallery-next { right: 6px; }
  .gallery-thumbs { justify-content: flex-start; min-height: 78px; padding: 8px 12px; }
  .gallery-thumbs button { width: 60px; height: 60px; }
  .product-detail { min-height: 46dvh; overflow: visible; padding: 34px 22px 40px; }
  .product-detail h2 { font-size: 1.8rem; }
  .product-detail-description { margin-top: 24px; }
  .product-detail-cta { margin-top: 32px; }
  .product-page { padding-top: 22px; padding-bottom: 40px; }
  .product-breadcrumb { margin-bottom: 18px; }
  .product-page-layout { display: block; }
  .product-page-stage { max-height: 70dvh; }
  .product-page-layout .product-detail { padding: 32px 22px 38px; }
  .product-page-layout .product-detail h1 { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-head { transition: none; }
  .reveal-item,
  .reveal-item.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .gallery-dialog[open],
  .gallery-dialog[open]::backdrop { animation: none; }
}

/* ============================================================
   ADMIN
   ============================================================ */
.admin-body { background: var(--paper); }
[hidden] { display: none !important; }
.login-screen { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login-card, .panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow);
}
.login-card { width: 100%; max-width: 380px; padding: 34px 30px; text-align: center; }
.login-card .agave-mark { width: 52px; height: 52px; color: var(--agave); margin: 0 auto 14px; }
.login-card h1 { font-family: var(--f-display); font-weight: 500; font-size: 1.5rem; margin: 0 0 4px; }
.login-card p { color: var(--agave-soft); font-size: .9rem; margin: 0 0 22px; }

label { display: block; text-align: left; font-weight: 700; font-size: .8rem; color: var(--agave); margin: 14px 0 6px; letter-spacing: .02em; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; font-family: var(--f-body); font-size: .95rem; color: var(--agave-deep);
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px;
}
input[type=color] { width: 100%; height: 43px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--agave); outline-offset: 1px; border-color: var(--agave); }
textarea { resize: vertical; min-height: 74px; }

.btn {
  font-family: var(--f-body); font-weight: 800; font-size: .92rem; cursor: pointer;
  background: var(--agave); color: #fff; border: 0; border-radius: 10px; padding: 12px 18px;
  transition: background .15s ease;
}
.btn:hover { background: var(--honey-deep); }
.btn.full { width: 100%; }
.btn.ghost { background: transparent; color: var(--agave); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--nectar); }
.btn.homepage-active { background: var(--honey-deep); color: #fff; }
.btn.homepage-active:hover { background: var(--agave); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.danger { background: transparent; color: #a23b2f; border: 1px solid #e3c5c0; padding: 8px 12px; font-size: .82rem; }
.btn.danger:hover { background: #f7ecea; }
.btn.small { padding: 8px 12px; font-size: .82rem; }
.msg { font-size: .86rem; margin: 14px 0 0; min-height: 1.2em; }
.msg.error { color: #a23b2f; }
.msg.ok { color: var(--agave); }

.admin-head {
  border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 80%, white);
  position: sticky; top: 0; z-index: 20;
}
.admin-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.admin-head-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.admin-main { padding: 30px 0 80px; }
.admin-view-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.admin-view-tab { padding: 10px 15px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--agave); font: 800 .86rem/1 var(--f-body); cursor: pointer; }
.admin-view-tab:hover { background: var(--nectar); }
.admin-view-tab.active { border-color: var(--agave); background: var(--agave); color: #fff; }
.admin-grid { display: block; }
.admin-product-form { max-width: 720px; }
.panel { padding: 22px; }
.panel h2 { font-family: var(--f-display); font-weight: 500; font-size: 1.25rem; margin: 0 0 4px; }
.panel .hint { color: var(--agave-soft); font-size: .85rem; margin: 0 0 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-hint { margin: 7px 0 0; color: var(--agave-soft); font-size: .75rem; line-height: 1.45; }
.collection-toggle { margin-top: 8px; padding: 6px 9px; font-size: .75rem; }
.collection-creator { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.collection-creator h3 { margin: 0 0 4px; font-family: var(--f-display); font-size: 1.05rem; font-weight: 500; }
.collection-active { align-self: end; margin-bottom: 12px; }
.collection-manager-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.collection-admin-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.collection-admin-card { padding: 18px; border: 1px solid var(--line); background: #fff; }
.collection-admin-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.collection-admin-title strong { font-family: var(--f-display); font-size: 1.05rem; }
.collection-admin-title span { color: var(--agave-soft); font-size: .7rem; }
.collection-admin-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.collection-admin-footer .toggle { margin: 0; }
.image-manager { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.image-empty { grid-column: 1 / -1; margin: 0; padding: 18px 12px; border: 1px dashed var(--line); color: var(--agave-soft); font-size: .78rem; text-align: center; }
.image-item { min-width: 0; position: relative; aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid var(--line); background: var(--nectar); }
.image-item > img { width: 100%; height: 100%; object-fit: cover; }
.cover-label { position: absolute; top: 5px; left: 5px; padding: 3px 5px; background: var(--ink); color: #fff; font-size: .58rem; font-weight: 700; text-transform: uppercase; }
.image-actions { position: absolute; right: 4px; bottom: 4px; left: 4px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.image-actions button { min-width: 0; height: 27px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .92); color: var(--ink); font: 700 .9rem/1 var(--f-body); cursor: pointer; }
.image-actions button:hover { background: #fff; }
.image-actions button:disabled { opacity: .38; cursor: default; }

.plist { display: flex; flex-direction: column; gap: 10px; }
.pitem {
  display: flex; gap: 13px; align-items: center; padding: 11px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.pitem .thumb { width: 54px; height: 54px; border-radius: 9px; object-fit: cover; background: var(--nectar); flex: none; }
.pitem .meta { flex: 1; min-width: 0; }
.pitem .meta .n { font-weight: 800; font-size: .95rem; }
.pitem .meta .s { font-size: .78rem; color: var(--agave-soft); }
.pitem .acts { display: flex; gap: 7px; align-items: center; flex: none; }
.homepage-position { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .72rem; white-space: nowrap; }
.homepage-position select { width: 54px; min-width: 54px; padding: 7px 8px; font-size: .8rem; }
.product-group { margin-bottom: 14px; border: 1px solid var(--line); background: #fff; }
.product-group-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; background: var(--nectar); }
.product-group-head h3 { margin: 0; font: 700 1rem/1.2 var(--f-display); }
.product-group-head p { margin: 4px 0 0; color: var(--agave-soft); font-size: .76rem; }
.product-group-head .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.product-group .pitem { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.variant-color { display: inline-flex; align-items: center; gap: 6px; }
.variant-swatch { width: 13px; height: 13px; display: inline-block; flex: none; border: 1px solid rgba(18, 18, 18, .22); background: var(--swatch, #ddd); }
.stock-control { height: 34px; display: grid; grid-template-columns: 30px auto 30px; align-items: center; border: 1px solid var(--line); }
.stock-control button { width: 30px; height: 32px; padding: 0; border: 0; background: transparent; color: var(--ink); font: 700 1rem/1 var(--f-body); cursor: pointer; }
.stock-control button:hover { background: var(--nectar); }
.stock-control button:disabled { color: var(--line); cursor: default; }
.stock-control span { min-width: 58px; padding: 0 7px; font-size: .72rem; font-weight: 700; text-align: center; }
.pill { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 999px; }
.pill.disponible { background: #E3EFE2; color: var(--agave); }
.pill.vendido { background: #EBEDE7; color: var(--sold); }
.pill.reservado { background: var(--nectar); color: var(--honey-deep); }
.pill.homepage-pill { background: var(--honey); color: var(--ink); }
.pill.hidden-pill { background: var(--blush-deep); color: var(--ink); }

.uploading { opacity: .55; pointer-events: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 720px) {
  .admin-head .wrap { align-items: flex-start; flex-direction: column; padding-top: 12px; padding-bottom: 12px; }
  .admin-head-actions { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .collection-manager-head { flex-direction: column; }
  .collection-admin-list { grid-template-columns: 1fr; }
  .collection-admin-footer { align-items: flex-start; flex-direction: column; }
  .product-group-head { align-items: flex-start; flex-direction: column; }
  .pitem { align-items: flex-start; flex-wrap: wrap; }
  .pitem .meta { min-width: calc(100% - 70px); }
  .pitem .acts { width: 100%; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
