/* ============================================================
   EVILLAR3D — Design System v3
   Palette: Terracota pálida · Beige · Bone
   Estética: home decor editorial / alto diseño
   ============================================================ */

:root {
  /* ── Motion extended ── */
  --ease-out-expo: cubic-bezier(.19,1,.22,1);
  --ease-in-back:  cubic-bezier(.36,0,.66,-.56);
  --ease-spring:   cubic-bezier(.34,1.56,.64,1);

  /* ── Accent — terracota muted ── */
  --terra:        #b8735a;
  --terra-deep:   #9d5d42;
  --terra-pale:   #edddd6;
  --terra-soft:   #faf3ef;
  --terra-glow:   rgba(184,115,90,.12);

  /* ── Backgrounds — bone, beige, sand ── */
  --bone:         #faf7f3;
  --sand:         #f4ede4;
  --beige:        #ede4d8;
  --parchment:    #f0e9de;

  /* ── Text ── */
  --ink:          #1a1109;
  --mocha:        #4a3828;
  --ash:          #8a7464;
  --ash-light:    #bfb0a4;

  /* ── Borders ── */
  --border:       #e2d8ce;
  --border-dark:  #2a180a;

  /* ── Utility ── */
  --white:        #ffffff;
  --success:      #5a8c5a;
  --danger:       #b85050;
  --gold:         #c09040;

  /* ── Shape — minimal / editorial ── */
  --radius-sm:    2px;
  --radius:       4px;
  --radius-lg:    6px;

  /* ── Shadows — ultra subtle ── */
  --shadow-sm:    0 1px 4px rgba(60,30,10,.04);
  --shadow:       0 4px 20px rgba(60,30,10,.06);
  --shadow-lg:    0 16px 48px rgba(60,30,10,.10);

  /* ── Typography ── */
  --font-body:    'Inter', system-ui, sans-serif;
  --font-head:    'Lora', 'Georgia', serif;

  /* ── Motion ── */
  --ease:         cubic-bezier(.25,.46,.45,.94);
  --dur:          240ms;

  /* ── Aliases de compatibilidad (inline styles legacy) ── */
  --ember:        var(--terra);
  --ember-dark:   var(--terra-deep);
  --ember-soft:   var(--terra-soft);
  --ember-glow:   var(--terra-glow);
  --smoke:        var(--bone);
  --fog:          var(--sand);
  --linen:        var(--parchment);
  --slate:        var(--ash);
  --slate-light:  var(--ash-light);
  --text:         var(--ink);
  --bg:           var(--bone);
  --bg-alt:       var(--sand);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Lora:ital,wght@0,400;0,500;1,400;1,500&display=swap');

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--mocha);
  background: var(--bone);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1,h2,h3,h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}
strong { font-weight: 500; }
.main { flex: 1; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .4s var(--ease-out-expo);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.22) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .5s var(--ease-out-expo);
}
.btn:hover::after { transform: translateX(100%); }
.btn--primary {
  background: var(--terra);
  color: var(--white);
  border-color: var(--terra);
}
.btn--primary:hover {
  background: var(--terra-deep);
  border-color: var(--terra-deep);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px rgba(184,115,90,.36);
}
.btn--dark {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.btn--dark:hover {
  background: var(--mocha);
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}
.btn--outline:hover {
  border-color: var(--terra);
  color: var(--terra);
}
.btn--ghost {
  background: transparent;
  color: var(--ash);
  border-color: transparent;
}
.btn--ghost:hover { color: var(--ink); }
.btn--teal   { background: #5a8c78; color: var(--white); }
.btn--teal:hover { background: #4a7a68; }
.btn--sm     { padding: 7px 16px; font-size: 11px; }
.btn--lg     { padding: 14px 32px; font-size: 13px; }
.btn--xl     { padding: 16px 40px; font-size: 14px; }
.btn--block  { width: 100%; }
.btn--pill   { border-radius: 50px; }
.btn--danger { background: var(--danger); color: var(--white); border-color: var(--danger); }

/* ─────────────────────────────────────────────
   HEADER — vidrio claro
───────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0; z-index: 100;
  background: rgba(250,247,243,.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(226,216,206,.6);
}
.header__inner { display: flex; align-items: center; gap: 20px; height: 64px; }

.header__logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 17px; font-weight: 500;
  font-style: italic;
  flex-shrink: 0; letter-spacing: -.01em;
}
.header__logo svg rect { fill: var(--terra); }
.header__logo strong { font-style: normal; font-weight: 500; color: var(--terra); }

.header__search {
  flex: 1; max-width: 380px;
  display: flex;
  background: rgba(240,233,222,.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: border-color var(--dur);
}
.header__search:focus-within { border-color: var(--terra); }
.header__search input {
  flex: 1; padding: 9px 14px;
  background: transparent; border: none; outline: none;
  font-size: 13px; color: var(--ink); font-weight: 300;
}
.header__search input::placeholder { color: var(--ash-light); }
.header__search button {
  padding: 0 14px; background: transparent; border: none;
  cursor: pointer; color: var(--ash);
  display: flex; align-items: center;
  transition: color var(--dur);
}
.header__search button:hover { color: var(--terra); }

.header__nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0; }
.header__link {
  color: var(--ash); font-size: 12px; font-weight: 400;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--radius-sm);
  transition: color var(--dur);
}
.header__link:hover { color: var(--ink); }

.cart-btn {
  position: relative; display: flex; align-items: center;
  padding: 8px; color: var(--ash); border-radius: var(--radius-sm);
  transition: color var(--dur);
}
.cart-btn:hover { color: var(--terra); }

.cart-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--terra); color: var(--white);
  font-size: 9px; font-weight: 500;
  min-width: 16px; height: 16px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; border: 1.5px solid var(--bone);
}

/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--parchment);
  overflow: hidden;
  padding: 120px 0 100px;
}

/* Texture overlay sin imagen */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 15% 50%, rgba(184,115,90,.08) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 85% 80%, rgba(184,115,90,.05) 0%, transparent 60%);
  pointer-events: none;
}

/* Con imagen: full bleed con slideshow */
.hero--has-image {
  background: var(--ink);
}

/* ── Hero Slideshow ── */
.hero__slides {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero__slide.active { opacity: .58; }

/* Glass gradient sobre el slideshow */
.hero--has-image::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to right,
    rgba(26,17,9,.52) 0%,
    rgba(26,17,9,.22) 55%,
    rgba(26,17,9,.06) 100%
  );
  pointer-events: none;
}

/* Dots del slideshow */
.hero__dots {
  display: flex; gap: 8px; justify-content: center;
  margin-top: 28px;
}
.hero__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: none; cursor: pointer; padding: 0;
  transition: background .3s, transform .3s;
}
.hero__dot.active {
  background: var(--white);
  transform: scale(1.4);
}
.hero__dot:hover { background: rgba(255,255,255,.65); }

.hero .container { position: relative; z-index: 2; text-align: center; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--terra);
  font-size: 10.5px; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 28px;
}
.hero__eyebrow::before,
.hero__eyebrow::after {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: currentColor;
  opacity: .5;
}

/* Hero con imagen: texto blanco */
.hero--has-image .hero__eyebrow { color: rgba(255,255,255,.7); }
.hero--has-image .hero__title    { color: var(--white); }
.hero--has-image .hero__subtitle { color: rgba(255,255,255,.65); }
.hero--has-image .tag {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.75);
}
.hero--has-image .tag:hover {
  background: var(--terra);
  border-color: var(--terra);
  color: var(--white);
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -.015em;
  margin-bottom: 22px;
}
.hero__title span {
  font-style: normal;
  color: var(--terra);
}

.hero__subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: var(--ash);
  max-width: 460px;
  margin: 0 auto 44px;
  line-height: 1.8;
}

/* Hero search — vidrio */
.hero__search {
  display: flex; max-width: 480px; margin: 0 auto 32px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(250,247,243,.75);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.hero--has-image .hero__search {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.2);
  backdrop-filter: blur(16px);
}
.hero__search input {
  flex: 1; padding: 14px 20px; border: none; outline: none;
  font-size: 14px; font-weight: 300;
  color: var(--ink); background: transparent;
}
.hero--has-image .hero__search input { color: var(--white); }
.hero--has-image .hero__search input::placeholder { color: rgba(255,255,255,.5); }
.hero__search input::placeholder { color: var(--ash-light); }
.hero__search button {
  padding: 0 24px; background: var(--terra); border: none;
  font-weight: 400; font-size: 13px; letter-spacing: .06em;
  cursor: pointer; color: var(--white);
  transition: background var(--dur);
}
.hero__search button:hover { background: var(--terra-deep); }

.hero__tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.tag {
  background: rgba(184,115,90,.07);
  color: var(--ash);
  border: 1px solid var(--border);
  padding: 5px 16px; border-radius: 50px;
  font-size: 12px; font-weight: 400;
  letter-spacing: .04em;
  transition: all var(--dur);
}
.tag:hover {
  background: var(--terra-pale);
  color: var(--terra);
  border-color: var(--terra-pale);
}

/* ─────────────────────────────────────────────
   SECTIONS
───────────────────────────────────────────── */
.section      { padding: 96px 0; }
.section--alt { padding: 96px 0; background: var(--sand); }
.section--dark{ padding: 96px 0; background: var(--ink); }

.section__header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px; gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.section__label {
  font-size: 10px; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 8px;
}
.section__title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem,3vw,2.2rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.01em;
  color: var(--ink);
}
.section--dark .section__title { color: var(--white); }
.section__link {
  color: var(--ash); font-size: 12px; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap; transition: color var(--dur);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}
.section__link:hover { color: var(--terra); border-color: var(--terra); }

/* ─────────────────────────────────────────────
   PRODUCTS GRID
───────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px,1fr));
  gap: 1px;
  background: var(--border); /* el gap "1px" toma el color del fondo del grid */
}
.products-grid--wide { grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); }

/* ─────────────────────────────────────────────
   FEATURED CAROUSEL
───────────────────────────────────────────── */
.featured-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 28px; gap: 16px; flex-wrap: wrap;
}
.featured-header__eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--terra); margin-bottom: 6px;
}
.featured-header__title {
  font-size: 1.8rem; font-weight: 800; color: var(--ink); margin: 0;
}
.featured-header__actions {
  display: flex; align-items: center; gap: 16px;
}
.featured-header__link {
  font-size: 14px; font-weight: 600; color: var(--terra); text-decoration: none;
}
.featured-header__link:hover { text-decoration: underline; }

.carousel-nav { display: flex; gap: 6px; }
.carousel-nav__btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--beige);
  background: var(--white); color: var(--ink); cursor: pointer;
  display: grid; place-items: center;
  transition: all .25s var(--ease-out-expo);
}
.carousel-nav__btn:hover {
  background: var(--ink); color: var(--white); border-color: var(--ink);
}

.featured-carousel {
  position: relative;
  overflow: hidden;
  margin: 0 -4px;
}
.featured-carousel__track {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 16px;
}
.featured-carousel__track::-webkit-scrollbar { display: none; }
.featured-carousel__track .product-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(60,30,10,.06);
  transition: transform .5s var(--ease-out-expo), box-shadow .5s var(--ease-out-expo);
}
.featured-carousel__track .product-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 48px rgba(60,30,10,.13);
}

/* Fade edges */
.featured-carousel::before,
.featured-carousel::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 48px;
  z-index: 2; pointer-events: none;
}
.featured-carousel::before { left: 0; background: linear-gradient(90deg, var(--bone) 0%, transparent 100%); }
.featured-carousel::after  { right: 0; background: linear-gradient(-90deg, var(--bone) 0%, transparent 100%); }

@media (max-width:768px) {
  .featured-carousel__track .product-card { flex: 0 0 200px; }
  .carousel-nav { display: none; }
  .featured-header__title { font-size: 1.4rem; }
}

/* ─────────────────────────────────────────────
   PRODUCT CARD — editorial / foto a full
───────────────────────────────────────────── */
.product-card {
  background: var(--white);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease-out-expo), box-shadow .5s var(--ease-out-expo);
  will-change: transform;
}
.product-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 32px 64px rgba(60,30,10,.14);
  position: relative; z-index: 1;
}

/* Foto — portrait 4:5, sin padding, cover */
.product-card__img-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--parchment);
  display: block;
}
.product-card__img-wrap > a { display: block; width: 100%; height: 100%; position: relative; z-index: 1; }
.product-card:hover .product-card__img-wrap > a { pointer-events: none; }
.product-card__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  padding: 0;
  transition: transform .9s var(--ease-out-expo);
  display: block;
  transform-origin: center 60%;
}
.product-card:hover .product-card__img-wrap img { transform: scale(1.10); }

/* Badges */
.badge {
  position: absolute;
  padding: 3px 10px;
  font-size: 10px; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase; z-index: 2;
}
.badge--featured { top: 12px; left: 12px; background: var(--terra); color: var(--white); }
.badge--soldout  {
  top: 12px; right: 12px;
  background: rgba(250,247,243,.75); color: var(--ash);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
}

/* Overlay hover — clip-path reveal */
.product-card__overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding: 20px;
  gap: 8px;
  background: linear-gradient(to top, rgba(26,17,9,.55) 0%, rgba(26,17,9,.08) 55%, transparent 100%);
  clip-path: inset(100% 0 0 0);
  transition: clip-path .5s var(--ease-out-expo);
  pointer-events: none;
}
.product-card:hover .product-card__overlay { clip-path: inset(0% 0 0 0); pointer-events: auto; }

.product-card__overlay-add {
  width: 100%;
  padding: 10px 16px;
  background: rgba(250,247,243,.92);
  backdrop-filter: blur(12px);
  border: none; cursor: pointer;
  font-size: 12px; font-weight: 400; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink);
  transition: background var(--dur), color var(--dur);
}
.product-card__overlay-add:hover {
  background: var(--terra);
  color: var(--white);
}

.product-card__overlay-view {
  font-size: 11px; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.8);
  border-bottom: 1px solid rgba(255,255,255,.35);
  padding-bottom: 1px;
  transition: color var(--dur);
}
.product-card__overlay-view:hover { color: var(--white); }

/* Info debajo de la foto */
.product-card__body {
  padding: 14px 16px 16px;
  flex: 1;
  border-top: 1px solid var(--border);
}
.product-card__title {
  font-size: 13px; font-weight: 400; line-height: 1.45;
  margin-bottom: 5px; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card__title a:hover { color: var(--terra); }
.product-card__meta {
  font-size: 11px; color: var(--ash-light);
  margin-bottom: 6px; letter-spacing: .06em;
  text-transform: uppercase; font-weight: 300;
}
.product-card__pricing { display: flex; align-items: baseline; gap: 10px; }
.product-card__price { font-family: var(--font-head); font-size: 1.05rem; font-weight: 400; color: var(--ink); }
.product-card__old-price { font-size: 12px; color: var(--ash-light); text-decoration: line-through; }

/* En móvil: overlay siempre visible (no hay hover) */
@media (hover: none) {
  .product-card__overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(26,17,9,.38) 0%, transparent 55%);
  }
  .product-card__overlay-add { background: rgba(250,247,243,.88); }
}

/* ─────────────────────────────────────────────
   FEATURES BAR — vidrio sobre sand
───────────────────────────────────────────── */
.features-bar {
  background: rgba(240,233,222,.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.feature-item {
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px;
  border-right: 1px solid var(--border);
}
.feature-item:last-child { border-right: none; }
.feature-icon { color: var(--terra); flex-shrink: 0; }
.feature-name { color: var(--ink); font-weight: 400; font-size: 13.5px; margin-bottom: 2px; }
.feature-desc { color: var(--ash); font-size: 12px; font-weight: 300; }

/* ─────────────────────────────────────────────
   CTA BANNER — terracota pálido
───────────────────────────────────────────── */
.cta-banner {
  background: var(--terra-pale);
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.cta-banner__inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.cta-banner__text h2 {
  font-size: clamp(1.5rem,3vw,2.2rem);
  font-weight: 400; font-style: italic;
  color: var(--ink); margin-bottom: 8px;
}
.cta-banner__text p { color: var(--ash); font-size: 14px; font-weight: 300; }

/* ─────────────────────────────────────────────
   STORE / SIDEBAR
───────────────────────────────────────────── */
.store-page { padding: 48px 0 96px; }
.store-layout { display: flex; gap: 40px; align-items: flex-start; }
.store-sidebar { width: 200px; flex-shrink: 0; position: sticky; top: 80px; }
.sidebar-card {
  background: rgba(250,247,243,.7);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.sidebar-card__title {
  font-size: 10px; font-weight: 400; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ash);
  padding: 14px 16px 10px; border-bottom: 1px solid var(--border);
}
.cat-list { list-style: none; padding: 8px; }
.cat-list li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px; font-size: 13px; color: var(--ash);
  font-weight: 300; transition: color var(--dur);
}
.cat-list li a:hover { color: var(--ink); }
.cat-list li a.active { color: var(--terra); font-weight: 400; }
.cat-list li a span { font-size: 11px; color: var(--ash-light); }
.sidebar-title {
  font-size: 10px; font-weight: 400; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ash);
  padding: 0 0 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.store-main { flex: 1; min-width: 0; }
.store-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; color: var(--ash); font-size: 13px; font-weight: 300;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.store-sort {
  font-size: 12px; color: var(--ash); font-weight: 300;
  padding: 5px 10px; border: 1px solid var(--border);
  background: transparent; cursor: pointer; letter-spacing: .03em;
  transition: border-color var(--dur);
}
.store-sort:focus { outline: none; border-color: var(--terra); }

/* ─────────────────────────────────────────────
   SEARCH PAGE
───────────────────────────────────────────── */
.search-page { padding: 48px 0 96px; }
.search-page__header { margin-bottom: 32px; }
.search-page__header h1 { font-size: 1.6rem; font-style: italic; }
.search-page__header em { font-style: normal; color: var(--terra); }

/* ─────────────────────────────────────────────
   PAGINATION
───────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 56px; }
.pagination__btn {
  padding: 8px 18px; background: var(--white);
  border: 1px solid var(--border); font-weight: 400;
  font-size: 13px; color: var(--mocha); transition: all var(--dur);
  letter-spacing: .04em;
}
.pagination__btn:hover { background: var(--terra-pale); border-color: var(--terra-pale); color: var(--terra); }
.pagination__info { color: var(--ash-light); font-size: 13px; padding: 0 8px; }

/* ─────────────────────────────────────────────
   PRODUCT DETAIL
───────────────────────────────────────────── */
.product-page { padding: 36px 0 96px; }
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 300; color: var(--ash-light);
  margin-bottom: 36px; flex-wrap: wrap; letter-spacing: .04em;
}
.breadcrumb a:hover { color: var(--terra); }
.breadcrumb span { color: var(--ash); }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-bottom: 72px; }
@media (max-width: 768px) { .product-detail { grid-template-columns: 1fr; gap: 36px; } }

.gallery__main {
  background: var(--parchment);
  border: 1px solid var(--border);
  aspect-ratio: 1; position: relative; margin-bottom: 10px;
  overflow: hidden;
}
.gallery__main img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 24px; box-sizing: border-box;
}
.gallery__thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery__thumb {
  width: 68px; height: 68px; object-fit: contain;
  border: 1px solid var(--border); padding: 4px;
  background: var(--parchment); cursor: pointer;
  transition: border-color var(--dur);
}
.gallery__thumb:hover { border-color: var(--terra); }

.product-condition {
  display: inline-block; font-size: 10px; font-weight: 400;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 10px;
}
.product-info__title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem,3vw,1.9rem);
  font-weight: 400; font-style: italic;
  color: var(--ink); margin-bottom: 10px; letter-spacing: -.01em;
}
.product-info__subtitle { color: var(--ash); font-size: 14px; font-weight: 300; margin-bottom: 24px; }
.product-info__price-wrap { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; }
.product-info__price {
  font-family: var(--font-head);
  font-size: 2rem; font-weight: 400; color: var(--ink);
  letter-spacing: -.02em;
}
.product-info__old-price { font-size: 1rem; color: var(--ash-light); text-decoration: line-through; }
.product-info__discount {
  background: var(--terra-pale); color: var(--terra);
  padding: 3px 8px; font-size: 11px; font-weight: 400; letter-spacing: .06em;
}

.info-label {
  font-size: 10px; font-weight: 400; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ash); margin-bottom: 12px;
}
.color-options { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.color-option {
  padding: 5px 14px; border: 1px solid var(--border);
  font-size: 12.5px; font-weight: 300; cursor: pointer;
  transition: all var(--dur); letter-spacing: .04em;
}
.color-option:hover { border-color: var(--terra); color: var(--terra); }

.product-info__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.alert-soldout {
  background: var(--sand); border: 1px solid var(--border);
  color: var(--danger); padding: 12px 18px; font-weight: 400; font-size: 14px; margin-bottom: 20px;
}
.stock-warn {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold); font-size: 12px; font-weight: 400;
  background: rgba(192,144,64,.08); padding: 6px 12px;
  margin-top: 12px; letter-spacing: .04em;
}

.product-specs {
  background: var(--sand); border: 1px solid var(--border);
  padding: 20px; margin-top: 20px;
}
.specs-title {
  font-size: 10px; font-weight: 400; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ash); margin-bottom: 14px;
}
.specs-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; font-size: 13.5px; }
.specs-list dt { color: var(--ash); font-weight: 300; }
.specs-list dd { color: var(--ink); font-weight: 400; }

.product-description {
  background: var(--white); border: 1px solid var(--border);
  padding: 40px 44px;
}
.product-description h2 { font-size: 1.3rem; font-style: italic; font-weight: 400; margin-bottom: 18px; }
.description-text { font-size: 14.5px; line-height: 1.9; color: var(--mocha); font-weight: 300; }

/* Gallery overlays */
.gallery__thumb-btn {
  width: 68px; height: 68px;
  border: 1px solid var(--border); padding: 4px;
  background: var(--parchment); cursor: pointer;
  transition: border-color var(--dur); overflow: hidden;
}
.gallery__thumb-btn img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumb-btn:hover,
.gallery__thumb-btn.active { border-color: var(--terra); }

.gallery__soldout-overlay {
  position: absolute; inset: 0;
  background: rgba(26,17,9,.4);
  display: flex; align-items: center; justify-content: center;
}
.gallery__soldout-overlay span {
  background: var(--danger); color: #fff;
  font-weight: 400; font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 18px;
}
.gallery__discount-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--terra); color: #fff;
  font-weight: 400; font-size: 11px;
  padding: 4px 10px; z-index: 2;
  letter-spacing: .06em;
}

/* Category badge & stock indicator */
.product-badge-cat {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 400; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ash);
  background: var(--sand); border: 1px solid var(--border);
  border-radius: 99px; padding: 3px 10px; margin-bottom: 12px;
  transition: color var(--dur);
}
.product-badge-cat:hover { color: var(--terra); }

.stock-indicator {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 400; padding: 5px 12px; letter-spacing: .04em;
}
.stock-indicator--ok  { background: rgba(90,140,90,.07);  color: #4a7a4a; }
.stock-indicator--low { background: rgba(192,144,64,.08); color: var(--gold); }
.stock-indicator--out { background: rgba(184,80,80,.07);  color: var(--danger); }
.stock-indicator svg { flex-shrink: 0; }

/* ── PRODUCT VARIANTS ── */
.product-variants { margin: 20px 0; }
.variant-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.variant-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 8px 14px; border: 1px solid var(--border);
  background: var(--white); cursor: pointer;
  transition: border-color .15s, background .15s;
  text-align: left;
}
.variant-btn:hover:not([disabled]) { border-color: var(--terra); background: var(--terra-soft); }
.variant-btn.active { border-color: var(--terra); background: var(--terra-soft); }
.variant-btn__name  { font-size: .85rem; font-weight: 400; color: var(--ink); }
.variant-btn__price { font-size: .8rem; font-weight: 400; color: var(--terra); }
.variant-btn__out   { font-size: .72rem; color: var(--danger); }
.variant-btn--out   { opacity: .4; cursor: not-allowed; }

/* WhatsApp */
.btn--wa {
  background: #25D366; color: #fff; border: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; font-weight: 400; font-size: 13px;
  cursor: pointer; transition: background var(--dur); text-decoration: none;
  letter-spacing: .06em;
}
.btn--wa:hover { background: #1fb558; color: #fff; }

/* Quick specs row */
.product-quick-specs { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 28px; }
.quick-spec {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--sand); border: 1px solid var(--border);
  padding: 10px 16px; min-width: 88px; text-align: center;
}
.quick-spec__icon  { font-size: 16px; line-height: 1; }
.quick-spec__label { font-size: 9px; font-weight: 400; text-transform: uppercase; letter-spacing: .12em; color: var(--ash); }
.quick-spec__value { font-size: 13px; font-weight: 400; color: var(--ink); }

/* Trust badges */
.trust-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }
.trust-badge {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--sand); border: 1px solid var(--border);
  padding: 12px 14px;
}
.trust-badge__icon  { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.trust-badge__title { font-size: 12px; font-weight: 400; color: var(--ink); margin-bottom: 2px; }
.trust-badge__desc  { font-size: 11px; color: var(--ash); line-height: 1.5; font-weight: 300; }
@media (max-width: 480px) { .trust-badges { grid-template-columns: 1fr; } }

/* Product tabs */
.product-tabs { margin-bottom: 56px; }
.product-tabs__nav {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px; overflow-x: auto;
}
.product-tabs__tab {
  background: none; border: none;
  padding: 12px 24px; font-size: 12px; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ash-light); cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color var(--dur), border-color var(--dur);
}
.product-tabs__tab:hover { color: var(--ink); }
.product-tabs__tab.active { color: var(--terra); border-bottom-color: var(--terra); }
.product-tabs__panel { display: none; }
.product-tabs__panel.active { display: block; }

/* Description (rich text) */
.product-desc-body { font-size: 14.5px; line-height: 1.9; color: var(--mocha); font-weight: 300; }
.product-desc-body h2 { font-family: var(--font-head); font-size: 1.25rem; font-style: italic; font-weight: 400; margin: 28px 0 12px; }
.product-desc-body h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 400; margin: 22px 0 10px; }
.product-desc-body p  { margin-bottom: 14px; }
.product-desc-body ul, .product-desc-body ol { padding-left: 22px; margin-bottom: 16px; }
.product-desc-body li { margin-bottom: 6px; }
.product-desc-body strong { font-weight: 500; color: var(--ink); }
.product-desc-body a { color: var(--terra); }
.product-desc-body a:hover { text-decoration: underline; }

/* Specs table */
.specs-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.specs-table tr:nth-child(even) { background: var(--sand); }
.specs-table td { padding: 10px 16px; border: 1px solid var(--border); font-weight: 300; }
.specs-table td:first-child { font-weight: 400; color: var(--ash); width: 40%; }

/* Shipping info */
.shipping-info { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
@media (max-width: 600px) { .shipping-info { grid-template-columns: 1fr; } }
.shipping-block { background: var(--sand); border: 1px solid var(--border); padding: 18px 16px; }
.shipping-block__icon  { font-size: 22px; margin-bottom: 8px; }
.shipping-block__title { font-size: 13px; font-weight: 400; color: var(--ink); margin-bottom: 6px; }
.shipping-block__body  { font-size: 13px; color: var(--ash); line-height: 1.6; font-weight: 300; }

/* Related */
.related-section { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--border); }
.related-section__header {
  display: flex; align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px; flex-wrap: wrap; gap: 12px;
}
.related-section__title {
  font-family: var(--font-head);
  font-size: clamp(1.2rem,2.5vw,1.6rem);
  font-weight: 400; font-style: italic; color: var(--ink);
}

/* Sticky mobile CTA */
.sticky-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(250,247,243,.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 12px 20px; z-index: 900;
  align-items: center; gap: 14px;
}
.sticky-cta.visible { display: flex; }
.sticky-cta__info { flex: 1; min-width: 0; }
.sticky-cta__name { font-size: 13px; font-weight: 400; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta__price { font-family: var(--font-head); font-size: 1.1rem; font-weight: 400; color: var(--ink); }
@media (min-width: 769px) { .sticky-cta { display: none !important; } }

/* ─────────────────────────────────────────────
   CART
───────────────────────────────────────────── */
.cart-page { padding: 48px 0 96px; }
.cart-page__title { font-size: clamp(1.6rem,3vw,2rem); font-style: italic; font-weight: 400; margin-bottom: 36px; }
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
@media (max-width: 768px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-item {
  display: flex; align-items: center; gap: 20px;
  background: var(--white); border: 1px solid var(--border);
  padding: 20px; margin-bottom: 2px;
  transition: border-color var(--dur);
}
.cart-item:hover { border-color: var(--terra-pale); }
.cart-item img {
  width: 80px; height: 80px; object-fit: contain;
  background: var(--parchment); padding: 8px;
  border: 1px solid var(--border); flex-shrink: 0;
}
.cart-item__info { flex: 1; }
.cart-item__title   { font-weight: 400; font-size: 14.5px; margin-bottom: 4px; }
.cart-item__price   { font-family: var(--font-head); font-size: 1.1rem; font-weight: 400; margin-bottom: 2px; }
.cart-item__variant { font-size: 12px; color: var(--terra); font-weight: 400; margin-bottom: 3px; letter-spacing: .04em; }
.cart-item__qty     { font-size: 12.5px; color: var(--ash); font-weight: 300; }

.cart-summary {
  background: rgba(250,247,243,.75);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  padding: 28px; position: sticky; top: 80px;
}
.cart-summary h2 { font-size: 1rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 24px; color: var(--ash); }
.cart-summary__row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 300; padding: 8px 0; border-bottom: 1px solid var(--border); }
.cart-summary__total { font-size: 1.05rem; font-weight: 400; padding-top: 18px; border-bottom: none; }
.cart-summary__note { font-size: 12px; color: var(--ash); margin: 8px 0 16px; font-weight: 300; }
.cart-summary hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

/* ─────────────────────────────────────────────
   EMPTY STATE
───────────────────────────────────────────── */
.empty-state { text-align: center; padding: 96px 24px; color: var(--ash); }
.empty-state svg { margin: 0 auto 28px; color: var(--ash-light); }
.empty-state h2 { font-size: 1.4rem; font-style: italic; font-weight: 400; color: var(--ink); margin-bottom: 10px; }
.empty-state p  { margin-bottom: 28px; font-weight: 300; }

/* ─────────────────────────────────────────────
   TOAST
───────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 28px; right: 28px;
  background: rgba(26,17,9,.88);
  backdrop-filter: blur(16px);
  color: var(--white);
  padding: 13px 22px;
  font-size: 13.5px; font-weight: 400;
  letter-spacing: .03em;
  z-index: 1000;
  transform: translateY(16px) scale(.97); opacity: 0;
  transition: all .3s var(--ease); pointer-events: none;
  max-width: 300px;
  box-shadow: var(--shadow-lg);
  border-left: 2px solid var(--terra);
}
.toast.show { transform: translateY(0) scale(1); opacity: 1; }
.toast.success { border-left-color: var(--success); }

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.35);
  padding: 32px 0; margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer__inner {
  display: flex; align-items: center;
  justify-content: space-between;
  font-size: 12px; font-weight: 300;
  letter-spacing: .05em; flex-wrap: wrap; gap: 8px;
}
.footer__inner a { color: rgba(255,255,255,.45); transition: color var(--dur); }
.footer__inner a:hover { color: var(--terra); }

/* ─────────────────────────────────────────────
   HAMBURGER
───────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: transparent; border: none; cursor: pointer;
  padding: 4px; margin-left: auto;
}
.hamburger span {
  display: block; width: 20px; height: 1px;
  background: var(--ash);
  transition: all .25s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ─────────────────────────────────────────────
   LIGHTBOX
───────────────────────────────────────────── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(26,17,9,.94);
  backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
  cursor: zoom-out; animation: lb-in .2s ease;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 90vh; object-fit: contain; box-shadow: var(--shadow-lg); cursor: default; }
.lightbox__close {
  position: fixed; top: 20px; right: 24px;
  color: rgba(255,255,255,.5); font-size: 28px;
  cursor: pointer; line-height: 1; background: none; border: none;
}
.lightbox__close:hover { color: #fff; }
@keyframes lb-in { from { opacity:0; } to { opacity:1; } }

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 768px) {
  .header__search { display: none; }
  .hamburger { display: flex; }
  .header__nav {
    display: none; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(250,247,243,.96);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 12px 20px; gap: 2px; z-index: 99;
  }
  .header__nav.open { display: flex; }
  .header { position: relative; }
  .header__link { color: var(--mocha); }
  .hero { padding: 72px 0 56px; }
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .feature-item { border-right: none; border-bottom: 1px solid var(--border); padding: 16px 0; }
  .feature-item:nth-child(even) { border-right: none; }
  .store-layout { flex-direction: column; }
  .store-sidebar { width: 100%; position: static; }
  .cta-banner__inner { flex-direction: column; text-align: center; }
  .section { padding: 64px 0; }
  .section--alt { padding: 64px 0; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .hero__title { font-size: 2.2rem; }
  .container { padding: 0 20px; }
}

/* ── Category Bands (home) ───────────────────────────────────────── */
.cat-band {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.cat-band--a { background: var(--bone); }
.cat-band--b { background: var(--sand); }

.cat-band__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 72px;
}

.cat-band__info {
  flex: 0 0 260px;
}
.cat-band__eyebrow {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 10px;
}
.cat-band__title {
  font-family: var(--font-head);
  font-size: 1.75rem;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 12px;
}
.cat-band__desc {
  font-size: .875rem;
  color: var(--mocha);
  line-height: 1.65;
  margin-bottom: 28px;
}

.btn--outline-dark {
  display: inline-block;
  padding: 10px 22px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-size: .82rem;
  letter-spacing: .04em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn--outline-dark:hover {
  background: var(--ink);
  color: var(--white);
}

.cat-band__products {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cat-band__item {
  text-decoration: none;
  color: inherit;
}
.cat-band__img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--parchment);
  margin-bottom: 10px;
}
.cat-band__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms var(--ease);
}
.cat-band__item:hover .cat-band__img img {
  transform: scale(1.05);
}
.cat-band__item-name {
  font-size: .78rem;
  color: var(--mocha);
  line-height: 1.35;
  text-align: center;
}

@media (max-width: 960px) {
  .cat-band { padding: 56px 0; }
  .cat-band__inner { flex-direction: column; gap: 32px; padding: 0 24px; }
  .cat-band__info { flex: none; width: 100%; }
  .cat-band__products { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .cat-band { padding: 40px 0; }
  .cat-band__inner { padding: 0 16px; }
  .cat-band__products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-band__title { font-size: 1.4rem; }
}

/* ─────────────────────────────────────────────
   ANIMACIONES DISRUPTIVAS
───────────────────────────────────────────── */

/* ── Hero entrance ── */
@keyframes heroWord {
  from { opacity: 0; transform: translateY(36px) skewY(2deg); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes heroLine {
  from { opacity: 0; transform: scaleX(0); }
  to   { opacity: .5; transform: scaleX(1); }
}
.hero__eyebrow { animation: heroWord .9s var(--ease-out-expo) .05s both; }
.hero__eyebrow::before { animation: heroLine .8s var(--ease-out-expo) .2s both; transform-origin: left; }
.hero__eyebrow::after  { animation: heroLine .8s var(--ease-out-expo) .2s both; transform-origin: right; }
.hero__title    { animation: heroWord 1s   var(--ease-out-expo) .18s both; }
.hero__subtitle { animation: heroWord 1s   var(--ease-out-expo) .32s both; }
.hero__search   { animation: heroWord .9s  var(--ease-out-expo) .44s both; }
.hero__tags     { animation: heroWord .9s  var(--ease-out-expo) .54s both; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s var(--ease-out-expo), transform .8s var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal--left  { transform: translateX(-48px) translateY(0); }
.reveal--right { transform: translateX(48px)  translateY(0); }
.reveal--scale { transform: scale(.94) translateY(20px); }
.reveal--slow  { transition-duration: 1.1s; }

/* Stagger para hijos de grids */
.stagger-children > * {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .6s var(--ease-out-expo), transform .6s var(--ease-out-expo);
}
.stagger-children.visible > * { opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(1)  { transition-delay: 0ms; }
.stagger-children.visible > *:nth-child(2)  { transition-delay: 70ms; }
.stagger-children.visible > *:nth-child(3)  { transition-delay: 140ms; }
.stagger-children.visible > *:nth-child(4)  { transition-delay: 210ms; }
.stagger-children.visible > *:nth-child(5)  { transition-delay: 280ms; }
.stagger-children.visible > *:nth-child(6)  { transition-delay: 350ms; }
.stagger-children.visible > *:nth-child(7)  { transition-delay: 420ms; }
.stagger-children.visible > *:nth-child(8)  { transition-delay: 490ms; }
.stagger-children.visible > *:nth-child(n+9){ transition-delay: 560ms; }

/* ── Header shrink on scroll ── */
.header { transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease); }
.header.scrolled {
  background: rgba(250,247,243,.96);
  box-shadow: 0 2px 32px rgba(60,30,10,.08);
}
.header.scrolled .header__inner { height: 52px; }

/* ── Section headers reveal ── */
.section__label {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity .6s var(--ease-out-expo), transform .6s var(--ease-out-expo);
}
.section__label.visible { opacity: 1; transform: none; }
.section__title {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease-out-expo) .1s, transform .8s var(--ease-out-expo) .1s;
}
.section__title.visible { opacity: 1; transform: none; }

/* ── Features bar ── */
.feature-item {
  transition: transform .4s var(--ease-spring);
}
.feature-item:hover {
  transform: translateY(-4px);
}
.feature-icon {
  transition: transform .4s var(--ease-spring), color .3s;
}
.feature-item:hover .feature-icon {
  transform: scale(1.2) rotate(-8deg);
  color: var(--terra-deep);
}

/* ── Cart badge pulse ── */
@keyframes badgePop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.6); }
  70%  { transform: scale(.9); }
  100% { transform: scale(1); }
}
.cart-badge.pop { animation: badgePop .45s var(--ease-spring); }

/* ── Lightbox ── */
.lightbox { transition: opacity .35s var(--ease-out-expo); }
.lightbox img { transition: transform .45s var(--ease-out-expo), opacity .35s; }
.lightbox:not(.open) img { transform: scale(.92); opacity: 0; }
.lightbox.open img { transform: none; opacity: 1; }

/* ── Page fade-in ── */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.main { animation: pageFadeIn .6s var(--ease-out-expo) both; }

/* ── Links con underline animado ── */
.header__link {
  position: relative;
}
.header__link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 14px; right: 14px;
  height: 1px;
  background: var(--terra);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease-out-expo);
}
.header__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ── Scroll text — palabras que se iluminan al leer ── */
.scroll-text-word {
  display: inline;
  color: var(--ash-light);
  transition: color .25s var(--ease-out-expo);
}
.scroll-text-word.lit {
  color: var(--ink);
}
/* Subtítulos: van de ash-light a terra */
.scroll-text--accent .scroll-text-word       { color: rgba(184,115,90,.25); }
.scroll-text--accent .scroll-text-word.lit   { color: var(--terra); }

/* Reduce motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
