/* ============================================
   ALERICK GLAM — Hoja de estilos
   Organizada por secciones para que sea fácil
   de leer y modificar mientras aprendes.
   ============================================ */

/* ---------- 1. Tokens de diseño ---------- */
:root {
  /* Paleta */
  --color-bg:        #FBF0EC; /* blanco cálido con base rosa */
  --color-bg-alt:     #F6E2DA; /* blush más profundo para secciones alternas */
  --color-ink:        #2B1620; /* casi negro con base ciruela, para texto */
  --color-ink-soft:    #6B4C56;
  --color-black:       #14100F; /* negro real, para acentos de contraste */
  --color-rose:       #C2416B;
  --color-rose-deep:   #8E2F52;
  --color-gold:        #B8935A;
  --color-gold-light:  #E8D5B5;
  --color-aqua:        #2A9D8F;
  --color-aqua-deep:   #1F7A70;
  --color-aqua-light:  #7FD3C7;
  --color-card:        #FFFBF9;

  /* Tipografía */
  --font-display: "Fraunces", serif;
  --font-body:    "Manrope", sans-serif;
  --font-mono:    "DM Mono", monospace;

  /* Layout */
  --container-w: 1160px;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 .4em;
}

h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.3rem; font-weight: 600; }

em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-rose);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-rose-deep);
  display: block;
  margin-bottom: 0.9em;
}
.eyebrow--light { color: var(--color-gold-light); }

/* ---------- 2. Botones ---------- */
.btn {
  display: inline-block;
  padding: 0.9em 1.7em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--color-aqua); outline-offset: 2px; }

.btn--primary { background: var(--color-rose); color: #fff; border-color: var(--color-gold); }
.btn--primary:hover { background: var(--color-rose-deep); }

.btn--outline { border-color: var(--color-black); color: var(--color-black); }
.btn--outline:hover { background: var(--color-black); color: var(--color-bg); }

.btn--ghost { border-color: var(--color-gold); color: var(--color-rose-deep); font-size: 0.85rem; padding: 0.65em 1.4em; }
.btn--ghost:hover { background: var(--color-gold); color: #fff; }

/* ---------- 3. Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 240, 236, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(184, 147, 90, 0.4);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}

.wordmark {
  display: inline-block;
  white-space: nowrap;
}
.wordmark__logo { height: 68px; width: auto; }
.wordmark__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--color-ink);
  letter-spacing: 0.01em;
}
.wordmark__text em { font-weight: 500; }

.nav { display: flex; gap: 32px; flex: 1; justify-content: center; }
.nav a {
  font-size: 0.92rem;
  font-weight: 600;
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--color-rose);
  transition: width 0.25s ease;
}
.nav a:hover::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--color-rose-deep); }
.nav a[aria-current="page"]::after { width: 100%; }

.header__cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--color-black); border-radius: 2px; }

.cart-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--color-gold);
  background: none;
  cursor: pointer;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cart-toggle:hover { background: rgba(184, 147, 90, 0.12); transform: translateY(-2px); }

.cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--color-rose);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 4. Hero ---------- */
.hero { padding-top: 64px; overflow: hidden; }

.hero__inner {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: 48px;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.6rem, 5.5vw, 4.1rem);
}

.hero__sub {
  max-width: 460px;
  color: var(--color-ink-soft);
  font-size: 1.05rem;
  margin-bottom: 2em;
}

.hero__note {
  max-width: 460px;
  color: var(--color-ink-soft);
  font-size: 0.9rem;
  margin-top: -1.4em;
  margin-bottom: 2em;
}

.hero__welcome { max-width: 580px; margin-bottom: 1.8em; }
.hero__welcome-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--color-rose-deep);
  margin: 0 0 0.6em;
}
.hero__welcome p {
  color: var(--color-ink-soft);
  font-size: 0.98rem;
  margin: 0 0 1em;
}
.hero__welcome p:last-child { margin-bottom: 0; }

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
}

.hero__logo {
  width: min(100%, 260px);
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(20, 16, 15, 0.25));
}

/* Elemento distintivo: franja de tonos, como una carta de swatches */
.shade-strip {
  display: flex;
  width: 100%;
  height: 28px;
  margin-top: 56px;
}
.shade-strip--small { height: 18px; margin: 0 0 8px; }
.shade-strip span {
  flex: 1;
  background: var(--c);
}

/* ---------- 4b. Hero de página (categorías) ---------- */
.page-hero { padding: 72px 0 32px; text-align: center; }
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: 0.5em; }
.page-hero p { max-width: 560px; margin: 0 auto 1.6em; color: var(--color-ink-soft); font-size: 1.05rem; }
.page-hero .hero__actions { justify-content: center; }
.page-hero__contact {
  max-width: 560px;
  margin: 1.2em auto 0;
  font-size: 0.95rem;
  text-align: center;
}
.page-hero__contact a { color: var(--color-rose-deep); font-weight: 600; text-decoration: underline; }

.page-hero .page-hero__catalog-note {
  margin: 2.2em auto 0;
}
.page-hero .catalog-filters { margin: 20px 0 0; }

/* ---------- 5. Cómo comprar (pasos) ---------- */
.steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.steps__item {
  flex: 1 1 220px;
  max-width: 260px;
  list-style: none;
  background: var(--color-card);
  border: 1px solid rgba(184, 147, 90, 0.25);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.steps__item::marker { content: none; }
.steps__item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 36px -20px rgba(20, 16, 15, 0.3);
}

.steps__num {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-rose);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
}

.steps__body h3 { font-size: 1.05rem; margin: 0 0 0.5em; }
.steps__body p { color: var(--color-ink-soft); font-size: 0.9rem; margin: 0 0 0.8em; }
.steps__body p:last-child { margin-bottom: 0; }
.steps__body p a {
  color: var(--color-rose-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(194, 65, 107, 0.35);
  text-underline-offset: 2px;
}
.steps__body p a:hover { color: var(--color-rose); }

.steps__arrow {
  align-self: center;
  flex: 0 0 auto;
  color: var(--color-gold);
  font-size: 1.5rem;
  line-height: 1;
}

.steps__summary {
  margin-top: 56px;
  text-align: center;
}

.steps__flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-rose-deep);
  margin: 0 0 28px;
}
.steps__flow span[aria-hidden] { color: var(--color-gold); }

.steps__note {
  font-size: 0.92rem;
  color: var(--color-ink-soft);
}
.steps__note a {
  color: var(--color-aqua-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(42, 157, 143, 0.35);
  text-underline-offset: 2px;
}
.steps__note a:hover { color: var(--color-aqua); }

/* ---------- 6. Secciones genéricas ---------- */
.section { padding: 40px 0 96px; }

.section__head { max-width: 560px; margin: 0 auto 48px; text-align: center; }
.section__head .eyebrow { text-align: center; }
.section__head p { color: var(--color-ink-soft); font-size: 1rem; margin: 0.6em 0 0; }

/* ---------- 7. Productos ---------- */
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 40px;
}

.filter-chip {
  border: 1.5px solid var(--color-gold);
  background: transparent;
  color: var(--color-rose-deep);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55em 1.3em;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.filter-chip:hover { border-color: var(--color-rose); color: var(--color-rose); }
.filter-chip.is-active { background: var(--color-rose); border-color: var(--color-rose); color: #fff; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.catalog-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-ink-soft);
  font-size: 0.95rem;
  padding: 24px 0;
}

.catalog-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

.pager-btn {
  border: 1.5px solid var(--color-gold);
  background: transparent;
  color: var(--color-rose-deep);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55em 1.3em;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.pager-btn:hover:not(:disabled) { border-color: var(--color-rose); color: var(--color-rose); }
.pager-btn:disabled { opacity: 0.35; cursor: default; }

.pager-numbers { display: flex; align-items: center; gap: 4px; }

.pager-num {
  min-width: 36px;
  height: 36px;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--color-ink-soft);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.pager-num:hover:not(.is-active) { border-color: var(--color-gold); color: var(--color-rose-deep); }
.pager-num.is-active {
  background: var(--color-rose);
  border-color: var(--color-rose);
  color: #fff;
  cursor: default;
  font-weight: 700;
}

.pager-ellipsis {
  color: var(--color-ink-soft);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0 2px;
}

/* ---------- 7c. Materiales ---------- */
.materials-intro {
  max-width: 640px;
  margin: 0 auto;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.material-card {
  background: var(--color-card);
  border: 1px solid rgba(184, 147, 90, 0.2);
  border-radius: var(--radius);
  padding: 28px;
}
.material-card__tagline {
  font-weight: 600;
  color: var(--color-rose-deep);
  font-size: 0.88rem;
  margin: 0 0 0.7em;
}
.material-card p { color: var(--color-ink-soft); font-size: 0.92rem; margin: 0 0 0.8em; }
.material-card p:last-child { margin-bottom: 0; }
.material-card p strong { color: var(--color-ink); }

.materials-tip {
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 24px 28px;
  text-align: center;
}
.materials-tip h3 { color: var(--color-rose-deep); margin-bottom: 0.4em; }
.materials-tip p { color: var(--color-ink-soft); margin: 0; font-size: 0.92rem; }

.product-card {
  background: var(--color-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(184, 147, 90, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 36px -20px rgba(20, 16, 15, 0.3);
}

.catalog-card {
  grid-column: 1 / -1;
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  height: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.catalog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 36px -20px rgba(20, 16, 15, 0.3);
}
.catalog-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.catalog-card:hover img { transform: scale(1.06); }

.catalog-card__label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px;
  background: linear-gradient(0deg, rgba(20,16,15,0.85), transparent);
  color: #fff;
}
.catalog-card__label h3 { color: #fff; margin: 0 0 0.3em; }
.catalog-card__label p { color: rgba(255,255,255,0.85); margin: 0; font-size: 0.92rem; max-width: 460px; }

.product-card__img { position: relative; aspect-ratio: 4/3; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }

#productsGrid[data-category="bisuteria"] .product-card__img { aspect-ratio: 1/1; }

.tag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--color-rose);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.tag--aqua { background: var(--color-aqua); }

.product-card__body { padding: 22px; }
.product-card__body p { color: var(--color-ink-soft); font-size: 0.92rem; margin: 0 0 1.2em; }

.product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-gold);
}

.btn-wa {
  background: var(--color-aqua);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55em 1.2em;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-wa:hover { background: var(--color-aqua-deep); transform: translateY(-2px); }

.btn-cart {
  background: var(--color-rose);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55em 1.2em;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-cart:hover { background: var(--color-rose-deep); transform: translateY(-2px); }
.btn-cart[disabled] {
  background: var(--color-gold-light);
  color: var(--color-ink-soft);
  cursor: not-allowed;
  transform: none;
}

.product-card__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  color: var(--color-ink-soft);
  font-size: 0.8rem;
  text-align: center;
  padding: 16px;
}

/* ---------- 8. Categorías ---------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  background: var(--color-card);
  border: 1px solid rgba(184, 147, 90, 0.2);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 36px -20px rgba(20, 16, 15, 0.3);
}
.category-card:focus-visible { outline: 3px solid var(--color-aqua); outline-offset: 2px; }

.category-card__icon { font-size: 2.4rem; }
.category-card h3 { color: var(--color-ink); margin: 0; }
.category-card p { color: var(--color-ink-soft); font-size: 0.92rem; margin: 0; }

.category-card__link {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-rose-deep);
}
.category-card:hover .category-card__link { color: var(--color-rose); }

/* ---------- 9. Footer ---------- */
.footer { background: var(--color-black); color: var(--color-gold-light); padding: 64px 0 0; }

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: left;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.footer__brand p { color: rgba(232,213,181,0.65); max-width: 320px; margin: 0; text-align: center; }

.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__contact a:hover { color: var(--color-aqua-light); }

.footer__hours-block { text-align: left; }

.footer__location { color: rgba(232, 213, 181, 0.5); font-size: 0.85rem; }

.footer__links {
  list-style: none;
  margin: 6px 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.footer__link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--color-gold-light);
  transition: color 0.2s ease;
}
.footer__link:hover { color: #fff; }

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--color-gold-light);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-icon svg { width: 20px; height: 20px; }
.footer__link:hover .social-icon {
  background: var(--color-aqua);
  color: #fff;
  transform: translateY(-2px);
}

.footer__hours {
  font-size: 0.85rem;
  color: rgba(232, 213, 181, 0.75);
  margin: 0 0 14px;
  line-height: 1.6;
}
.footer__hours strong { color: var(--color-gold-light); }

.footer__bottom {
  padding: 20px 28px;
  font-size: 0.8rem;
  color: rgba(232,213,181,0.5);
}

/* ---------- 9b. Carrito de compras ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 15, 0.5);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 400px;
  max-width: 92vw;
  background: var(--color-card);
  z-index: 91;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  box-shadow: -20px 0 48px -16px rgba(20, 16, 15, 0.35);
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(184, 147, 90, 0.25);
}
.cart-drawer__head h2 { margin: 0; font-size: 1.3rem; }
.cart-drawer__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--color-ink-soft);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background 0.2s ease;
}
.cart-drawer__close:hover { background: rgba(184, 147, 90, 0.15); }

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-empty {
  text-align: center;
  color: var(--color-ink-soft);
  font-size: 0.92rem;
  margin: auto;
  padding: 32px 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
}
.cart-item__img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__name { font-weight: 600; font-size: 0.92rem; margin: 0 0 0.2em; }
.cart-item__price { font-family: var(--font-mono); font-size: 0.85rem; color: var(--color-gold); }
.cart-item__qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cart-item__qty button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(184, 147, 90, 0.4);
  background: none;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
}
.cart-item__qty button:hover { background: rgba(184, 147, 90, 0.15); }
.cart-item__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-ink-soft);
  font-size: 0.8rem;
  text-decoration: underline;
  justify-self: end;
  align-self: start;
}
.cart-item__remove:hover { color: var(--color-rose); }

.cart-drawer__foot {
  padding: 20px 24px;
  border-top: 1px solid rgba(184, 147, 90, 0.25);
}
.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.cart-drawer__checkout { display: block; width: 100%; text-align: center; cursor: pointer; }
.cart-drawer__checkout:disabled { pointer-events: none; opacity: 0.5; }

.checkout-form { display: flex; flex-direction: column; gap: 12px; }
.checkout-form .field { display: flex; flex-direction: column; gap: 4px; }
.checkout-form fieldset.field { border: none; padding: 0; margin: 0; }
.checkout-form legend {
  padding: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-ink-soft);
}
.checkout-form label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-ink-soft);
}
.checkout-extra-fields { display: flex; flex-direction: column; gap: 12px; }
.checkout-extra-fields[hidden] { display: none; }
.radio-group { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-ink);
  cursor: pointer;
}
.radio-option input { accent-color: var(--color-rose); width: 16px; height: 16px; }
.checkout-form input,
.checkout-form textarea {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--color-ink);
  background: var(--color-bg);
  border: 1px solid rgba(184, 147, 90, 0.35);
  border-radius: 10px;
  padding: 0.6em 0.8em;
  resize: vertical;
}
.checkout-form input:focus,
.checkout-form textarea:focus {
  outline: none;
  border-color: var(--color-rose);
}
.checkout-status {
  margin: 4px 0 0;
  font-size: 0.85rem;
  min-height: 1.2em;
}
.checkout-status--ok { color: var(--color-aqua-deep); font-weight: 600; }
.checkout-status--error { color: var(--color-rose-deep); }
.checkout-status--error a { text-decoration: underline; }

/* ---------- 9c. Lupa de producto ---------- */
.product-card__img { cursor: zoom-in; }

.product-card__zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(20, 16, 15, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.product-card__zoom-hint svg { width: 18px; height: 18px; }
.product-card:hover .product-card__zoom-hint { opacity: 1; transform: scale(1); }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 16, 15, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox-overlay.is-open { opacity: 1; pointer-events: auto; }

.lightbox-overlay__figure {
  position: relative;
  max-width: min(880px, 92vw);
  max-height: 88vh;
  transform: scale(0.9);
  transition: transform 0.25s ease;
}
.lightbox-overlay.is-open .lightbox-overlay__figure { transform: scale(1); }

.lightbox-overlay__img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
  background: var(--color-card);
}

.lightbox-overlay__close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--color-card);
  color: var(--color-ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -8px rgba(20, 16, 15, 0.5);
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox-overlay__close:hover { background: var(--color-gold-light); transform: scale(1.05); }

@media (max-width: 560px) {
  .lightbox-overlay { padding: 16px; }
  .lightbox-overlay__close { top: -14px; right: -6px; width: 36px; height: 36px; }
}

/* ---------- 10. Animación de aparición ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- 11. Responsive ---------- */
@media (max-width: 900px) {
  .nav, .header__cta { display: none; }
  .nav-toggle { display: flex; }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 20px 28px 28px;
    gap: 18px;
    border-bottom: 1px solid rgba(184,147,90,0.25);
  }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__gallery { height: 240px; order: -1; }

  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .materials-grid { grid-template-columns: repeat(2, 1fr); }

  .steps__list { flex-direction: column; align-items: center; }
  .steps__item { max-width: 340px; width: 100%; }
  .steps__arrow { transform: rotate(90deg); }
}

@media (max-width: 560px) {
  .products-grid, .categories-grid, .materials-grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { text-align: center; }
  .steps__flow { flex-direction: column; gap: 4px; }
  .steps__flow span[aria-hidden] { transform: rotate(90deg); }
}
