/* ===== Extras del storefront custom ===== */
.search { flex: 1; }
.search input { border: 0; background: transparent; outline: none; width: 100%; font-size: 14px; }

/* Banner promocional (sección banner) */
.promo { border-radius: var(--radius); margin: 18px 0; padding: 16px 22px; color: #1a1a1a; }
.promo-in { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.promo-in .promo-text { font-size: 16px; color: var(--sec-title-color, #1a1a1a); }
.promo-in .promo-text b, .promo-in .promo-text strong { font-weight: 800; color: var(--sec-title-color, #1a1a1a); }

/* Imagen dentro de tarjeta de producto */
.card .thumb img { max-width: 82%; max-height: 82%; object-fit: contain; }
.btn.added { background: var(--accent) !important; color: var(--ink) !important; }
.product .gallery img { max-width: 88%; max-height: 88%; object-fit: contain; }
.pgal-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pgal-t { width: 62px; height: 62px; object-fit: contain; background: #fff; border: 1px solid var(--gray-200); border-radius: 8px; cursor: pointer; padding: 4px; }
.pgal-t.on { border-color: var(--accent); }
.cart-line .thumb2 img { border-radius: 8px; }
.cart-disc-tag { background: var(--accent); color: var(--ink); font-size: 10px; font-weight: 800; padding: 1px 7px; border-radius: 20px; margin-left: 4px; }

/* ===== Ancho por sección ===== */
.secblock.full { width: 100%; }
.secblock.full > .hero { border-radius: 0; margin-left: 0; margin-right: 0; }
/* .hero.hero-fullscreen ya se estira a los bordes por su cuenta (con el truco de
   left:50%/margin negativo, pensado para cuando SÍ hay un .container alrededor). Si
   además la sección está en "Ancho de sección: Página completa" (sin .container),
   ese truco duplicado empuja el hero fuera de pantalla — acá se anula, total el
   ancho completo ya lo da .secblock.full. */
.secblock.full > .hero.hero-fullscreen { left: auto; right: auto; width: 100%; margin-left: 0; margin-right: 0; }
.secblock.full > .hero.hero-banner600 { left: auto; right: auto; width: 100%; margin-left: 0; margin-right: 0; }

/* La primera sección de la home queda pegada al header, sin espacio arriba */
.secblock.first-sec .hero, .secblock.first-sec .heroslider { margin-top: 0; }

/* ===== Reveal: cada sección de la home aparece con fade al entrar en pantalla =====
   store.js activa "reveal-visible" vía IntersectionObserver. Si por lo que sea JS no
   corre (bloqueado, error), el <noscript> de abajo fuerza todo visible — sin eso, sin JS
   la home entera quedaría invisible para siempre. */
.secblock { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.secblock.reveal-visible { opacity: 1; transform: translateY(0); }
/* La primera sección y todo lo visible al cargar aparecen solos con un fade-in suave (sin esperar a JS ni a un scroll). */
.secblock.first-sec, .secblock.reveal-now { opacity: 1; transform: none; transition: none; animation: secblock-in .8s ease-out both; }
.secblock.reveal-now:not(.first-sec) { animation-delay: .18s; }
@keyframes secblock-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .secblock.first-sec, .secblock.reveal-now { animation: none; } }

/* ===== Espaciado (espacio vacío entre secciones de la home) ===== */
.spacer { height: 80px; }
.spacer-poco { height: 24px; } .spacer-bajo { height: 48px; } .spacer-alto { height: 120px; } .spacer-mucho { height: 200px; }
@media (max-width: 760px) { .spacer { height: 48px; } .spacer-poco { height: 16px; } .spacer-bajo { height: 32px; } .spacer-alto { height: 72px; } .spacer-mucho { height: 120px; } }

/* ===== Animaciones de hover (según clase del body) ===== */
.card, .cat-card { transition: transform .18s ease, box-shadow .18s ease; }
.card .thumb img, .cat-card .cat-img { transition: transform .25s ease; }
body.hover-lift .card:hover, body.hover-lift .cat-card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(18,18,18,.14); }
body.hover-zoom .card:hover .thumb img, body.hover-zoom .cat-card:hover .cat-img { transform: scale(1.1); }
body.hover-glow .card:hover, body.hover-glow .cat-card:hover { box-shadow: 0 0 0 2px var(--accent), 0 10px 26px rgba(254,157,23,.30); }
body.hover-none .card:hover, body.hover-none .cat-card:hover { transform: none; box-shadow: none; }

/* ===== Hero slider ===== */
.heroslider { position: relative; overflow: hidden; border-radius: var(--radius); background: #0e1116; margin: 18px 0; aspect-ratio: 16 / 5; }
.secblock.full > .heroslider { border-radius: 0; margin: 0; }
.heroslider.hs-fullscreen { height: 100vh; aspect-ratio: unset !important; }
/* Igual truco que .hero.hero-banner600: ancho completo aunque el slider esté dentro de un
   .container normal, pero con alto fijo de 600px en vez de estirarse a toda la pantalla. */
.heroslider.hs-banner600 { position: relative; left: 50%; right: 50%; width: 100vw; margin-left: -50vw; margin-right: -50vw; height: 600px; aspect-ratio: unset !important; border-radius: 0; }
.secblock.full > .heroslider.hs-banner600 { left: auto; right: auto; width: 100%; margin-left: 0; margin-right: 0; }
.hs-track { width: 100%; height: 100%; }
.anim-fade .hs-track { position: relative; }
.anim-fade .hs-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .7s ease; }
.anim-fade .hs-img.active { opacity: 1; }
.anim-slide .hs-track { display: flex; transition: transform .6s ease; }
.anim-slide .hs-img { flex: 0 0 100%; width: 100%; height: 100%; display: block; }
.hs-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; gap: 9px; justify-content: center; z-index: 3; }
.hs-dot { border: 0; padding: 0; cursor: pointer; transition: all .22s ease; }
/* estilo A: puntos, activo más grande */
.dots-a .hs-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.6); }
.dots-a .hs-dot.active { width: 15px; height: 15px; background: #fff; }
/* estilo B: círculos con borde naranja, activo relleno */
.dots-b .hs-dot { width: 13px; height: 13px; border-radius: 50%; background: transparent; border: 2px solid var(--accent); }
.dots-b .hs-dot.active { background: var(--accent); }
/* estilo C: puntos, activo = cuadradito muy redondeado */
.dots-c .hs-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.6); }
.dots-c .hs-dot.active { width: 26px; border-radius: 7px; background: var(--accent); }

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .container { padding: 0 14px; }
  .header-inner { flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
  .logo { font-size: 19px; gap: 8px; }
  .logo-img { height: 34px; width: 34px; }
  .header .logo-img { height: calc(var(--header-logo-size, 42px) * .8); min-width: calc(var(--header-logo-size, 42px) * .8); max-width: 55vw; }
  .search { order: 3; flex: 1 1 100%; }
  .header-actions { gap: 14px; }
  #nav-menu-group { gap: 16px; }
  .nav a, .drop-toggle { font-size: 14px; }
  .drop-menu { flex-direction: column; left: 0; transform: none; min-width: 210px; }
  .hero { flex-direction: column; align-items: flex-start; text-align: left; padding: 26px 20px; gap: 6px; }
  .hero h1 { font-size: 25px; }
  .hero p { font-size: 14px; }
  .hero .duck { font-size: 60px; align-self: center; }
  .heroslider.hs-banner600 { height: 380px; }
  .perks { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .card .name { font-size: 13px; min-height: 34px; }
  .card .price { font-size: 16px; }
  .section-head h2 { font-size: 20px; }
  .section { margin: 28px 0; }
  .footer .cols { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 26px 16px; }
  .footer .cols > div:first-child { grid-column: 1 / -1; }
  .footer .cols p { max-width: none; }
  .footer .logo { white-space: normal; }
  body:has(.wa-float) .footer { padding-bottom: 110px; }
}
@media (max-width: 420px) {
  .header-actions .label { display: none; }
  .hs-dots { bottom: 10px; }
}
