/* ==========================================================================
   Astra Peptides — hoja de estilos principal
   Tokens globales de color, tipografía y espaciado. Cambia los valores de
   :root para retematizar todo el sitio.
   ========================================================================== */

:root {
  --ap-cream: #f7f4ee;
  --ap-card: #fdfbf7;
  --ap-sand: #eee7db;
  --ap-ink: #16161a;
  --ap-ink-soft: #24242a;
  --ap-text: #1d1d20;
  --ap-muted: #7a7670;
  --ap-line: #e4ded3;
  --ap-gold: #cdae7a;
  --ap-gold-soft: #e4cfa6;
  --ap-on-ink: #f3efe7;

  --ap-font-display: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --ap-font-body: "Roboto", ui-sans-serif, system-ui, sans-serif;

  --ap-radius: 1rem;
  --ap-radius-lg: 1.75rem;
  --ap-shadow: 0 1px 2px rgba(30, 25, 15, 0.04), 0 12px 40px -18px rgba(30, 25, 15, 0.25);
  --ap-shadow-lift: 0 2px 6px rgba(30, 25, 15, 0.06), 0 28px 60px -24px rgba(30, 25, 15, 0.35);
  --ap-ease: cubic-bezier(0.16, 1, 0.3, 1);

  --ap-space: clamp(3.5rem, 7vw, 7rem);
  --ap-header-h: 122px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--ap-cream);
  color: var(--ap-text);
  font-family: var(--ap-font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ap-gold); }

h1, h2, h3, h4, h5 {
  font-family: var(--ap-font-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

.container { width: min(1280px, 100% - 2.5rem); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 2.5rem); }
.section { padding-block: var(--ap-space); }
.section--narrow { padding-block: clamp(3rem, 5vw, 5rem); }
.center { text-align: center; }
.muted { color: var(--ap-muted); }
.small { font-size: 0.8rem; }
.gold { color: var(--ap-gold); }

.eyebrow {
  font-family: var(--ap-font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.surface-ink {
  background:
    radial-gradient(70rem 40rem at 80% -10%, rgba(205, 174, 122, 0.22), transparent 60%),
    radial-gradient(50rem 32rem at 5% 110%, rgba(205, 174, 122, 0.14), transparent 60%),
    var(--ap-ink);
  color: var(--ap-on-ink);
}
.surface-ink .muted { color: rgba(243, 239, 231, 0.6); }
.surface-sand { background: linear-gradient(160deg, #f8f5ef, #e9e0d1); }

.gold-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ap-gold), transparent);
  margin-block: 2.5rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-family: var(--ap-font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.3s var(--ap-ease), background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--ap-ink); color: var(--ap-on-ink); }
.btn--primary:hover { background: var(--ap-ink-soft); color: var(--ap-on-ink); }
.btn--gold { background: var(--ap-gold); color: #241d10; }
.btn--gold:hover { filter: brightness(1.07); color: #241d10; }
.btn--ghost { border-color: var(--ap-line); background: transparent; color: var(--ap-text); }
.btn--ghost:hover { background: var(--ap-sand); color: var(--ap-text); }
.btn--outline-light { border-color: rgba(243, 239, 231, 0.35); color: var(--ap-on-ink); }
.btn--outline-light:hover { background: rgba(243, 239, 231, 0.1); color: var(--ap-on-ink); }
.btn--block { width: 100%; }
.btn--lg { padding: 1.05rem 2rem; font-size: 0.85rem; }

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ap-line);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.icon-btn:hover { background: var(--ap-sand); }
.icon { width: 20px; height: 20px; }

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ap-gold);
  color: #241d10;
  font-family: var(--ap-font-display);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  background: rgba(247, 244, 238, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: padding 0.35s var(--ap-ease), background-color 0.35s ease, border-color 0.35s ease;
}
.site-header.is-compact {
  border-bottom-color: var(--ap-line);
  box-shadow: var(--ap-shadow);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--ap-header-h);
  transition: min-height 0.35s var(--ap-ease);
}
.site-header.is-compact .site-header__inner { min-height: 62px; }
.site-header__brand img,
.custom-logo { height: 40px; width: auto; transition: height 0.35s var(--ap-ease); }
.site-header.is-compact .custom-logo { height: 32px; }
.site-header__title { font-family: var(--ap-font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.02em; }
.site-header__brand a,
.site-header__brand .custom-logo-link {
  display: inline-flex;
  padding: 0.55rem 0.85rem;
  margin-left: -0.85rem;
  border-radius: 0.65rem;
  transition: background 0.25s ease;
}
.site-header__brand a:hover,
.site-header__brand .custom-logo-link:hover { background: rgba(0, 0, 0, 0.04); }

body { padding-top: var(--ap-header-h); }

.site-nav__list {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--ap-font-display);
  font-size: 0.85rem;
  font-weight: 500;
}
.site-nav__list a { position: relative; padding-block: 0.25rem; }
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--ap-gold);
  transition: right 0.35s var(--ap-ease);
}
.site-nav__list a:hover::after { right: 0; }

.site-header__actions { display: flex; align-items: center; gap: 0.9rem; }
.site-header__email { padding: 0.85rem 1.35rem; }

.site-header__topbar {
  background: rgba(22, 22, 26, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.65rem 0;
  text-align: center;
  transition: max-height 0.35s var(--ap-ease), opacity 0.35s ease, padding 0.35s ease;
  overflow: hidden;
}
.site-header.is-compact .site-header__topbar {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}
.site-header__topbar-track {
  position: relative;
  display: flex;
  overflow: hidden;
  animation: ap-ticker 18s linear infinite;
}
.site-header__topbar-track:hover,
.site-header__topbar-track:focus-within {
  animation-play-state: paused;
}
.site-header__topbar-inner {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  flex-shrink: 0;
  gap: 0.5rem 0.85rem;
  padding-right: 1.5rem;
  font-family: var(--ap-font-display);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 239, 231, 0.92);
}
.site-header__topbar-sep {
  width: 1px;
  height: 10px;
  background: rgba(243, 239, 231, 0.28);
}
.site-header__topbar-sep--faint {
  opacity: 0.35;
}
@keyframes ap-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.icon-btn--burger { display: none; }

@media (max-width: 1024px) {
  .site-nav { display: none; }
  .icon-btn--burger { display: inline-flex; }
  .site-header__cta { display: none; }
  .site-header__email { display: none; }
}

/* ---------- Héroe ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(4rem, 9vw, 8rem); }
.hero__glow {
  position: absolute;
  width: 46rem; height: 46rem;
  top: -18rem; right: -12rem;
  background: radial-gradient(circle, rgba(205, 174, 122, 0.28), transparent 65%);
  animation: ap-glow 8s ease-in-out infinite;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}
.hero__title { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 600; }
.hero__announcement {
  max-width: 48ch;
  margin: 1.5rem 0 1rem;
  color: var(--ap-gold);
  font-family: var(--ap-font-display);
  font-size: clamp(0.82rem, 1.4vw, 1rem);
  font-weight: 700;
  line-height: 1.55;
  text-transform: uppercase;
}
.hero__lead { max-width: 46ch; color: rgba(243, 239, 231, 0.75); font-size: 1.05rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero__actions--center { justify-content: center; }
.hero__media img { border-radius: var(--ap-radius-lg); }
.float { animation: ap-float 8s ease-in-out infinite; }

.badge-research {
  display: inline-block;
  border: 1px solid rgba(205, 174, 122, 0.55);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-family: var(--ap-font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ap-gold);
  margin-bottom: 1.5rem;
}
.badge-research--light { border-color: var(--ap-line); color: var(--ap-muted); }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 420px; margin-inline: auto; }
}

/* ---------- Encabezados de página / sección ---------- */
.page-hero { padding-block: clamp(3.5rem, 7vw, 6rem); }
.page-hero__title { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.page-hero__text { max-width: 60ch; color: rgba(243, 239, 231, 0.7); }

.section__head { max-width: 62ch; margin-bottom: 3rem; }
.section__title { font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 600; }
.section__lead { color: var(--ap-muted); font-size: 1.02rem; }
.surface-ink .section__lead { color: rgba(243, 239, 231, 0.7); }
.section__foot { margin-top: 3rem; text-align: center; }

/* ---------- Rejillas y tarjetas ---------- */
.grid { display: grid; gap: 1.75rem; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius-lg);
  background: var(--ap-card);
  box-shadow: var(--ap-shadow);
  transition: transform 0.5s var(--ap-ease), box-shadow 0.5s var(--ap-ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--ap-shadow-lift); }
.card__media { position: relative; display: block; overflow: hidden; background: linear-gradient(160deg, #f8f5ef, #e9e0d1); }
.card__media img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; transition: transform 0.7s var(--ap-ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__badge {
  position: absolute; top: 1rem; left: 1rem;
  border-radius: 999px;
  background: rgba(22, 22, 26, 0.85);
  color: var(--ap-on-ink);
  padding: 0.3rem 0.8rem;
  font-family: var(--ap-font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.card__body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; text-align: center; }
.card__title { font-size: 1.05rem; font-weight: 600; margin: 0.25rem 0 0.5rem; }
.card__text {
  color: var(--ap-muted);
  font-size: 0.82rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__meta { color: var(--ap-muted); font-size: 0.75rem; }
.card__actions { display: grid; gap: 0.55rem; margin-top: auto; padding-top: 1.25rem; }

.price { font-family: var(--ap-font-display); font-size: 1.25rem; font-weight: 600; margin: 0.75rem 0 0; }
.price--lg { font-size: 1.9rem; }

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border: 1px solid rgba(205, 174, 122, 0.4);
  border-radius: 999px;
  color: var(--ap-gold);
  margin-bottom: 1.25rem;
}
.feature__title { font-size: 1.05rem; }
.feature__text { color: rgba(243, 239, 231, 0.7); font-size: 0.9rem; }

.info-card {
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius-lg);
  background: var(--ap-card);
  padding: 1.75rem;
  box-shadow: var(--ap-shadow);
}
.info-card__title { font-size: 1.05rem; }
.info-card__text { color: var(--ap-muted); font-size: 0.9rem; margin: 0; }

/* ---------- Transparencia COA y opiniones ---------- */
.btn--light { background: var(--ap-on-ink); color: var(--ap-ink); }
.btn--light:hover { color: var(--ap-ink); opacity: 0.9; }
.coa-feature__inner { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.coa-feature__title span { color: var(--ap-gold-soft); }
.coa-feature .btn { margin-top: 1rem; }
.coa-sample { overflow: hidden; border: 1px solid rgba(243, 239, 231, 0.18); border-radius: 0.5rem; background: rgba(243, 239, 231, 0.06); box-shadow: var(--ap-shadow-lift); }
.coa-sample__head { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid rgba(243, 239, 231, 0.15); font-family: var(--ap-font-display); font-size: 0.78rem; }
.coa-sample__head span { color: var(--ap-gold); font-size: 0.68rem; }
.coa-sample__body { padding: clamp(1.25rem, 3vw, 2rem); }
.coa-sample__body h3 { font-size: 1.5rem; }
.coa-sample__row { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; font-size: 0.86rem; }
.coa-sample__row span { color: rgba(243, 239, 231, 0.55); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.review-card { margin: 0; padding: 1.75rem; border: 1px solid var(--ap-line); border-radius: 0.5rem; background: var(--ap-card); box-shadow: var(--ap-shadow); }
.review-card > p { font-family: var(--ap-font-display); font-size: 0.9rem; line-height: 1.7; }
.review-card footer { display: grid; gap: 0.15rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--ap-line); }
.review-card cite { font-family: var(--ap-font-display); font-style: normal; font-weight: 600; }
.review-card small { color: var(--ap-muted); }

@media (max-width: 860px) {
  .coa-feature__inner, .reviews-grid { grid-template-columns: 1fr; }
}

/* ---------- Showcase ---------- */
.showcase__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.showcase--reverse .showcase__media { order: 2; }
.showcase__media { border-radius: var(--ap-radius-lg); overflow: hidden; }
@media (max-width: 860px) {
  .showcase__inner { grid-template-columns: 1fr; }
  .showcase--reverse .showcase__media { order: 0; }
}

/* ---------- Acordeón ---------- */
.accordion-list { display: grid; gap: 0.75rem; }
.accordion { border: 1px solid var(--ap-line); border-radius: var(--ap-radius); background: var(--ap-card); overflow: hidden; }
.accordion__summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 1.4rem;
  font-family: var(--ap-font-display);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__summary::after { content: "+"; font-size: 1.3rem; color: var(--ap-gold); transition: transform 0.3s var(--ap-ease); }
.accordion[open] .accordion__summary::after { transform: rotate(45deg); }
.accordion__content { padding: 0 1.4rem 1.3rem; color: var(--ap-muted); font-size: 0.93rem; animation: ap-rise 0.4s var(--ap-ease) both; }

/* ---------- Producto ---------- */
.breadcrumbs { display: flex; gap: 0.5rem; font-size: 0.8rem; color: var(--ap-muted); margin-bottom: 2rem; flex-wrap: wrap; }
.product { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.product__image { border-radius: var(--ap-radius-lg); overflow: hidden; }
.product__image img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.product__thumbs { display: flex; gap: 0.6rem; margin-top: 0.85rem; flex-wrap: wrap; }
.product__thumb {
  width: 76px; height: 76px; padding: 0; overflow: hidden; cursor: pointer;
  border: 1px solid var(--ap-line); border-radius: 0.8rem; background: none;
  transition: border-color 0.3s ease;
}
.product__thumb.is-active, .product__thumb:hover { border-color: var(--ap-gold); }
.product__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product__title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.product__lead { color: var(--ap-muted); }
.product__specs { display: grid; gap: 0.6rem; margin: 1.75rem 0; padding: 1.25rem 0; border-block: 1px solid var(--ap-line); }
.product__specs div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.88rem; }
.product__specs dt { color: var(--ap-muted); margin: 0; }
.product__specs dd { margin: 0; font-weight: 500; text-align: right; }
.product__buy { display: grid; gap: 0.7rem; }
.product__details { margin-top: clamp(2.5rem, 5vw, 4rem); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--ap-line); border-radius: 999px; overflow: hidden; width: fit-content; }
.qty button { width: 44px; height: 46px; border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; }
.qty button:hover { background: var(--ap-sand); }
.qty input { width: 56px; height: 46px; border: 0; text-align: center; font-family: var(--ap-font-display); background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }

/* ---------- Catálogo ---------- */
.catalog-filters { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.catalog-filters input[type="search"] {
  flex: 1 1 260px;
  border: 1px solid var(--ap-line);
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  background: var(--ap-card);
  font: inherit;
}
.chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.catalog-title {
  font-family: var(--ap-font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ap-text);
  margin-bottom: 1.25rem;
}
.chip {
  border: 1px solid var(--ap-line);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-family: var(--ap-font-display);
  font-size: 0.78rem;
  background: var(--ap-card);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.chip:hover, .chip.is-active { background: var(--ap-ink); border-color: var(--ap-ink); color: var(--ap-on-ink); }

.empty-state { text-align: center; padding-block: 4rem; }

/* ---------- Biblioteca COA ---------- */
.container--coa { width: min(1040px, 100% - 2.5rem); }
.coa-filters { display: grid; grid-template-columns: minmax(0, 1fr) 220px 220px; gap: 0.75rem; }
.coa-filters input, .coa-filters select {
  width: 100%; height: 48px; border: 1px solid var(--ap-line); border-radius: 0.5rem;
  padding: 0 1rem; background: var(--ap-card); color: var(--ap-text); font: inherit; font-size: 0.86rem;
}
.coa-list-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 2rem 0 0.8rem; }
.coa-list-head h2 { margin: 0; font-size: 1.15rem; }
.coa-list-head span { color: var(--ap-muted); font-size: 0.75rem; }
.coa-list { overflow: hidden; margin: 0; padding: 0; list-style: none; border: 1px solid var(--ap-line); border-radius: 0.5rem; background: var(--ap-card); }
.coa-row { display: grid; grid-template-columns: minmax(0, 1.2fr) auto auto; align-items: center; gap: 1.25rem; padding: 1rem; border-bottom: 1px solid var(--ap-line); }
.coa-row:last-child { border-bottom: 0; }
.coa-row[hidden] { display: none; }
.coa-row__identity { display: flex; align-items: center; gap: 0.9rem; min-width: 0; }
.coa-row__identity > span:last-child { display: grid; min-width: 0; }
.coa-row__identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--ap-font-display); font-size: 0.86rem; }
.coa-row__identity small { color: var(--ap-muted); font-size: 0.7rem; }
.coa-row__initial { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; border-radius: 0.45rem; background: var(--ap-ink); color: var(--ap-on-ink); font-family: var(--ap-font-display); font-size: 0.75rem; font-weight: 600; }
.coa-row__status { display: flex; align-items: center; gap: 0.5rem; color: var(--ap-muted); font-size: 0.72rem; }
.coa-row__status i { width: 6px; height: 6px; border-radius: 50%; background: #24a866; }
.coa-row__status i.is-pending { background: var(--ap-gold); }
.coa-row .btn { padding: 0.55rem 1rem; font-size: 0.68rem; }
.coa-pagination { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1.5rem; }
.coa-page-btn { width: 38px; height: 38px; border: 1px solid var(--ap-line); border-radius: 50%; background: var(--ap-card); font-family: var(--ap-font-display); cursor: pointer; }
.coa-page-btn.is-active { background: var(--ap-ink); color: var(--ap-on-ink); }
.coa-disclaimer { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--ap-line); color: var(--ap-muted); font-size: 0.75rem; }

@media (max-width: 860px) {
  .coa-filters { grid-template-columns: 1fr; }
  .coa-row { grid-template-columns: 1fr; }
  .coa-row .btn { width: 100%; }
}

/* ---------- Paneles laterales (carrito y menú) ---------- */
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(22, 22, 26, 0.55); backdrop-filter: blur(2px); animation: ap-fade 0.3s ease both; }
.drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--ap-cream);
  box-shadow: var(--ap-shadow-lift);
  animation: ap-slide-right 0.4s var(--ap-ease) both;
}
.drawer--left .drawer__panel { right: auto; left: 0; animation-name: ap-slide-left; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--ap-line); }
.drawer__head h2 { margin: 0; font-size: 1.05rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem; }
.drawer__foot { border-top: 1px solid var(--ap-line); padding: 1.25rem 1.5rem; display: grid; gap: 0.75rem; }
.drawer__total { display: flex; justify-content: space-between; font-family: var(--ap-font-display); font-size: 1.05rem; }

.mobile-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; font-family: var(--ap-font-display); font-size: 1.05rem; }
.mobile-nav a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--ap-line); }

.line-item { display: grid; grid-template-columns: 68px 1fr; gap: 0.9rem; padding-block: 1rem; border-bottom: 1px solid var(--ap-line); }
.line-item img { width: 68px; height: 68px; border-radius: 0.75rem; object-fit: cover; }
.line-item__name { font-family: var(--ap-font-display); font-weight: 500; font-size: 0.92rem; }
.line-item__row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.5rem; }
.line-item__remove { border: 0; background: none; color: var(--ap-muted); font-size: 0.78rem; cursor: pointer; text-decoration: underline; }
.line-item__remove:hover { color: var(--ap-text); }

/* ---------- Búsqueda ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 95; }
.search-overlay__backdrop { position: absolute; inset: 0; background: rgba(22, 22, 26, 0.55); }
.search-overlay__panel {
  position: relative;
  width: min(720px, calc(100% - 2rem));
  margin: 8vh auto 0;
  background: var(--ap-cream);
  border-radius: var(--ap-radius-lg);
  box-shadow: var(--ap-shadow-lift);
  overflow: hidden;
  animation: ap-rise 0.35s var(--ap-ease) both;
}
.search-overlay__bar { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--ap-line); }
.search-overlay__bar input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 1.05rem; outline: none; }
.search-overlay__results { max-height: 58vh; overflow-y: auto; padding: 0.5rem 0.75rem 1rem; }
.search-result { display: grid; grid-template-columns: 54px 1fr auto; gap: 0.9rem; align-items: center; padding: 0.7rem 0.6rem; border-radius: var(--ap-radius); }
.search-result:hover { background: var(--ap-sand); }
.search-result img { width: 54px; height: 54px; border-radius: 0.65rem; object-fit: cover; }

/* ---------- Pedido ---------- */
.checkout { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.checkout__heading { font-size: 1.15rem; }
.checkout__form, .checkout__summary, .checkout__success {
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius-lg);
  background: var(--ap-card);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--ap-shadow);
}
.checkout__success { grid-column: 1 / -1; text-align: center; }
.field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.field label { font-family: var(--ap-font-display); font-size: 0.8rem; font-weight: 500; }
.field input, .field textarea {
  border: 1px solid var(--ap-line);
  border-radius: 0.85rem;
  padding: 0.8rem 1rem;
  background: var(--ap-cream);
  font: inherit;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--ap-gold); outline-offset: 1px; }
.field input.has-error, .field textarea.has-error { border-color: #b3261e; }
.field__error { color: #b3261e; font-size: 0.78rem; min-height: 1em; }
.req { color: var(--ap-gold); }
.checkout__total { display: flex; justify-content: space-between; font-family: var(--ap-font-display); font-size: 1.15rem; padding-top: 1rem; border-top: 1px solid var(--ap-line); margin-top: 1rem; }

@media (max-width: 860px) { .checkout { grid-template-columns: 1fr; } }

/* ---------- Verificación de edad ---------- */
.age-gate { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: rgba(15, 15, 18, 0.92); backdrop-filter: blur(6px); padding: 1.25rem; }
.age-gate__panel {
  width: min(520px, 100%);
  border: 1px solid rgba(205, 174, 122, 0.35);
  border-radius: var(--ap-radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  animation: ap-rise 0.5s var(--ap-ease) both;
}
.age-gate__brand { margin-bottom: 1.75rem; }
.age-gate__brand img { margin-inline: auto; height: 40px; width: auto; filter: brightness(0) invert(1); }
.age-gate__title { font-size: 1.6rem; }
.age-gate__text { color: rgba(243, 239, 231, 0.75); }
.age-gate__confirm { font-family: var(--ap-font-display); font-weight: 500; color: var(--ap-gold); margin-top: 1.5rem; }
.age-gate__actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.age-gate__legal { margin: 2rem 0 0; font-size: 0.75rem; color: rgba(243, 239, 231, 0.45); }

/* ---------- Pie ---------- */
.site-footer { margin-top: 0; padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 3rem; }
.footer-logo img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.footer-brand { font-family: var(--ap-font-display); font-size: 1.15rem; font-weight: 600; }
.footer-text { max-width: 34ch; color: rgba(243, 239, 231, 0.65); font-size: 0.88rem; }
.footer-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.7rem; font-size: 0.88rem; color: rgba(243, 239, 231, 0.7); }
.footer-cta { margin-top: 1.5rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; font-size: 0.78rem; color: rgba(243, 239, 231, 0.5); }
.footer-bottom p { margin: 0; }

/* ---------- Paginación ---------- */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 0.75rem;
  border: 1px solid var(--ap-line); border-radius: 999px;
  font-family: var(--ap-font-display); font-size: 0.85rem;
}
.pagination .current { background: var(--ap-ink); border-color: var(--ap-ink); color: var(--ap-on-ink); }

/* ---------- Animaciones ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ap-ease), transform 0.9s var(--ap-ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes ap-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes ap-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ap-slide-right { from { transform: translateX(100%); } to { transform: none; } }
@keyframes ap-slide-left { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes ap-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes ap-glow { 0%, 100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 0.9; transform: scale(1.06); } }

/* ---------- Aviso emergente ---------- */
.ap-toast {
  position: fixed;
  right: 1.25rem; bottom: 1.25rem;
  z-index: 130;
  background: var(--ap-ink);
  color: var(--ap-on-ink);
  border-radius: var(--ap-radius);
  padding: 0.9rem 1.25rem;
  font-size: 0.88rem;
  box-shadow: var(--ap-shadow-lift);
  animation: ap-rise 0.35s var(--ap-ease) both;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Pedido mínimo */
.min-order-note {
	margin: 0 0 1rem;
	padding: 0.85rem 1rem;
	border: 1px solid color-mix(in srgb, var(--ap-gold) 40%, transparent);
	border-radius: 1rem;
	background: color-mix(in srgb, var(--ap-gold) 10%, transparent);
	font-size: 0.8rem;
	line-height: 1.5;
	color: var(--ap-muted, #6b6b70);
	text-align: center;
}
.min-order-note strong { color: var(--ap-ink); }
.btn.is-disabled,
button.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: auto;
}
