/* ============================================================
   ANIMAL PLANET DISTRIBUIDORA · Home (index.html)
   ------------------------------------------------------------
   Identidad propia · diseño premium para venta mayorista
   Paleta: verde claro principal / blanco / verde oscuro /
           gris muy claro / negro suave
   ============================================================ */

:root {
  --ap-green: #22c55e;
  --ap-green-2: #16a34a;
  --ap-green-dark: #14532d;
  --ap-green-soft: rgba(34, 197, 94, 0.10);
  --ap-bg-soft: #f5f8f6;
  --ap-ink: #111827;
  --ap-muted: #6b7280;
  --ap-line: #e5e7eb;
  --ap-yellow: #ffd400;
  --ap-yellow-soft: #fff7cc;
  --ap-radius: 18px;
  --ap-shadow: 0 18px 44px rgba(17, 24, 39, 0.10);
  --ap-shadow-sm: 0 6px 18px rgba(17, 24, 39, 0.07);
  --ap-font: 'Montserrat', 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

/* Barra inferior móvil: oculta en desktop (solo <= 900px) */
.mb-bar { display: none; }

/* ============================================================
   1) HEADER (estructura distribuidora)
   ============================================================ */
.ap-header {
  background: #ffffff;
  border-bottom: 1px solid var(--ap-line);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 14px rgba(17, 24, 39, 0.05);
}
.ap-header-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 22px;
  flex-wrap: wrap; /* evita overflow horizontal en tablet */
}
.ap-menu { margin: 0 auto; } /* logo izquierda · menú centro · acciones derecha */
.ap-header-inner .mc-nav-actions { margin-left: 0; }
.ap-header-inner .mc-nav-btn {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--ap-bg-soft); border: 1px solid var(--ap-line);
  font-size: 17px; color: var(--ap-ink);
}
/* Logo: ANIMAL PLANET DISTRIBUIDORA (composición propia) */
.ap-logo {
  display: flex; align-items: center; gap: 11px; text-decoration: none;
}
.ap-logo-mark {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
}
.ap-logo-mark svg { width: 30px; height: 30px; display: block; }
.ap-logo-text { display: flex; flex-direction: column; line-height: 1; }
.ap-logo-name {
  font-family: var(--ap-font); font-weight: 800; letter-spacing: 0.01em;
  font-size: 17px; color: var(--ap-ink); white-space: nowrap;
}
.ap-logo-name em { font-style: normal; color: var(--ap-green-2); }
.ap-logo-sub {
  margin-top: 3px; font-size: 8.5px; font-weight: 700; letter-spacing: 0.34em;
  color: var(--ap-green-dark); text-transform: uppercase;
}
/* Menú de categorías */
.ap-menu { display: flex; align-items: center; gap: 4px; justify-content: center; flex-wrap: wrap; }
.ap-menu a {
  font-family: var(--ap-font); font-size: 13.5px; font-weight: 600;
  color: var(--ap-ink); text-decoration: none; padding: 8px 12px;
  border-radius: 10px; transition: background .18s, color .18s;
}
.ap-menu a:hover { color: var(--ap-green-2); background: var(--ap-green-soft); }
.ap-menu a.ap-menu-all { color: var(--ap-green-dark); background: var(--ap-green-soft); }
/* Acciones: buscador + cuenta + carrito + comprar */
.ap-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.ap-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--ap-bg-soft); border: 1px solid var(--ap-line);
  border-radius: 12px; padding: 8px 12px; min-width: 190px;
  transition: border-color .18s, box-shadow .18s;
}
.ap-search:focus-within { border-color: var(--ap-green-2); box-shadow: 0 0 0 4px var(--ap-green-soft); }
.ap-search input {
  border: 0; outline: 0; background: transparent; width: 100%;
  font-family: var(--ap-font); font-size: 13px; color: var(--ap-ink);
}
.ap-icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; font-size: 18px;
  background: var(--ap-bg-soft); border: 1px solid var(--ap-line);
  cursor: pointer; color: var(--ap-ink); text-decoration: none;
  transition: transform .18s, border-color .18s, background .18s;
}
.ap-icon-btn:hover { transform: translateY(-2px); border-color: var(--ap-green-2); background: var(--ap-green-soft); }
.ap-icon-btn .ap-count {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px;
  border-radius: 100px; background: var(--ap-green-2); color: #fff;
  font-size: 10.5px; font-weight: 700; display: grid; place-items: center;
  padding: 0 5px; font-family: var(--ap-font);
}
.ap-btn-buy {
  font-family: var(--ap-font); font-weight: 700; font-size: 13px;
  background: linear-gradient(135deg, #22c55e, #15803d); color: #fff;
  border: 0; border-radius: 12px; padding: 12px 20px; cursor: pointer;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.3);
  transition: transform .18s, box-shadow .18s;
}
.ap-btn-buy:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(22, 163, 74, 0.4); }
/* Burger mobile */
.ap-burger {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--ap-line); background: var(--ap-bg-soft);
  cursor: pointer; place-items: center; font-size: 19px; color: var(--ap-ink);
}
/* Drawer mobile */
.ap-drawer {
  display: none;
}
@media (max-width: 1080px) {
  .ap-menu { display: none; }
  .ap-burger { display: grid; }
}
@media (max-width: 1080px) {
  .ap-header-inner { gap: 10px; padding: 10px 14px; }
  .ap-logo-name { font-size: 15px; }
  .ap-actions { flex: 1 1 100%; display: flex; gap: 8px; }
  .ap-actions .ap-search { flex: 1; min-width: 0; }
  .ap-actions .ap-btn-buy { display: none; }
  /* carrito/cuenta en la primera fila junto al logo (no debajo del buscador) */
  .ap-header-inner .mc-nav-actions { order: -1; margin-left: auto; }
  .ap-header-inner .ap-burger { order: -2; }
  /* ============ DRAWER MENÚ (izquierda) ============ */
  .ap-drawer {
    display: block; position: fixed; inset: 0; z-index: 200;
    visibility: hidden; pointer-events: none;
  }
  .ap-drawer-backdrop {
    position: absolute; inset: 0; background: rgba(17, 24, 39, 0.5);
    opacity: 0; transition: opacity .25s;
  }
  .ap-drawer-panel {
    position: absolute; top: 0; left: 0; bottom: 0; width: min(320px, 74vw);
    background: #fff; transform: translateX(-104%);
    transition: transform .32s cubic-bezier(.22,.9,.35,1);
    display: flex; flex-direction: column;
    box-shadow: 10px 0 40px rgba(17, 24, 39, 0.22);
  }
  .ap-drawer.open { visibility: visible; pointer-events: auto; }
  .ap-drawer.open .ap-drawer-backdrop { opacity: 1; }
  .ap-drawer.open .ap-drawer-panel { transform: translateX(0); }
  .ap-drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 16px 12px;
  }
  .ap-drawer-brand {
    font-family: var(--ap-font); font-weight: 800; font-size: 15px;
    color: var(--ap-ink); letter-spacing: .02em; white-space: nowrap;
  }
  .ap-drawer-brand em { font-style: normal; color: var(--ap-green-2); }
  .ap-drawer-close {
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--ap-line);
    background: var(--ap-bg-soft); font-size: 16px; cursor: pointer; color: var(--ap-ink);
  }
  /* Buscador del drawer */
  .ap-drawer-search {
    display: flex; align-items: center; gap: 8px;
    margin: 0 14px 12px; padding: 11px 13px;
    background: var(--ap-bg-soft); border: 1px solid var(--ap-line);
    border-radius: 12px;
  }
  .ap-drawer-search input {
    border: 0; outline: 0; background: transparent; flex: 1; min-width: 0;
    font-family: var(--ap-font); font-size: 13.5px; color: var(--ap-ink);
  }
  .ap-drawer-search-ico { font-size: 14px; opacity: .7; }
  /* Tabs MENÚ | CATEGORIAS con línea amarilla */
  .ap-drawer-tabs {
    display: flex; margin: 0 14px; border-bottom: 1px solid var(--ap-line);
  }
  .ap-drawer-tab {
    flex: 1; padding: 11px 6px 10px; background: none; border: 0;
    font-family: var(--ap-font); font-weight: 700; font-size: 12.5px;
    letter-spacing: .06em; color: var(--ap-muted); position: relative; cursor: pointer;
    transition: color .18s;
  }
  .ap-drawer-tab.active { color: var(--ap-ink); }
  .ap-drawer-tab::after {
    content: ""; position: absolute; left: 10%; right: 10%; bottom: -1px; height: 3px;
    border-radius: 3px 3px 0 0; background: transparent; transition: background .18s;
  }
  .ap-drawer-tab.active::after { background: var(--ap-yellow); }
  .ap-drawer-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .ap-drawer-panel-tab { display: none; padding: 4px 0 20px; }
  .ap-drawer-panel-tab.active { display: block; }
  .ap-drawer-panel-tab a {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 16px; font-family: var(--ap-font); font-weight: 600; font-size: 13.5px;
    color: var(--ap-ink); text-decoration: none; border-bottom: 1px solid var(--ap-line);
    transition: background .15s, color .15s;
  }
  .ap-drawer-panel-tab a:last-child { border-bottom: none; }
  .ap-drawer-panel-tab a .ap-drawer-ico {
    width: 26px; height: 26px; object-fit: contain; flex-shrink: 0;
    border-radius: 8px; background: var(--ap-bg-soft);
    border: 1px solid var(--ap-line); padding: 2px;
    transition: transform .18s, border-color .18s;
  }
  .ap-drawer-panel-tab a:hover .ap-drawer-ico { transform: scale(1.08); border-color: var(--ap-green-2); }
  .ap-drawer-panel-tab a:hover { color: var(--ap-green-2); background: var(--ap-green-soft); }
  .ap-drawer-panel-tab .ap-drawer-title {
    display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .14em;
    text-transform: uppercase; color: var(--ap-muted); padding: 16px 16px 5px;
  }
  /* ============ BARRA INFERIOR MÓVIL ============ */
  .mb-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    background: #fff; border-top: 1px solid var(--ap-line);
    box-shadow: 0 -6px 20px rgba(17, 24, 39, 0.08);
  }
  .mb-item {
    position: relative; flex: 1; display: flex; flex-direction: column;
    align-items: center; gap: 2px; padding: 9px 6px 10px;
    background: none; border: 0; cursor: pointer;
    font-family: var(--ap-font); font-size: 10px; font-weight: 700;
    color: var(--ap-muted); text-decoration: none; transition: color .18s;
  }
  .mb-item:hover, .mb-item:active { color: var(--ap-green-2); }
  .mb-ico { font-size: 20px; line-height: 1; }
  .mb-cart-count {
    position: absolute; top: 4px; right: calc(50% - 22px);
    min-width: 17px; height: 17px; padding: 0 4px; border-radius: 100px;
    background: var(--ap-yellow); color: #111; font-size: 10px; font-weight: 800;
    display: grid; place-items: center; font-family: var(--ap-font);
    border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18);
  }
  body { padding-bottom: 58px; }
  /* WhatsApp flotante por encima de la barra inferior (esquina inferior izquierda) */
  .mb-bar { display: flex; }
  .wa-float { left: 16px; right: auto; bottom: 74px; }
  .wa-float svg { width: 30px; height: 30px; }
  .wa-float-count {
    position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px;
    border-radius: 100px; background: var(--red, #ef4444); color: #fff;
    font-size: 10.5px; font-weight: 800; display: grid; place-items: center;
    font-family: var(--ap-font); padding: 0 4px; border: 2px solid #fff;
  }
  /* Toast por encima de la barra inferior */
  .mc-toast { bottom: 76px; }
}

/* ============================================================
   1b) CARRUSEL DE CATEGORÍAS (scroll horizontal + flechas + indicador)
   ============================================================ */
.ap-cats-car {
  max-width: 1280px; margin: 16px auto 0; padding: 0 22px;
}
.ap-cats-car-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.ap-cats-car-head h2 {
  font-family: var(--ap-font); font-weight: 800; font-size: 20px; color: var(--ap-ink); margin: 0;
}
.ap-cats-car-nav { display: flex; gap: 8px; }
.ap-cats-car-nav button {
  width: 36px; height: 36px; border-radius: 100px; border: 1px solid var(--ap-line);
  background: #fff; color: var(--ap-ink); font-size: 16px; cursor: pointer;
  display: grid; place-items: center; transition: border-color .18s, background .18s, opacity .18s;
}
.ap-cats-car-nav button:hover:not(:disabled) { border-color: var(--ap-green-2); background: var(--ap-green-soft); }
.ap-cats-car-nav button:disabled { opacity: .35; cursor: default; }
.ap-cats-car-track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; padding-bottom: 4px;
  scrollbar-width: none;
}
.ap-cats-car-track::-webkit-scrollbar { display: none; }
.ap-catcard {
  flex: 0 0 118px; scroll-snap-align: start;
  background: #fff; border: 1px solid var(--ap-line); border-radius: 16px;
  padding: 10px 8px 12px; text-align: center; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ap-catcard:hover { transform: translateY(-3px); box-shadow: var(--ap-shadow-sm); border-color: var(--ap-green-2); }
.ap-catcard-icon { font-size: 30px; line-height: 1; }
.ap-catcard-media {
  width: 74px; height: 74px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, #ffffff, #f0fdf4);
  border: 1px solid var(--ap-line); display: grid; place-items: center;
}
.ap-catcard-media img { width: 82%; height: 82%; object-fit: contain; transition: transform .3s; }
.ap-catcard:hover .ap-catcard-media img { transform: scale(1.1); }
.ap-catcard-name {
  font-family: var(--ap-font); font-weight: 700; font-size: 13px; color: var(--ap-ink);
}
.ap-catcard-count { font-size: 11px; color: var(--ap-muted); }
/* Indicador: línea gris base + segmento amarillo */
.ap-cats-car-ind {
  margin-top: 12px; height: 4px; border-radius: 100px;
  background: #ececec; overflow: hidden;
}
.ap-cats-car-ind span {
  display: block; height: 100%; width: 0; border-radius: 100px;
  background: var(--ap-yellow); transition: width .15s ease-out;
}
/* Desktop: todas las categorías visibles en fila (sin scroll) */
@media (min-width: 901px) {
  .ap-cats-car-track { flex-wrap: wrap; overflow: visible; }
  .ap-catcard { flex: 0 0 calc(16.666% - 12px); }
  .ap-cats-car-nav { display: none; }
  .ap-cats-car-ind { display: none; }
}

/* WhatsApp flotante (esquina inferior izquierda, icono blanco + contador rojo) */
.wa-float {
  left: 22px; right: auto;
  width: 58px; height: 58px;
  background: #25d366;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4);
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float-count {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px;
  border-radius: 100px; background: #ef4444; color: #fff;
  font-size: 10.5px; font-weight: 800; display: grid; place-items: center;
  font-family: var(--ap-font); padding: 0 4px; border: 2px solid #fff;
}

/* ============================================================
   2) CARRUSEL HERO
   ============================================================ */
.ap-carousel {
  position: relative; max-width: 1280px; margin: 18px auto 0;
  border-radius: 22px; overflow: hidden;
  box-shadow: var(--ap-shadow);
  /* Banner central (piedritas) — imagen desplazada ~1 cm hacia abajo para que quede ajustada */
  background: url('img/home/Banner_piedritas_mobile.webp') center calc(50% + 37px)/cover no-repeat #14532d;
}
.ap-carousel::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 35, 20, .82) 0%, rgba(10, 35, 20, .55) 45%, rgba(10, 35, 20, .30) 100%);
}
.ap-slides { position: relative; height: clamp(340px, 46vw, 520px); }
.ap-slide {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  display: flex; align-items: center; padding: 0 clamp(24px, 6vw, 72px);
  transition: opacity .7s ease;
}
.ap-slide.active { opacity: 1; pointer-events: auto; }
/* Transparencias verdes livianas sobre la foto real (legibilidad sin taparla) */
.ap-slide-1 { background: linear-gradient(120deg, rgba(20, 83, 45, .45) 0%, rgba(20, 83, 45, .15) 60%, transparent 100%); }
.ap-slide-2 { background: linear-gradient(120deg, rgba(15, 61, 34, .45) 0%, rgba(15, 61, 34, .15) 60%, transparent 100%); }
.ap-slide-3 { background: linear-gradient(120deg, rgba(28, 63, 46, .45) 0%, rgba(28, 63, 46, .15) 60%, transparent 100%); }
.ap-slide-4 { background: linear-gradient(120deg, rgba(18, 58, 36, .45) 0%, rgba(18, 58, 36, .15) 60%, transparent 100%); }
.ap-slide::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 82% 30%, rgba(255,255,255,.14), transparent 42%);
}
.ap-slide-copy { position: relative; z-index: 2; max-width: 560px; color: #fff; }
.ap-slide-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  padding: 7px 14px; border-radius: 100px; backdrop-filter: blur(6px);
}
.ap-slide h2 {
  font-family: var(--ap-font); font-weight: 800; line-height: 1.05;
  font-size: clamp(30px, 5vw, 56px); margin: 18px 0 12px; letter-spacing: -.01em;
}
.ap-slide p { font-size: clamp(14px, 1.6vw, 18px); opacity: .92; margin: 0 0 26px; font-weight: 400; }
.ap-slide-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ap-font); font-weight: 700; font-size: 14px;
  background: #fff; color: var(--ap-green-dark); text-decoration: none;
  padding: 14px 26px; border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
  transition: transform .18s, box-shadow .18s;
}
.ap-slide-cta:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 30px rgba(0,0,0,.3); }
.ap-slide-emoji {
  position: absolute; right: clamp(10px, 5vw, 70px); bottom: -6px;
  font-size: clamp(120px, 24vw, 260px); opacity: .16; z-index: 1; pointer-events: none;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.25));
  transform: rotate(-8deg);
}
/* Zonas táctiles invisibles para navegar el carrusel (15% izq/der) */
.ap-car-touch {
  position: absolute; top: 0; bottom: 0; z-index: 10;
  width: 15%; cursor: pointer;
  background: transparent; border: none; outline: none;
  -webkit-tap-highlight-color: transparent;
}
.ap-car-touch:hover { background: rgba(255,255,255,.06); }
.ap-car-touch:active { background: rgba(255,255,255,.12); }
.ap-car-touch-left { left: 0; }
.ap-car-touch-right { right: 0; }
/* Indicadores */
.ap-car-dots {
  position: absolute; bottom: 16px; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: center; gap: 8px;
}
.ap-car-dot {
  width: 9px; height: 9px; border-radius: 100px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.4); transition: width .25s, background .25s; padding: 0;
}
.ap-car-dot.active { width: 26px; background: #fff; }

/* ============================================================
   3) SECCIONES GENÉRICAS
   ============================================================ */
.ap-section { max-width: 1280px; margin: 0 auto; padding: 58px 22px 10px; }
.ap-section-head { text-align: center; margin-bottom: 34px; }
.ap-section-kicker {
  font-family: var(--ap-font); font-size: 12px; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ap-green-2);
}
.ap-section-head h2 {
  font-family: var(--ap-font); font-weight: 800; font-size: clamp(24px, 3.4vw, 38px);
  color: var(--ap-ink); margin: 8px 0 8px; letter-spacing: -.01em;
}
.ap-section-head p { color: var(--ap-muted); font-size: 15px; max-width: 640px; margin: 0 auto; }
.ap-reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.ap-reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   4) ACCESOS RÁPIDOS POR ANIMAL
   ============================================================ */
.ap-animals { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.ap-animal {
  position: relative; border-radius: var(--ap-radius); overflow: hidden;
  text-decoration: none; background: #fff; border: 1px solid var(--ap-line);
  box-shadow: var(--ap-shadow-sm); transition: transform .24s, box-shadow .24s;
  min-height: 190px; display: flex; flex-direction: column;
}
.ap-animal:hover { transform: translateY(-6px); box-shadow: var(--ap-shadow); }
.ap-animal-media {
  flex: 1; display: grid; place-items: center; padding: 16px;
  background: linear-gradient(160deg, #ffffff, #f0fdf4);
}
.ap-animal-media img { width: 86%; height: 96px; object-fit: contain; transition: transform .4s; }
.ap-animal:hover .ap-animal-media img { transform: scale(1.08); }
.ap-animal-body {
  padding: 13px 14px 15px; text-align: center;
  background: linear-gradient(120deg, #14532d, #15803d); color: #fff;
}
.ap-animal-body h3 { font-family: var(--ap-font); font-size: 15px; font-weight: 800; margin: 0 0 3px; }
.ap-animal-body span { font-size: 11px; opacity: .82; display: block; }

/* ============================================================
   5) CATEGORÍAS DESTACADAS
   ============================================================ */
.ap-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.ap-cat {
  position: relative; border-radius: var(--ap-radius); overflow: hidden;
  text-decoration: none; display: block; min-height: 150px;
  background: linear-gradient(160deg, #ffffff, #f0fdf4);
  border: 1px solid var(--ap-line); box-shadow: var(--ap-shadow-sm);
  transition: transform .24s, box-shadow .24s;
}
.ap-cat:hover { transform: translateY(-5px); box-shadow: var(--ap-shadow); }
.ap-cat-icon { font-size: 40px; text-align: center; padding: 24px 10px 4px; transition: transform .3s; }
.ap-cat:hover .ap-cat-icon { transform: scale(1.14); }
.ap-cat-name {
  display: block; text-align: center; font-family: var(--ap-font);
  font-weight: 700; font-size: 14px; color: var(--ap-ink); padding: 8px 10px 14px;
}
.ap-cat-name small { display: block; font-size: 11px; color: var(--ap-muted); font-weight: 500; margin-top: 3px; }

/* ============================================================
   7) TARJETAS DE PRODUCTO (e-commerce profesional)
   ============================================================ */
.ap-products { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.ap-product {
  position: relative; background: #fff; border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--ap-shadow-sm); transition: transform .24s, box-shadow .24s;
}
.ap-product:hover { transform: translateY(-6px); box-shadow: var(--ap-shadow); }
.ap-product-media {
  position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center;
  background: linear-gradient(160deg, #ffffff, #f0fdf4); overflow: hidden;
}
.ap-product-media img { width: 82%; height: 82%; object-fit: contain; transition: transform .45s; }
.ap-product:hover .ap-product-media img { transform: scale(1.07); }
.ap-product-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; z-index: 3; }
.ap-pbadge {
  font-family: var(--ap-font); font-size: 10px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 100px; color: #fff;
}
.ap-pbadge.destacado { background: linear-gradient(120deg, #f97316, #ea580c); }
.ap-pbadge.oferta { background: linear-gradient(120deg, #ef4444, #dc2626); }
.ap-pbadge.nuevo { background: linear-gradient(120deg, #22c55e, #15803d); }
.ap-pbadge.vendido { background: linear-gradient(120deg, #f59e0b, #d97706); }
.ap-fav {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 34px; height: 34px; border-radius: 100px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); font-size: 15px; color: var(--ap-muted);
  box-shadow: 0 4px 12px rgba(0,0,0,.12); transition: transform .18s, color .18s;
}
.ap-fav:hover { transform: scale(1.12); }
.ap-fav.on { color: #ef4444; }
.ap-product-stock {
  position: absolute; bottom: 8px; left: 10px; z-index: 3;
  font-size: 10px; font-weight: 700; color: var(--ap-green-2);
  background: rgba(255,255,255,.9); padding: 3px 8px; border-radius: 100px;
  display: inline-flex; align-items: center; gap: 5px;
}
.ap-product-stock.sin { color: var(--ap-muted); }
.ap-product-body { padding: 13px 14px 15px; display: flex; flex-direction: column; flex: 1; }
.ap-product-brand { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ap-green-2); }
.ap-product-name {
  font-family: var(--ap-font); font-size: 13px; font-weight: 700; color: var(--ap-ink);
  margin: 4px 0 3px; line-height: 1.35; min-height: 2.7em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ap-product-pres { font-size: 11.5px; color: var(--ap-muted); margin-bottom: 8px; }
.ap-product-prices { margin-top: auto; }
.ap-product-price {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.ap-price-now { font-family: var(--ap-font); font-weight: 800; font-size: 17px; color: var(--ap-ink); }
.ap-price-old { font-size: 12px; color: var(--ap-muted); text-decoration: line-through; }
.ap-price-dto {
  font-family: var(--ap-font); font-size: 10.5px; font-weight: 800; color: #fff;
  background: #ef4444; border-radius: 100px; padding: 2px 7px;
}
.ap-price-wholesale {
  margin-top: 5px; font-size: 11px; color: var(--ap-green-dark); font-weight: 700;
  background: var(--ap-green-soft); border: 1px dashed rgba(34,197,94,.5);
  border-radius: 8px; padding: 4px 8px; display: inline-block;
}
.ap-product-actions { margin-top: 10px; display: flex; gap: 8px; }
.ap-add {
  flex: 1; font-family: var(--ap-font); font-weight: 700; font-size: 12.5px;
  border: 0; border-radius: 11px; padding: 11px 10px; cursor: pointer;
  background: linear-gradient(135deg, #22c55e, #15803d); color: #fff;
  transition: transform .16s, box-shadow .16s; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.ap-add:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(22,163,74,.32); }
.ap-add:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.ap-add.added { background: #14532d; }
.ap-qty {
  display: inline-flex; align-items: center; border: 1px solid var(--ap-line);
  border-radius: 11px; overflow: hidden; background: var(--ap-bg-soft);
}
.ap-qty button { width: 28px; height: 38px; border: 0; background: none; font-size: 15px; font-weight: 700; color: var(--ap-green-dark); cursor: pointer; }
.ap-qty input { width: 30px; border: 0; text-align: center; font-family: var(--ap-font); font-weight: 700; font-size: 13px; background: transparent; outline: 0; }
.ap-product-view {
  font-size: 11.5px; font-weight: 700; color: var(--ap-green-dark);
  text-align: center; padding: 7px 0 0; cursor: pointer; text-decoration: none;
}
.ap-product-view:hover { text-decoration: underline; }
.ap-view-all {
  display: block; width: fit-content; margin: 30px auto 0;
  font-family: var(--ap-font); font-weight: 700; font-size: 13.5px; text-decoration: none;
  background: #fff; color: var(--ap-green-dark); border: 2px solid var(--ap-green-2);
  padding: 12px 26px; border-radius: 14px; transition: all .2s;
}
.ap-view-all:hover { background: var(--ap-green-2); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(22,163,74,.28); }

/* ============================================================
   8) OFERTAS (bloque verde oscuro)
   ============================================================ */
.ap-offers-wrap {
  background: linear-gradient(120deg, #0f3d22, #14532d 50%, #166534);
  margin-top: 58px; padding: 56px 22px;
}
.ap-offers-inner { max-width: 1280px; margin: 0 auto; }
.ap-offers-head { text-align: center; margin-bottom: 30px; }
.ap-offers-head .ap-section-kicker { color: #86efac; }
.ap-offers-head h2 { color: #fff; }
.ap-offers-head p { color: rgba(255,255,255,.75); }
.ap-offers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ap-offers-grid .ap-product { background: #fff; border: 0; }
.ap-offers-grid .ap-price-old { color: #9ca3af; }
/* Contador promocional */
.ap-countdown {
  display: flex; justify-content: center; gap: 12px; margin: 20px 0 8px;
}
.ap-cd-box {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px; min-width: 74px; padding: 10px 8px; text-align: center;
}
.ap-cd-num { font-family: var(--ap-font); font-weight: 800; font-size: 24px; color: #fff; display: block; line-height: 1.1; }
.ap-cd-lab { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75); }

/* ============================================================
   9) MARCAS
   ============================================================ */
.ap-brands { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.ap-brand {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 90px; padding: 18px 12px; border-radius: 16px;
  background: #fff; border: 1.5px solid var(--ap-line); text-decoration: none;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.ap-brand:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(17,24,39,.1); border-color: var(--ap-green-2); }
.ap-brand img { max-width: 82%; max-height: 52px; object-fit: contain; transition: transform .25s; }
.ap-brand:hover img { transform: scale(1.06); }
.ap-brand-name {
  font-family: var(--ap-font); font-weight: 800; font-size: 14px; color: var(--ap-ink);
  letter-spacing: .01em; transition: color .2s;
}
.ap-brand:hover .ap-brand-name { color: var(--ap-green-2); }

/* ============================================================
   10) BANNER MAYORISTA
   ============================================================ */
.ap-wholesale {
  position: relative; max-width: 1280px; margin: 58px auto 0; border-radius: 24px;
  overflow: hidden; padding: clamp(40px, 7vw, 84px) clamp(22px, 5vw, 64px);
  /* Foto real del banner mayorista (scraper_home.py) + overlay verde semi-transparente */
  background: linear-gradient(120deg, rgba(15, 61, 34, .65) 0%, rgba(20, 83, 45, .50) 55%, rgba(22, 101, 52, .40) 120%),
              url('img/home/banner-mayorista.webp') center/cover no-repeat #14532d;
  box-shadow: var(--ap-shadow); color: #fff;
}
.ap-wholesale::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 88% 20%, rgba(255,255,255,.16), transparent 40%),
              radial-gradient(circle at 8% 90%, rgba(34,197,94,.25), transparent 40%);
}
.ap-wholesale-inner { position: relative; z-index: 2; max-width: 640px; }
.ap-wholesale .ap-section-kicker { color: #86efac; }
.ap-wholesale h2 { font-family: var(--ap-font); font-weight: 800; font-size: clamp(26px, 4vw, 44px); margin: 10px 0 12px; line-height: 1.08; }
.ap-wholesale p { font-size: 16px; opacity: .9; margin: 0 0 28px; max-width: 520px; }
.ap-wholesale-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ap-ws-btn {
  font-family: var(--ap-font); font-weight: 700; font-size: 14px; text-decoration: none;
  padding: 14px 26px; border-radius: 14px; transition: transform .18s, box-shadow .18s, background .18s;
}
.ap-ws-btn-primary { background: #fff; color: var(--ap-green-dark); box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.ap-ws-btn-primary:hover { transform: translateY(-2px); background: #ecfdf5; }
.ap-ws-btn-ghost { border: 2px solid rgba(255,255,255,.5); color: #fff; }
.ap-ws-btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.ap-wholesale-emoji { position: absolute; right: clamp(6px, 4vw, 60px); bottom: -8px; font-size: clamp(120px, 18vw, 210px); opacity: .18; transform: rotate(6deg); pointer-events: none; }

/* ============================================================
   11) BLOQUE SEO (keywords alimentos — debajo del banner)
   ============================================================ */
.seo-block { padding-bottom: 40px; }
.seo-block-inner {
  background: #fff; border: 1px solid var(--ap-line); border-radius: var(--ap-radius);
  padding: 34px 30px; box-shadow: var(--ap-shadow-sm);
}
.seo-block h2 {
  font-family: var(--ap-font); font-weight: 800; font-size: clamp(19px, 2.4vw, 26px);
  color: var(--ap-green-dark); margin: 0 0 10px;
}
.seo-block p { color: var(--ap-muted); font-size: 14px; line-height: 1.65; margin: 0 0 18px; }
.seo-block strong { color: var(--ap-ink); }
.seo-links { display: flex; flex-wrap: wrap; gap: 10px; }
.seo-links a {
  font-family: var(--ap-font); font-weight: 700; font-size: 12.5px; text-decoration: none;
  color: var(--ap-green-dark); background: var(--ap-green-soft); border: 1px solid rgba(34,197,94,.35);
  padding: 9px 15px; border-radius: 100px; transition: all .18s;
}
.seo-links a:hover { background: var(--ap-green-2); color: #fff; transform: translateY(-2px); }

/* ============================================================
   12) FOOTER (columnas)
   ============================================================ */
.ap-footer {
  margin-top: 58px; background: #0d2818; color: #cbd5d1;
  padding: 52px 22px 30px;
}
.ap-footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
.ap-footer h4 {
  font-family: var(--ap-font); font-size: 13px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; color: #fff; margin: 0 0 16px;
}
.ap-footer ul { list-style: none; margin: 0; padding: 0; }
.ap-footer li { margin-bottom: 9px; }
.ap-footer a { color: #9fb3a6; text-decoration: none; font-size: 13.5px; transition: color .16s; }
.ap-footer a:hover { color: #22c55e; }
.ap-footer-brand .ap-logo { margin-bottom: 12px; }
.ap-footer-brand .ap-logo-name { color: #fff; }
.ap-footer-brand p { font-size: 13px; color: #9fb3a6; line-height: 1.6; margin: 0 0 14px; max-width: 300px; }
.ap-social { display: flex; gap: 9px; }
.ap-social a {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  font-size: 15px; color: #fff; background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14); transition: transform .18s, background .18s;
}
.ap-social a:hover { transform: translateY(-3px); background: var(--ap-green-2); }
.ap-footer-contact li { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: #9fb3a6; }
.ap-footer-contact li b { color: #e5e7eb; font-weight: 600; }
.ap-footer-bottom {
  max-width: 1280px; margin: 34px auto 0; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: #7d9185;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .ap-animals { grid-template-columns: repeat(3, 1fr); }
  .ap-cats { grid-template-columns: repeat(3, 1fr); }
  .ap-products { grid-template-columns: repeat(4, 1fr); }
  .ap-offers-grid { grid-template-columns: repeat(2, 1fr); }
  .ap-brands { grid-template-columns: repeat(4, 1fr); }

}
@media (max-width: 768px) {
  .ap-section { padding: 42px 16px 8px; }
  .ap-animals { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .ap-animal { min-height: 150px; }
  .ap-cats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ap-products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ap-offers-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ap-offers-wrap { padding: 42px 16px; }
  .ap-brands {
    display: flex; flex-wrap: nowrap; overflow-x: auto;
    gap: 12px; padding-bottom: 8px; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .ap-brand { flex: 0 0 46%; scroll-snap-align: start; }
  .ap-footer-inner { grid-template-columns: 1fr 1fr; gap: 26px; }
  .ap-slides { height: 420px; }
  .ap-slide-emoji { font-size: 120px; }
  .ap-car-touch { width: 12%; }
}
@media (max-width: 480px) {
  .ap-animals { grid-template-columns: repeat(2, 1fr); }
  .ap-products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ap-product-name { font-size: 12px; min-height: 2.6em; }
  .ap-price-now { font-size: 15px; }
  .ap-add { font-size: 11px; padding: 10px 6px; }
  .ap-qty input { width: 26px; }
  .ap-cd-box { min-width: 62px; }
  .ap-footer-inner { grid-template-columns: 1fr; }
  .ap-slides { height: 380px; }
}
