/* ==========================================================================
   Vanessa F Taller — hoja de estilos
   Paleta: #FAFAFA (fondo) · #111111 (texto) · #BE7136 (acento) · #F9EBE2 (suave)
   ========================================================================== */

:root {
  --bg: #FAFAFA;
  --ink: #111111;
  --accent: #BE7136;
  --soft: #F9EBE2;

  /* Derivados funcionales (accesibilidad / estados) */
  --accent-text: #9A5626;            /* acento oscurecido para texto pequeño: contraste AA */
  --muted: rgba(17, 17, 17, .64);
  --line: rgba(17, 17, 17, .12);
  --line-strong: rgba(17, 17, 17, .28);
  --error: #A8321F;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Jost", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --header-h: 72px;
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --section: clamp(64px, 9vw, 136px);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
figure { margin: 0; }
em { font-style: italic; }
::selection { background: var(--soft); color: var(--ink); }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; }
main:focus { outline: none; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; font-size: 14px;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container--narrow { max-width: 820px; }
.center { text-align: center; }

/* ------------------------------------------------------------ tipografía */
.eyebrow {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 18px;
  font-weight: 500;
}
.eyebrow a:hover { color: var(--ink); }
.section-title, .page-title, .hero__title, .product__title {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -.015em;
  line-height: 1.08;
  font-optical-sizing: auto;
}
.section-title { font-size: clamp(30px, 3.6vw, 52px); }
.page-title { font-size: clamp(40px, 6vw, 84px); margin-bottom: 20px; }
.section-title em, .page-title em, .hero__title em { color: var(--accent); font-style: italic; }
.page-lead { font-size: clamp(16px, 1.3vw, 18px); color: var(--muted); max-width: 60ch; }
.subhead { font-family: var(--font-display); font-weight: 400; font-size: 24px; margin: 0 0 18px; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid var(--accent);
  transition: gap .3s var(--ease), color .3s var(--ease);
}
.text-link:hover { gap: 14px; color: var(--accent-text); }

/* --------------------------------------------------------------- botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 30px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: var(--bg);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease);
  text-align: center;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--block { width: 100%; }
.btn--lg { min-height: 58px; font-size: 14px; }
.btn[disabled], .btn.is-loading { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn.is-loading { opacity: .75; }

.link-btn {
  display: inline-block;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  padding: 10px 0 4px; border-bottom: 1px solid var(--accent);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.link-btn:hover { color: var(--accent-text); }
.link-btn.is-disabled { color: var(--muted); border-color: var(--line); cursor: default; }
.link-btn.is-added { color: var(--accent-text); }

.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; }
.icon-btn svg { width: 22px; height: 22px; }

/* ------------------------------------------------------ anuncio y header */
.announce { background: var(--accent); color: var(--bg); text-align: center; }
.announce p { margin: 0; padding: 9px var(--gutter); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 250, 250, .94);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.logo {
  font-family: var(--font-display); font-weight: 400; font-size: 24px; letter-spacing: -.01em; white-space: nowrap;
  justify-self: start;
}
.logo em { color: var(--accent); font-weight: 300; }
.logo--img { display: block; line-height: 0; }
.logo--img img { height: 54px; width: auto; max-width: 100%; }
.main-nav ul { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.main-nav a {
  position: relative; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; padding: 8px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.cart-link { justify-self: end; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; }
.cart-link__icon { width: 22px; height: 22px; display: none; }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  display: inline-grid; place-items: center;
  font-size: 11px; letter-spacing: 0; background: transparent; border: 1px solid var(--line-strong);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.cart-count.has-items { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.18); } }

.menu-toggle { display: none; width: 44px; height: 44px; margin-left: -10px; place-items: center; }
.menu-toggle__lines, .menu-toggle__lines::before { display: block; width: 22px; height: 1px; background: var(--ink); position: relative; transition: transform .3s var(--ease); }
.menu-toggle__lines::before { content: ""; position: absolute; top: 7px; }
.menu-toggle__lines { transform: translateY(-3.5px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines::before { transform: translateY(-7px) rotate(-90deg); }

.mobile-menu {
  position: fixed; inset: 0; top: var(--menu-top, var(--header-h)); z-index: 39;
  background: var(--bg); padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto;
  animation: fadeIn .3s var(--ease);
}
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu nav a { display: flex; align-items: center; min-height: 64px; font-family: var(--font-display); font-weight: 300; font-size: 32px; }
.mobile-menu nav a[aria-current="page"] { color: var(--accent-text); }
.mobile-menu__foot { display: grid; gap: 6px; padding-top: 28px; }
.mobile-menu__foot a { font-size: 14px; color: var(--muted); padding: 8px 0; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ----------------------------------------------------------------- hero */
.hero { padding: clamp(36px, 6vw, 88px) 0 clamp(56px, 8vw, 120px); }
.hero__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: center; }
.hero__text { grid-column: 1 / span 5; }
.hero__title { font-size: clamp(46px, 6.2vw, 100px); margin-bottom: 28px; }
.hero__lead { font-size: clamp(16px, 1.3vw, 18px); color: var(--muted); max-width: 42ch; margin-bottom: 40px; }
.hero__lead--tight { margin-bottom: 14px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.hero__media { grid-column: 7 / span 6; }
.hero__media img, .hero__video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--soft); }
.hero__media figcaption { margin-top: 14px; font-size: 12px; letter-spacing: .08em; color: var(--muted); }

/* ------------------------------------------------------------- secciones */
.section { padding: var(--section) 0; }
.section--tight { padding-top: clamp(24px, 3vw, 40px); }
.section--soft { background: var(--soft); }
.section--line { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.section-head .eyebrow { margin-bottom: 12px; }

.intro { text-align: center; padding-top: 0; }
.intro__text { font-family: var(--font-display); font-weight: 300; font-size: clamp(24px, 2.8vw, 38px); line-height: 1.35; margin-bottom: 36px; }
.intro__text em { color: var(--accent); }

.page-head { padding: clamp(32px, 5vw, 72px) 0 clamp(8px, 2vw, 24px); }
.page-head--compact { padding-bottom: 0; }
.breadcrumbs { font-size: 12px; color: var(--muted); letter-spacing: .04em; margin-bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs [aria-current] { color: var(--ink); }
.breadcrumbs--product { padding-top: 24px; margin-bottom: 20px; }

/* ------------------------------------------------------ rejilla producto */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(14px, 2vw, 28px); }
.product-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { position: relative; display: flex; flex-direction: column; }
.card__media { position: relative; display: block; overflow: hidden; background: var(--soft); aspect-ratio: 4 / 5; }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.card__img--alt { opacity: 0; }
@media (hover: hover) {
  .card:hover .card__img { transform: scale(1.025); }
  .card:hover .card__img--alt { opacity: 1; }
}
.card.is-sold .card__img { opacity: .6; }
.card__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.badge { background: var(--bg); color: var(--ink); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 9px; }
.badge--accent { background: var(--accent); }
.card__body { padding-top: 16px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.25; margin-bottom: 4px; }
.card__title a:hover { color: var(--accent-text); }
.card__price { font-size: 14px; margin: 0 0 8px; display: flex; gap: 10px; align-items: baseline; }
.card__price s, .product__price s { color: var(--muted); font-size: .9em; }
.card__desc { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__stock { margin-bottom: 4px; }
.card__actions { margin-top: auto; }

.stock { font-size: 12px; letter-spacing: .06em; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.stock--bajo_pedido::before, .stock--proximamente::before { background: transparent; border: 1px solid var(--accent); }
.stock--agotado::before { background: var(--line-strong); }

/* ---------------------------------------------------- colecciones */
.collection-mosaic { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: clamp(16px, 2vw, 28px); }
.collection-tile { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; }
.collection-tile--lead { grid-row: span 2; grid-template-columns: 1fr; align-items: start; }
.collection-tile__media { display: block; overflow: hidden; background: var(--bg); aspect-ratio: 4 / 5; }
.collection-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.collection-tile:hover .collection-tile__media img { transform: scale(1.03); }
.collection-tile__body { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding-bottom: 8px; }
.collection-tile__name { font-family: var(--font-display); font-weight: 300; font-size: clamp(28px, 3vw, 44px); line-height: 1.05; }
.collection-tile__desc { font-size: 14px; color: var(--muted); max-width: 36ch; }

.collection-list { display: grid; gap: clamp(56px, 8vw, 120px); }
.collection-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: center; }
.collection-row__media { grid-column: 1 / span 6; display: block; overflow: hidden; background: var(--soft); aspect-ratio: 4 / 5; }
.collection-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.collection-row__media:hover img { transform: scale(1.03); }
.collection-row__body { grid-column: 8 / span 5; }
.collection-row--flip .collection-row__media { grid-column: 7 / span 6; grid-row: 1; }
.collection-row--flip .collection-row__body { grid-column: 1 / span 5; grid-row: 1; }
.collection-row__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(40px, 5vw, 72px); line-height: 1; margin-bottom: 20px; }
.collection-row__body p:not(.eyebrow) { color: var(--muted); margin-bottom: 32px; max-width: 42ch; }

.collection-hero { padding: clamp(24px, 4vw, 56px) 0 0; }
.collection-hero__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: end; }
.collection-hero__text { grid-column: 1 / span 6; padding-bottom: 24px; }
.collection-hero__media { grid-column: 8 / span 5; }
.collection-hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--soft); }
.collection-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 var(--gutter); }
.collection-links a { display: flex; flex-direction: column; gap: 6px; padding: 24px 0; border-top: 1px solid var(--line-strong); }
.collection-links span { font-family: var(--font-display); font-size: 28px; font-weight: 300; transition: color .3s var(--ease); }
.collection-links small { color: var(--muted); font-size: 14px; }
.collection-links a:hover span { color: var(--accent-text); }

/* ------------------------------------------------------------ artesanía */
.craft__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: center; }
.craft__media { grid-column: 1 / span 5; }
.craft__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--soft); }
.craft__text { grid-column: 7 / span 6; }
.craft__text > p { color: var(--muted); max-width: 54ch; margin-top: 24px; }
.steps { margin-top: 40px; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps__n { font-family: var(--font-display); font-style: italic; color: var(--accent); font-size: 22px; line-height: 1.2; }
.steps h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; margin: 0; }

/* -------------------------------------------------------------- talleres */
.teaser__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: center; }
.teaser__text { grid-column: 1 / span 5; }
.teaser__text > p:not(.eyebrow) { color: var(--muted); margin-top: 20px; }
.teaser__next { font-size: 14px; color: var(--ink) !important; border-left: 1px solid var(--accent); padding-left: 14px; margin: 24px 0 32px; }
.teaser__next span { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.teaser__modes { margin: 32px 0 36px; }
.teaser__modes .steps { margin-top: 14px; }
.teaser__media { grid-column: 7 / span 6; }
.teaser__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.workshop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: clamp(40px, 5vw, 64px) clamp(16px, 2.5vw, 36px); }
.workshop-card { display: flex; flex-direction: column; }
.workshop-card__media { display: block; overflow: hidden; background: var(--soft); aspect-ratio: 3 / 2; }
.workshop-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.workshop-card:hover .workshop-card__media img { transform: scale(1.03); }
.workshop-card__body { padding-top: 22px; display: flex; flex-direction: column; flex: 1; align-items: flex-start; }
.workshop-card__body .eyebrow { margin-bottom: 10px; }
.workshop-card__title { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.2; margin-bottom: 10px; }
.workshop-card__title a:hover { color: var(--accent-text); }
.workshop-card__desc { color: var(--muted); font-size: 15px; }
.workshop-card .btn { margin-top: auto; }
.meta-list { width: 100%; margin: 4px 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.meta-list div { display: flex; flex-direction: column; }
.meta-list dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.meta-list dd { margin: 2px 0 0; font-size: 14.5px; }
.meta-list--stack { grid-template-columns: 1fr; gap: 0; padding-top: 0; margin: 28px 0; }
.meta-list--stack div { flex-direction: row; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.meta-list--stack dd { text-align: right; margin: 0; }

.workshop { padding-bottom: var(--section); }
.workshop__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: start; }
.workshop__main { grid-column: 1 / span 7; }
.workshop__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--soft); }
.workshop__content { margin-top: 40px; max-width: 62ch; }
.workshop__content p { color: var(--muted); }
.workshop__content .subhead { margin-top: 36px; }
.workshop__aside { grid-column: 9 / span 4; }
.workshop__aside .btn { margin-bottom: 12px; }

/* ------------------------------------------------------------- toolbar */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(28px, 3vw, 44px); padding-bottom: 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px; border: 1px solid var(--line-strong); border-radius: 40px; font-size: 13px; letter-spacing: .04em; transition: border-color .25s var(--ease), background-color .25s var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.toolbar__right { display: flex; align-items: center; gap: 20px; }
.toolbar__count { font-size: 13px; color: var(--muted); }
.select select {
  appearance: none; -webkit-appearance: none; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent;
  padding: 8px 26px 8px 0; font-size: 13px; min-height: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23111' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center;
}
.empty { text-align: center; padding: clamp(48px, 8vw, 96px) 0; display: grid; gap: 20px; justify-items: center; }
.empty p { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 300; margin: 0; }

/* ---------------------------------------------------------- ficha producto */
.product { padding-bottom: clamp(24px, 4vw, 48px); }
.product__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: start; }
.gallery { grid-column: 1 / span 7; display: grid; grid-template-columns: 72px 1fr; gap: 16px; }
.gallery__track {
  grid-column: 2; grid-row: 1;
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; background: var(--soft);
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 5; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 10px; }
.gallery__thumb { width: 72px; aspect-ratio: 4 / 5; background: var(--soft); opacity: .55; outline-offset: 2px; transition: opacity .3s var(--ease); border: 1px solid transparent; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: .85; }
.gallery__thumb.is-active { opacity: 1; border-color: var(--accent); }

.product__info { grid-column: 9 / span 4; }
.product__sticky { position: sticky; top: calc(var(--header-h) + 24px); }
.product__title { font-size: clamp(34px, 3.4vw, 52px); margin-bottom: 14px; }
.product__price { font-size: 20px; margin-bottom: 10px; display: flex; gap: 12px; align-items: baseline; }
.product__desc { margin: 28px 0; color: var(--muted); font-size: 15.5px; }
.product__alt { margin-top: 16px; }
.product-form { display: grid; gap: 22px; margin-bottom: 36px; }
.product-form__row { display: grid; grid-template-columns: auto 1fr; gap: 12px; }

.option { border: 0; margin: 0; padding: 0; min-width: 0; }
.option legend { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; padding: 0; }
.option__values { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border: 1px solid var(--line-strong); font-size: 14px; transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease); }
.pill input:hover + span { border-color: var(--ink); }
.pill input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.pill input:focus-visible + span { outline: 1.5px solid var(--accent); outline-offset: 2px; }
.pill input:disabled + span { opacity: .4; }

.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); height: 52px; }
.qty__btn { width: 44px; font-size: 18px; transition: background-color .2s var(--ease); }
.qty__btn:hover { background: var(--soft); }
.qty__btn:disabled { opacity: .35; cursor: not-allowed; }
.qty__input { width: 44px; text-align: center; border: 0; background: transparent; font-size: 15px; -moz-appearance: textfield; appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { height: 40px; }
.qty--sm .qty__btn { width: 36px; font-size: 16px; }
.qty--sm .qty__input { width: 32px; font-size: 14px; }

.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  min-height: 56px; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 18px; font-weight: 300; transition: transform .3s var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details > *:not(summary) { padding-bottom: 20px; color: var(--muted); font-size: 15px; margin: 0; }
.accordion a, .prose a, .form-hint a, .check a { border-bottom: 1px solid var(--accent); }
.features li { position: relative; padding-left: 18px; margin-bottom: 6px; }
.features li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 1px; background: var(--accent); }

/* -------------------------------------------------------------- formularios */
.field { display: grid; gap: 8px; }
.field label, .field-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #fff; font-size: 16px; transition: border-color .2s var(--ease);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: rgba(17, 17, 17, .5); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 1px var(--ink); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field-error { color: var(--error); font-size: 13px; margin: 0; }
.req { color: var(--accent-text); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row--3 { grid-template-columns: 1fr 1.4fr 1fr; }
.form-hint { font-size: 13px; color: var(--muted); margin: 0; }
.form-hint--center { text-align: center; }
.form-error { border-left: 2px solid var(--error); background: #fff; padding: 12px 16px; color: var(--error); font-size: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; }
.check input { width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ----------------------------------------------------------------- cesta */
.checkout__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: start; }
.checkout__lines { grid-column: 1 / span 6; }
.checkout__form { grid-column: 8 / span 5; display: grid; gap: 20px; background: var(--bg); }
.checkout__summary { margin: 8px 0 28px; }
.checkout__loading { padding: 64px 0; text-align: center; color: var(--muted); }
.address { display: grid; gap: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; }
.summary-row--muted { color: var(--muted); }
.summary-row--total { border-top: 1px solid var(--ink); margin-top: 8px; padding-top: 16px; font-size: 18px; }
.summary-row--total strong { font-weight: 500; }

.lines { border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 88px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; animation: fadeIn .3s var(--ease); }
.line__img { width: 88px; aspect-ratio: 4 / 5; background: var(--soft); overflow: hidden; }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line__name { font-family: var(--font-display); font-size: 19px; line-height: 1.25; }
.line__name a:hover { color: var(--accent-text); }
.line__meta { font-size: 13px; color: var(--muted); margin: 4px 0 12px; line-height: 1.5; }
.line__meta span { display: block; }
.line__warn { color: var(--error); font-size: 13px; margin: 0 0 10px; }
.line__controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.line__remove { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-strong); padding: 6px 0 2px; min-height: 32px; }
.line__remove:hover { color: var(--ink); border-color: var(--ink); }
.line__price { text-align: right; font-size: 15px; white-space: nowrap; }
.line__unit { display: block; font-size: 12px; color: var(--muted); }

.confirmation { max-width: 680px; margin: 0 auto; text-align: center; padding: 24px 0 48px; display: grid; gap: 8px; justify-items: center; }
.confirmation .btn { margin: 16px 0 8px; }
.confirmation:focus { outline: none; }

/* ---------------------------------------------------------- cajón cesta */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(17, 17, 17, .32); opacity: 0; transition: opacity .35s var(--ease); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  background: var(--bg); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .45s var(--ease);
  padding-bottom: env(safe-area-inset-bottom);
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.drawer__title { font-family: var(--font-display); font-weight: 300; font-size: 28px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 0 24px; overscroll-behavior: contain; }
.drawer__body .lines { border-top: 0; }
.drawer__body .line { grid-template-columns: 72px 1fr auto; gap: 14px; }
.drawer__body .line__img { width: 72px; }
.drawer__body .line__name { font-size: 17px; }
.drawer__foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer__total { display: flex; justify-content: space-between; font-size: 16px; }
.drawer__total strong { font-weight: 500; }
.drawer__note { font-size: 12.5px; color: var(--muted); margin: 0 0 6px; }
.drawer__empty { padding: 48px 0; text-align: center; display: grid; gap: 20px; justify-items: center; }
.drawer__empty p { font-family: var(--font-display); font-size: 22px; font-weight: 300; margin: 0; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 70;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 14px 22px; font-size: 14px; max-width: calc(100vw - 32px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* -------------------------------------------------------- aviso cookies */
.cookie-notice {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--bg); border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; gap: 16px 28px; flex-wrap: wrap;
  padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom));
  animation: fadeIn .4s var(--ease);
}
.cookie-notice p { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 70ch; }
.cookie-notice a { color: var(--ink); border-bottom: 1px solid var(--accent); }
.cookie-notice .btn { min-height: 44px; padding: 10px 24px; }
.pending { background: var(--soft); color: var(--accent-text); padding: 0 4px; }

/* ---------------------------------------------------------------- prosa */
.prose { font-size: 16px; }
.prose h2 { font-family: var(--font-display); font-size: 26px; margin: 40px 0 12px; }
.prose p, .prose li { color: rgba(17, 17, 17, .78); }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 20px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--accent); }
.notice { background: var(--soft); padding: 14px 18px; font-size: 14px; }
.notice--form { margin: 0; font-size: 13.5px; }
.notice--form a { border-bottom: 1px solid var(--accent); }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23111' stroke-width='1.2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
.captcha { min-height: 65px; }
.price-note { font-size: 12px; color: var(--muted); letter-spacing: .04em; margin: -4px 0 10px; }

/* --------------------------------------------------------------- CTA final */
.cta-final { text-align: center; }
.cta-final p { color: var(--muted); margin: 20px auto 36px; max-width: 52ch; }
.cta-final__actions { display: flex; flex-wrap: wrap; gap: 20px 32px; justify-content: center; align-items: center; }

/* ----------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: var(--bg); padding: clamp(56px, 7vw, 96px) 0 28px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px var(--gutter); padding-bottom: clamp(40px, 5vw, 72px); }
.logo--light { font-size: 30px; display: inline-block; margin-bottom: 18px; }
.logo--footer { display: inline-block; margin-bottom: 18px; }
.logo--footer img { height: 64px; width: auto; max-width: 100%; }
.footer-brand p { color: rgba(250, 250, 250, .66); max-width: 38ch; font-size: 15px; }
.footer-col h2 { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; font-weight: 500; }
.footer-col li a { display: inline-block; padding: 6px 0; font-size: 15px; color: rgba(250, 250, 250, .86); transition: color .25s var(--ease); word-break: break-word; }
.footer-col li a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(250, 250, 250, .14); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: rgba(250, 250, 250, .6); }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 20px; }
.footer-bottom a:hover { color: var(--bg); }
.site-footer :focus-visible { outline-color: var(--accent); }

/* ------------------------------------------------------- animación reveal */
/* Solo se oculta si JS está activo (clase .js en <html>) */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================ responsive */
@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: inline-grid; }
  .main-nav { display: none; }
  .logo { justify-self: center; font-size: 22px; }
  .logo--img img { height: 44px; }
  .cart-link__label { display: none; }
  .cart-link__icon { display: block; }
  .cart-link { gap: 4px; }
  .cart-count { min-width: 20px; height: 20px; font-size: 10.5px; }

  .product-grid, .product-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__grid, .craft__grid, .teaser__grid, .collection-hero__grid, .product__grid, .workshop__grid, .checkout__grid, .collection-row { grid-template-columns: 1fr; }
  .hero__text, .hero__media, .craft__media, .craft__text, .teaser__text, .teaser__media,
  .collection-hero__text, .collection-hero__media, .gallery, .product__info, .workshop__main, .workshop__aside,
  .checkout__lines, .checkout__form, .collection-row__media, .collection-row__body,
  .collection-row--flip .collection-row__media, .collection-row--flip .collection-row__body { grid-column: 1; grid-row: auto; }
  .hero__media { max-width: 620px; }
  .craft__media { max-width: 520px; }
  .collection-hero__media { max-width: 520px; }
  .product__sticky { position: static; }
  .gallery { grid-template-columns: 1fr; gap: 12px; margin: 0 calc(var(--gutter) * -1); }
  .gallery__track { grid-column: 1; }
  .gallery__thumbs { grid-column: 1; grid-row: 2; flex-direction: row; justify-content: center; gap: 8px; padding: 0 var(--gutter); }
  .gallery__thumb { width: 56px; }
  .workshop__aside { grid-row: 1; }
  .checkout__form { margin-top: 24px; }
  .collection-mosaic { grid-template-columns: 1fr; }
  .collection-tile--lead { grid-row: auto; }
  .collection-tile { grid-template-columns: 1fr 1fr; }
  .collection-tile--lead { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .announce p { font-size: 10.5px; letter-spacing: .1em; }
  .product-grid, .product-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 12px; }
  .product-grid--scroll {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scrollbar-width: none;
    scroll-padding-left: var(--gutter);
  }
  .product-grid--scroll::-webkit-scrollbar { display: none; }
  .product-grid--scroll > .card { flex: 0 0 68%; scroll-snap-align: start; }
  .card__desc { display: none; }
  .card__title { font-size: 16.5px; }
  .card__price { font-size: 13.5px; }
  .link-btn { font-size: 11px; letter-spacing: .1em; }
  .badge { font-size: 9.5px; padding: 4px 7px; }
  .card__badges { top: 8px; left: 8px; }

  .hero { padding-top: 28px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .text-link { align-self: flex-start; }
  .hero__media { margin: 8px calc(var(--gutter) * -1) 0; max-width: none; }
  .hero__media figcaption { padding: 0 var(--gutter); }

  .section-head { align-items: flex-start; flex-direction: column; flex-wrap: nowrap; gap: 16px; }
  .toolbar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .filters { min-width: 0; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .toolbar__right { justify-content: space-between; }

  .collection-tile, .collection-tile--lead { grid-template-columns: 44% 1fr; align-items: center; gap: 16px; }
  .collection-tile__name { font-size: 28px; }
  .collection-tile__desc { font-size: 13.5px; }
  .steps li { grid-template-columns: 40px 1fr; }
  .field-row, .field-row--3 { grid-template-columns: 1fr; }
  .line { grid-template-columns: 72px 1fr; }
  .line__img { width: 72px; }
  .line__price { grid-column: 2; text-align: left; }
  .drawer__body .line { grid-template-columns: 64px 1fr; }
  .drawer__body .line__img { width: 64px; }
  .drawer__head, .drawer__foot { padding-left: 16px; padding-right: 16px; }
  .drawer__body { padding: 0 16px; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > .footer-col:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .cta-final__actions { flex-direction: column; }
  .cta-final__actions .btn { width: 100%; }
  .meta-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .product-form__row .btn { padding: 12px 14px; letter-spacing: .1em; }
}

@media (max-width: 380px) {
  .logo { font-size: 19px; }
  .logo--img img { height: 38px; }
  .product-form__row { grid-template-columns: 1fr; }
  .qty { justify-self: start; }
}

/* Tabla de tarifas de envío (página Envíos y devoluciones) */
.rates { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; }
.rates th, .rates td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rates th { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.rates td:last-child, .rates th:last-child { text-align: right; }
