/* =========================================================
   ACCESORIOS MOTORS — main.css
   Tokens de marca + base. Variante clara con .theme-light
   ========================================================= */

:root {
  /* Marca */
  --am-orange: #ff6a00;
  --am-orange-600: #e85d00;
  --am-orange-glow: rgba(255, 106, 0, 0.35);

  /* Tema OSCURO (por defecto) */
  --am-bg: #0b0b0d;
  --am-bg-2: #111216;
  --am-surface: #17181d;
  --am-surface-2: #1f2127;
  --am-border: #2a2c34;
  --am-text: #ecedf1;
  --am-muted: #9a9ca6;
  --am-white: #ffffff;

  /* UI */
  --am-radius: 14px;
  --am-radius-sm: 10px;
  --am-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --am-shadow-orange: 0 8px 24px var(--am-orange-glow);
  --am-maxw: 1240px;
  --am-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --am-head: "Inter", system-ui, sans-serif;
}

/* === VARIANTE CLARA: agregar clase .theme-light al <body> === */
body.theme-light {
  --am-bg: #f6f7f9;
  --am-bg-2: #ffffff;
  --am-surface: #ffffff;
  --am-surface-2: #f1f2f5;
  --am-border: #e4e6ea;
  --am-text: #15171c;
  --am-muted: #5c606b;
  --am-white: #15171c;
  --am-shadow: 0 10px 30px rgba(20, 23, 28, 0.10);
}

/* === Reset suave === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--am-bg);
  color: var(--am-text);
  font-family: var(--am-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--am-head); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; }

.am-container { max-width: var(--am-maxw); margin: 0 auto; padding: 0 20px; }

/* === Botones === */
.am-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--am-orange);
  color: #fff; font-weight: 700;
  padding: .8rem 1.4rem; border: 0; border-radius: 999px;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: var(--am-shadow-orange);
}
.am-btn:hover { background: var(--am-orange-600); transform: translateY(-2px); }
.am-btn--ghost {
  background: transparent; color: var(--am-text);
  border: 1.5px solid var(--am-border); box-shadow: none;
}
.am-btn--ghost:hover { border-color: var(--am-orange); color: var(--am-orange); transform: translateY(-2px); }

/* === Topbar === */
.am-topbar { background: #060607; border-bottom: 1px solid var(--am-border); font-size: 12.5px; color: var(--am-muted); }
.am-topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 38px; }
body.theme-light .am-topbar { background: #11131a; color: #d4d7de; }

/* === Header === */
.am-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--am-bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--am-border);
  transition: box-shadow .25s ease, background .25s ease;
}
.am-header.is-scrolled { background: var(--am-bg); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.am-header__inner { display: flex; align-items: center; gap: 22px; height: 84px; }
.am-logo { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.am-logo__img { height: 56px !important; width: auto; max-width: 220px; display: block; flex: 0 0 auto; }
.am-logo__img--light { display: none; }
body.theme-light .am-logo__img--dark { display: none; }
body.theme-light .am-logo__img--light { display: block; }

/* Buscador */
.am-search { flex: 1 1 auto; max-width: 560px; display: flex; align-items: center; background: var(--am-surface); border: 1px solid var(--am-border); border-radius: 999px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.am-search:focus-within { border-color: var(--am-orange); box-shadow: 0 0 0 3px var(--am-orange-glow); }
.am-search__input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--am-text); padding: 12px 18px; font-size: 14px; }
.am-search__input::placeholder { color: var(--am-muted); }
.am-search__btn { background: var(--am-orange); color: #fff; border: 0; padding: 0 18px; align-self: stretch; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.am-search__btn:hover { background: var(--am-orange-600); }

/* Buscador predictivo (dropdown) */
.am-suggest {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 90;
  background: var(--am-surface); border: 1px solid var(--am-border);
  border-radius: 16px; box-shadow: var(--am-shadow); overflow: hidden;
  max-height: 70vh; overflow-y: auto;
}
.am-suggest__loading, .am-suggest__empty { padding: 18px; color: var(--am-muted); font-size: 14px; text-align: center; }
.am-suggest__cats { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--am-border); }
.am-suggest__cat { font-size: 12.5px; font-weight: 700; color: var(--am-text); background: var(--am-bg-2); border: 1px solid var(--am-border); border-radius: 999px; padding: 6px 12px; }
.am-suggest__cat:hover { border-color: var(--am-orange); color: var(--am-orange); }
.am-suggest__cat b { color: var(--am-muted); font-weight: 700; }
.am-suggest__list { list-style: none; margin: 0; padding: 6px; }
.am-suggest__item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 11px; transition: background .15s; }
.am-suggest__item:hover { background: var(--am-surface-2); }
.am-suggest__item img { width: 46px; height: 46px; object-fit: contain; background: #fff; border-radius: 9px; border: 1px solid var(--am-border); flex: 0 0 auto; }
.am-suggest__info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.am-suggest__t { color: var(--am-text); font-weight: 600; font-size: 14px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-suggest__c { color: var(--am-orange); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.am-suggest__p { color: var(--am-white); font-weight: 800; font-size: 14px; white-space: nowrap; }
.am-suggest__all { display: block; text-align: center; padding: 13px; font-weight: 700; font-size: 13.5px; color: var(--am-orange); border-top: 1px solid var(--am-border); background: var(--am-bg-2); }
.am-suggest__all:hover { background: var(--am-surface-2); }

/* Nav */
.am-nav { display: flex; gap: 4px; align-items: center; flex: 0 0 auto; }
.am-nav a { padding: .5rem .9rem; border-radius: 999px; color: var(--am-muted); font-weight: 600; white-space: nowrap; transition: color .2s, background .2s; }
.am-nav a:hover { color: var(--am-text); background: var(--am-surface); }

/* Carrito */
.am-header__actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.am-cart { display: flex; align-items: center; gap: 10px; color: var(--am-text); }
.am-cart:hover { color: var(--am-orange); }
.am-cart__ico { position: relative; display: inline-flex; color: var(--am-text); }
.am-cart-count {
  position: absolute; top: -8px; right: -10px;
  background: var(--am-orange); color: #fff; font-size: 11px; font-weight: 800;
  min-width: 18px; height: 18px; border-radius: 999px;
  display: grid; place-items: center; padding: 0 4px;
}
.am-cart__label { display: flex; flex-direction: column; line-height: 1.15; }
.am-cart__label small { color: var(--am-muted); font-size: 11px; }
.am-cart__label strong { font-size: 14px; color: var(--am-text); }

/* === Mini-carrito flotante (hover) === */
.am-cart-wrap { position: relative; }
.am-minicart {
  position: absolute; top: calc(100% + 12px); right: -6px; width: 350px; z-index: 80;
  background: var(--am-surface); border: 1px solid var(--am-border);
  border-radius: 16px; padding: 16px; box-shadow: var(--am-shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.am-minicart::before { /* puente invisible para que el mouse no "caiga" al viajar */
  content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px;
}
.am-minicart::after { /* flechita */
  content: ""; position: absolute; top: -6px; right: 26px; width: 12px; height: 12px;
  background: var(--am-surface); border-left: 1px solid var(--am-border); border-top: 1px solid var(--am-border);
  transform: rotate(45deg);
}
.am-cart-wrap:hover .am-minicart,
.am-cart-wrap:focus-within .am-minicart {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}

/* Contenido del mini-carrito (markup nativo de WooCommerce) */
.am-minicart ul.woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow: auto; }
.am-minicart li.woocommerce-mini-cart-item {
  display: grid; grid-template-columns: 54px 1fr; gap: 4px 12px; align-items: center;
  padding: 11px 26px 11px 0; border-bottom: 1px solid var(--am-border); position: relative;
}
.am-minicart li.woocommerce-mini-cart-item a { color: var(--am-text); font-weight: 600; font-size: 13.5px; line-height: 1.35; }
.am-minicart li.woocommerce-mini-cart-item a:hover { color: var(--am-orange); }
.am-minicart li.woocommerce-mini-cart-item img {
  width: 54px !important; height: 54px !important; object-fit: contain;
  background: #fff; border-radius: 10px; border: 1px solid var(--am-border);
  grid-row: 1 / 3; margin: 0 !important; float: none !important;
}
.am-minicart li.woocommerce-mini-cart-item .quantity { grid-column: 2; color: var(--am-muted); font-size: 13px; }
.am-minicart li.woocommerce-mini-cart-item .quantity .woocommerce-Price-amount { color: var(--am-orange); font-weight: 700; }
.am-minicart a.remove {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; line-height: 20px; text-align: center;
  border-radius: 999px; color: var(--am-muted) !important; font-size: 16px; font-weight: 700;
  border: 1px solid var(--am-border); transition: all .15s;
}
.am-minicart a.remove:hover { background: #e5484d; border-color: #e5484d; color: #fff !important; }

.am-minicart .woocommerce-mini-cart__total {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0; padding: 14px 2px 12px; color: var(--am-muted); font-size: 14px;
}
.am-minicart .woocommerce-mini-cart__total .woocommerce-Price-amount { color: var(--am-white); font-weight: 800; font-size: 18px; }

.am-minicart .woocommerce-mini-cart__buttons { display: flex; gap: 10px; margin: 0; }
.am-minicart .woocommerce-mini-cart__buttons a.button {
  flex: 1; text-align: center; border-radius: 999px; padding: 11px 10px;
  font-weight: 700; font-size: 13.5px; border: 1.5px solid var(--am-border);
  background: transparent; color: var(--am-text); transition: all .2s;
}
.am-minicart .woocommerce-mini-cart__buttons a.button:hover { border-color: var(--am-orange); color: var(--am-orange); }
.am-minicart .woocommerce-mini-cart__buttons a.button.checkout {
  background: var(--am-orange); border-color: var(--am-orange); color: #fff;
}
.am-minicart .woocommerce-mini-cart__buttons a.button.checkout:hover { background: var(--am-orange-600); color: #fff; }

.am-minicart .woocommerce-mini-cart__empty-message {
  text-align: center; color: var(--am-muted); margin: 6px 0; padding: 18px 8px; font-size: 14px;
}
.am-minicart .woocommerce-mini-cart__empty-message::before {
  content: "🛒"; display: block; font-size: 30px; margin-bottom: 8px;
}

/* === Hero === */
.am-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(255,106,0,.18), transparent 60%),
    linear-gradient(180deg, var(--am-bg-2), var(--am-bg));
  border-bottom: 1px solid var(--am-border);
}
.am-hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 72px 20px; }
.am-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--am-orange); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px;
}
.am-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.am-hero h1 em { color: var(--am-orange); font-style: normal; }
.am-hero p { color: var(--am-muted); font-size: 1.15rem; max-width: 46ch; margin: 18px 0 28px; }
.am-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.am-hero__art {
  background: var(--am-surface); border: 1px solid var(--am-border);
  border-radius: 24px; box-shadow: var(--am-shadow);
  display: grid; place-items: center; min-height: 320px;
}
.am-hero__art--img { padding: 0; overflow: hidden; border-color: var(--am-border); background: transparent; min-height: 0; }
.am-hero__art--img img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; display: block; }
.am-hero__stats { list-style: none; display: flex; gap: 34px; padding: 0; margin: 30px 0 0; }
.am-hero__stats li { display: flex; flex-direction: column; line-height: 1.25; }
.am-hero__stats strong { font-size: 1.35rem; color: var(--am-orange); font-weight: 800; }
.am-hero__stats span { color: var(--am-muted); font-size: .85rem; }

/* === Placeholders para fotos (las hace el diseñador y se reemplazan) === */
.am-ph {
  display: grid; place-items: center; align-content: center; gap: 6px;
  color: var(--am-muted); text-align: center;
  border: 1.5px dashed var(--am-border); border-radius: 24px;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,106,0,.045) 14px 28px),
    var(--am-surface);
}
.am-ph__cam { color: var(--am-orange); opacity: .8; }
.am-ph span { font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.am-ph small { font-size: 11.5px; opacity: .75; }

/* === Barra de confianza === */
.am-trustbar { border-bottom: 1px solid var(--am-border); background: var(--am-bg-2); }
.am-trustbar__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 22px 20px; }
.am-trust { display: flex; align-items: center; gap: 13px; }
.am-trust svg { color: var(--am-orange); flex: 0 0 auto; }
.am-trust strong { display: block; font-size: 14px; color: var(--am-text); line-height: 1.25; }
.am-trust span { color: var(--am-muted); font-size: 12.5px; }

/* === Secciones alternadas === */
.am-section--alt { background: var(--am-bg-2); border-top: 1px solid var(--am-border); border-bottom: 1px solid var(--am-border); }

/* === Banners dobles === */
.am-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.am-banner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; align-items: center;
  background: linear-gradient(135deg, var(--am-surface), #14161c 70%);
  border: 1px solid var(--am-border); border-radius: 22px; padding: 26px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.am-banner:hover { transform: translateY(-4px); border-color: var(--am-orange); box-shadow: var(--am-shadow); }
.am-banner--oil { background: linear-gradient(135deg, var(--am-surface), #1d140c 75%); }
.am-banner__tag { color: var(--am-orange); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.am-banner__txt h3 { font-size: 1.45rem; margin: 8px 0; color: var(--am-text); }
.am-banner__txt p { color: var(--am-muted); font-size: 13.5px; line-height: 1.55; margin: 0 0 14px; }
.am-banner__cta { color: var(--am-orange); font-weight: 800; font-size: 14px; }
.am-ph--banner { min-height: 210px; border-radius: 16px; }

/* === Banda mayorista === */
.am-wholesale {
  background:
    radial-gradient(700px 200px at 15% 120%, rgba(255,106,0,.22), transparent 60%),
    linear-gradient(120deg, #17181d, #0d0e11);
  border-top: 1px solid var(--am-border); border-bottom: 1px solid var(--am-border);
}
body.theme-light .am-wholesale { background: linear-gradient(120deg, #1b1d24, #2a2d36); }
.am-wholesale__inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 44px 20px; flex-wrap: wrap; }
.am-wholesale h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.am-wholesale p { color: #b9bcc5; margin: 0; max-width: 56ch; }
.am-btn--big { padding: 1rem 1.9rem; font-size: 16px; }

/* === Bloque SEO === */
.am-seo__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.am-seo h2 { font-size: 1.25rem; }
.am-seo p { color: var(--am-muted); font-size: 14.5px; line-height: 1.75; }
.am-seo a { color: var(--am-orange); font-weight: 600; }
.am-seo a:hover { text-decoration: underline; }

/* === Secciones / categorías === */
.am-section { padding: 64px 0; }
.am-section__head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; gap: 16px; }
.am-section__head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.am-section__head p { color: var(--am-muted); margin: 6px 0 0; }
.am-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.am-cat-card {
  background: var(--am-surface); border: 1px solid var(--am-border);
  border-radius: var(--am-radius); padding: 26px 22px; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.am-cat-card:hover { transform: translateY(-4px); border-color: var(--am-orange); box-shadow: var(--am-shadow); }
.am-cat-card__ico {
  display: inline-grid; place-items: center; width: 52px; height: 52px;
  border-radius: 14px; margin-bottom: 14px;
  background: linear-gradient(145deg, rgba(255,106,0,.16), rgba(255,106,0,.05));
  border: 1px solid rgba(255,106,0,.25); color: var(--am-orange);
  transition: background .2s, transform .2s;
}
.am-cat-card:hover .am-cat-card__ico { transform: scale(1.08); background: var(--am-orange); color: #fff; border-color: var(--am-orange); }
.am-cat-card__ico .am-ico { width: 26px; height: 26px; }
.am-cat-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.am-cat-card span { color: var(--am-muted); font-size: .9rem; }
.am-catnav__ico .am-ico { display: block; width: 19px; height: 19px; }

/* === Footer PRO === */
.am-footer { background: var(--am-bg-2); border-top: 1px solid var(--am-border); margin-top: 64px; }

/* CTA de ayuda */
.am-footer__cta { border-bottom: 1px solid var(--am-border); background: radial-gradient(640px 160px at 12% 130%, rgba(255,106,0,.14), transparent 60%); }
.am-footer__cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 20px; flex-wrap: wrap; }
.am-footer__cta strong { display: block; color: var(--am-text); font-size: 1.05rem; }
.am-footer__cta span { color: var(--am-muted); font-size: 14px; }

/* Columnas */
.am-footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px; padding: 50px 20px 38px; }
.am-footer h4 { color: var(--am-white); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 16px; }
.am-footer a, .am-footer p { color: var(--am-muted); display: block; padding: 5px 0; font-size: 14px; margin: 0; }
.am-footer a:hover { color: var(--am-orange); }
.am-footer a strong { color: var(--am-orange); }
.am-footer__brand p { margin-top: 14px; line-height: 1.65; }
.am-footer__logo { height: 84px; width: auto; }
.am-footer__logo--light { display: none; }
body.theme-light .am-footer__logo--dark { display: none; }
body.theme-light .am-footer__logo--light { display: block; }
.am-footer__cico { vertical-align: -2px; margin-right: 7px; color: var(--am-orange); }

/* Redes */
.am-footer__social { display: flex; gap: 10px; margin-top: 14px; }
.am-footer__social a {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--am-border); border-radius: 999px; color: var(--am-muted);
  transition: all .2s;
}
.am-footer__social a:hover { border-color: var(--am-orange); color: var(--am-orange); transform: translateY(-2px); }

/* Métodos de pago */
.am-footer__pay { border-top: 1px solid var(--am-border); }
.am-footer__pay-inner { display: flex; align-items: center; gap: 16px; padding: 16px 20px; flex-wrap: wrap; }
.am-footer__pay-label, .am-footer__pay-note { color: var(--am-muted); font-size: 13px; }
.am-footer__pay-note { margin-left: auto; }
.am-footer__pay-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.am-paychip {
  border: 1px solid var(--am-border); border-radius: 8px; padding: 5px 12px;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--am-text);
  background: var(--am-surface);
}

/* Legales */
.am-footer__legal { border-top: 1px solid var(--am-border); }
.am-footer__legal .am-container { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 14px 20px; justify-content: center; }
.am-footer__legal a { color: var(--am-muted); font-size: 13px; }
.am-footer__legal a:hover { color: var(--am-orange); }

/* Barra final */
.am-footer__bottom { border-top: 1px solid var(--am-border); }
.am-footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px; color: var(--am-muted); font-size: .85rem; flex-wrap: wrap; }

/* === Responsive === */
/* === Barra de anuncio === */
.am-announce { background: var(--am-orange); color: #fff; font-size: 13px; font-weight: 700; }
.am-announce .am-container { padding: 8px 20px; text-align: center; }

/* === WhatsApp flotante === */
.am-wa { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: flex; align-items: center; background: #25D366; color: #fff; border-radius: 999px; padding: 14px; box-shadow: 0 10px 28px rgba(37,211,102,.45); }
.am-wa svg { flex: 0 0 auto; }
.am-wa__txt { max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; font-weight: 700; transition: max-width .3s ease, opacity .25s ease, margin .3s ease; }
.am-wa:hover { color: #fff; }
.am-wa:hover .am-wa__txt { max-width: 170px; opacity: 1; margin: 0 6px 0 10px; }
.am-wa::after { content: ""; position: absolute; inset: 0; border-radius: 999px; animation: am-wa-pulse 2.2s infinite; }
@keyframes am-wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* === Hamburguesa === */
.am-burger { display: none; flex-direction: column; gap: 5px; background: transparent; border: 0; cursor: pointer; padding: 8px; }
.am-burger span { width: 24px; height: 2px; background: var(--am-text); border-radius: 2px; }

/* === Drawer móvil === */
.am-drawer { position: fixed; inset: 0; z-index: 130; }
.am-drawer__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .25s; }
.am-drawer.is-open .am-drawer__overlay { opacity: 1; }
.am-drawer__panel { position: absolute; top: 0; right: 0; height: 100%; width: 300px; max-width: 84vw; background: var(--am-bg-2); border-left: 1px solid var(--am-border); transform: translateX(100%); transition: transform .25s ease; padding: 18px; overflow-y: auto; }
.am-drawer.is-open .am-drawer__panel { transform: translateX(0); }
.am-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.am-drawer__close { background: transparent; border: 0; color: var(--am-text); font-size: 22px; cursor: pointer; line-height: 1; }
.am-drawer__nav { display: flex; flex-direction: column; }
.am-drawer__nav a { padding: 12px 8px; color: var(--am-text); font-weight: 600; border-radius: 10px; display: flex; align-items: center; gap: 11px; }
.am-drawer__nav a:hover { background: var(--am-surface); color: var(--am-orange); }
.am-drawer__nav a .am-ico { width: 20px; height: 20px; color: var(--am-orange); }
.am-drawer__label { color: var(--am-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin: 14px 8px 4px; }

/* === Barra pegajosa de producto (móvil) === */
.am-stickybar { display: none; }

/* === Barra de envío gratis (carrito) === */
.am-freeship { background: var(--am-surface); border: 1px solid var(--am-border); border-radius: 14px; padding: 14px 18px; margin: 0 0 18px; }
.am-freeship--won { border-color: #2faa54; color: #39c46a; text-align: center; }
.am-freeship__txt { font-size: 14px; color: var(--am-text); margin-bottom: 8px; }
.am-freeship__bar { height: 8px; background: var(--am-bg-2); border-radius: 999px; overflow: hidden; }
.am-freeship__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--am-orange), #ffae6b); border-radius: 999px; transition: width .4s ease; }

@media (max-width: 880px) {
  .am-hero__inner { grid-template-columns: 1fr; }
  .am-hero__art { order: -1; }
  .am-footer__inner { grid-template-columns: 1fr 1fr; }
  .am-footer__brand { grid-column: 1 / -1; }
  .am-topbar__right { display: none; }
  .am-header__inner { flex-wrap: wrap; height: auto; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .am-search { order: 3; flex-basis: 100%; max-width: none; }
  .am-nav { display: none; }
  .am-burger { display: flex; order: 2; }
  .am-cart__label { display: none; }
  .am-minicart { display: none; } /* en móvil, tap = ir al carrito */
  .am-trustbar__inner { grid-template-columns: 1fr 1fr; gap: 14px; }
  .am-banners { grid-template-columns: 1fr; }
  .am-banner { grid-template-columns: 1fr; }
  .am-ph--banner { min-height: 160px; }
  .am-seo__cols { grid-template-columns: 1fr; gap: 10px; }
  .am-hero__stats { gap: 22px; flex-wrap: wrap; }

  /* WhatsApp más arriba para no chocar con la barra pegajosa */
  .am-wa { right: 16px; bottom: 84px; }
  .am-wa:hover .am-wa__txt { max-width: 0; opacity: 0; margin: 0; } /* en móvil solo el ícono */

  /* Barra pegajosa de producto visible solo en móvil */
  .am-stickybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 115; align-items: center; gap: 12px; background: var(--am-surface); border-top: 1px solid var(--am-border); padding: 10px 14px; box-shadow: 0 -8px 24px rgba(0,0,0,.35); }
  .am-stickybar__info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
  .am-stickybar__name { font-size: 12px; color: var(--am-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .am-stickybar__price { font-weight: 800; color: var(--am-orange); }
  .am-stickybar__price del { color: var(--am-muted); font-weight: 400; font-size: .85em; }
  .am-stickybar__btn { background: var(--am-orange); color: #fff; border: 0; border-radius: 999px; padding: 13px 20px; font-weight: 800; font-size: 15px; white-space: nowrap; cursor: pointer; }
  .single-product { padding-bottom: 72px; } /* espacio para la barra pegajosa */
}
