/* =========================================================
   Corralón Pitty - v0.3.4
   CSS CLEANUP MOBILE FIRST
   Este archivo pisa style.css sin borrarlo todavía.
========================================================= */
/* ===============================
   01 - BASE LIMPIA
================================= */

:root {
  --cp-bg: #f5f8fc;
  --cp-panel: #ffffff;
  --cp-text: #061f53;
  --cp-muted: #667795;
  --cp-brand: #285da8;
  --cp-brand-dark: #1f4b88;
  --cp-line: rgba(40, 93, 168, 0.12);
  --cp-shadow-soft: 0 10px 26px rgba(8, 31, 70, 0.06);
  --cp-radius: 18px;
  --cp-header-mobile: 62px;
  --cp-header-desktop: 78px;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  max-width: 100%;
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  color: var(--cp-text);
  background: linear-gradient(180deg, #ffffff 0%, var(--cp-bg) 100%);
}

img,
svg,
picture {
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}
/* ===============================
   02 - HEADER PC / TABLET / MOBILE
================================= */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--cp-header-desktop);
  padding: 0.55rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--cp-line);
  box-shadow: 0 8px 24px rgba(8, 31, 70, 0.06);
}

body {
  padding-top: var(--cp-header-desktop);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  display: block;
  width: clamp(150px, 13vw, 220px);
  height: auto;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.35rem, 0.9vw, 0.85rem);
  min-width: 0;
}

.desktop-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.5rem 0.55rem;
  color: var(--cp-text);
  border-radius: 999px;
  font-size: clamp(0.72rem, 0.8vw, 0.9rem);
  font-weight: 900;
  white-space: nowrap;
}

.desktop-nav a:hover {
  color: var(--cp-brand);
  background: rgba(40, 93, 168, 0.08);
}

.desktop-nav .nav-cta {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cp-brand), var(--cp-brand-dark));
  padding-inline: 0.9rem;
}
/* ===============================
   03 - HAMBURGUESA
================================= */

.menu-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  border-radius: 999px;
  background: var(--cp-text);
}

/* Menú lateral */
.mobile-menu-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  z-index: 7000;
  display: flex;
  flex-direction: column;
  width: min(320px, 86vw);
  height: 100dvh;
  background: #ffffff;
  border-right: 1px solid var(--cp-line);
  border-radius: 0 22px 22px 0;
  box-shadow: 14px 0 36px rgba(8, 31, 70, 0.18);
  transform: translateX(-110%);
  transition: transform 150ms ease-out;
  overflow-y: auto;
}

.mobile-menu-panel.active {
  transform: translateX(0);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 6900;
  background: rgba(8, 31, 70, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease-out;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0.85rem;
  border-bottom: 1px solid var(--cp-line);
}

.mobile-menu-header img {
  width: 145px;
  height: auto;
}

.mobile-menu-header button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--cp-line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--cp-brand);
  font-size: 1.7rem;
}

.mobile-menu-links {
  display: grid;
  gap: 8px;
  padding: 0.85rem;
}

.mobile-menu-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 0.9rem;
  color: var(--cp-text);
  background: #ffffff;
  border: 1px solid var(--cp-line);
  border-radius: 15px;
  font-size: 0.88rem;
  font-weight: 950;
  text-align: center;
}

.mobile-menu-cta {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--cp-brand), var(--cp-brand-dark)) !important;
}
/* ===============================
   04 - PC CON ZOOM / TABLET
================================= */

@media (max-width: 1180px) {
  .topbar {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    justify-content: center;
    min-height: 74px;
    padding: 0 0.85rem;
  }

  body {
    padding-top: 74px;
  }

  .brand {
    grid-column: 2;
    justify-content: center;
  }

  .brand img {
    width: clamp(155px, 24vw, 200px);
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
    grid-column: 1;
    justify-self: start;
  }
}
/* ===============================
   05 - MOBILE REAL
================================= */

@media (max-width: 760px) {
  body {
    padding-top: var(--cp-header-mobile);
    padding-bottom: 88px;
  }

  .topbar {
    min-height: var(--cp-header-mobile);
    height: var(--cp-header-mobile);
    grid-template-columns: 46px 1fr 46px;
    padding: 0 0.65rem;
  }

  .brand img {
    width: clamp(140px, 42vw, 158px);
  }

  body[data-page="promos"] .brand img,
  body[data-page="temporada"] .brand img,
  body[data-page="consulta"] .brand img {
    display: none;
  }

  body[data-page="promos"] .brand::after {
    content: "Promociones";
  }

  body[data-page="temporada"] .brand::after {
    content: "Temporada";
  }

  body[data-page="consulta"] .brand::after {
    content: "Consulta";
  }

  body[data-page="promos"] .brand::after,
  body[data-page="temporada"] .brand::after,
  body[data-page="consulta"] .brand::after {
    color: var(--cp-text);
    font-size: 1rem;
    font-weight: 950;
    letter-spacing: -0.03em;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .mobile-menu-panel {
    width: min(300px, 86vw);
  }

  body.menu-open,
  body.cart-open {
    overflow: hidden;
  }
}
/* ===============================
   06 - CARRITO
================================= */

.floating-cart,
.floating-cart-button {
  overflow: visible;
}

@media (min-width: 761px) {
  .floating-cart {
    position: fixed;
    top: auto;
    right: auto;
    bottom: clamp(16px, 2vw, 28px);
    left: clamp(16px, 2.4vw, 32px);
    z-index: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: auto;
    min-width: 154px;
    min-height: 58px;
    padding: 0.7rem 0.95rem;
    color: var(--cp-text);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(7, 91, 216, 0.14);
    border-radius: 999px;
    box-shadow: 0 14px 35px rgba(8, 31, 70, 0.16);
  }

  .floating-cart span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--cp-brand);
  }

  .floating-cart span img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
  }

  .floating-cart strong {
    display: inline-flex;
    color: var(--cp-text);
    font-size: 0.92rem;
    font-weight: 950;
  }

  .floating-cart em {
    position: absolute;
    top: -8px;
    right: -6px;
    display: grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    color: #ffffff;
    background: #ef233c;
    border: 2px solid #ffffff;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 950;
    font-style: normal;
  }
}

@media (max-width: 760px) {
  .floating-cart {
    display: none !important;
  }
}
/* ===============================
   07 - BARRA INFERIOR MOBILE
================================= */

.mobile-app-nav,
.mobile-app-nav.mobile-app-nav-pro {
  display: none;
}

@media (max-width: 760px) {
  .mobile-app-nav.mobile-app-nav-pro {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 2600;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    min-height: 60px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(40, 93, 168, 0.14);
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(8, 31, 70, 0.16);
  }

  .mobile-app-nav.mobile-app-nav-pro a,
  .mobile-app-nav.mobile-app-nav-pro button {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    min-height: 48px;
    color: #667085;
    background: transparent;
    border: 0;
    border-radius: 16px;
    font-size: 0.67rem;
    font-weight: 900;
    text-align: center;
  }

  .mobile-app-nav.mobile-app-nav-pro .active {
    color: var(--cp-brand);
    background: #eaf3ff;
  }

  .mobile-app-nav.mobile-app-nav-pro img {
    width: 20px;
    height: 20px;
    object-fit: contain;
  }

  body.menu-open .mobile-app-nav,
  body.cart-open .mobile-app-nav {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(120%);
  }
}

/* =========================================================
   08 - PORTADA HOME
   Fuente única de estilos para la portada principal.

   PC / TABLET:
   - La presentación ocupa la primera pantalla.
   - Las tarjetas informativas quedan debajo del primer scroll.

   MOBILE:
   - Se mantiene compacta para no forzar una portada de 100vh.
========================================================= */

body[data-page="home"] .home-hero-centered {
  width: 100%;
  padding: 0 0 2rem;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(40, 93, 168, 0.09),
      transparent 36rem
    ),
    linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
  border-bottom: 1px solid var(--cp-line);
}

body[data-page="home"] .home-hero-wrap {
  width: min(1320px, calc(100% - 1rem));
  margin: 0 auto;
  display: grid;
  gap: 1.4rem;
}

body[data-page="home"] .home-hero-copy {
  width: min(920px, 100%);
  min-height: calc(100svh - var(--cp-header-mobile));
  margin: 0 auto;
  padding: 1.5rem 0;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
}

body[data-page="home"] .home-hero-copy .eyebrow {
  margin-left: auto;
  margin-right: auto;
}

body[data-page="home"] .home-hero-copy h1 {
  max-width: 930px;
  margin: 0;
  color: var(--cp-text);
  font-size: clamp(2.25rem, 11vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

body[data-page="home"] .home-hero-copy .hero-text {
  width: min(720px, 100%);
  margin: 1rem auto 0;
  color: var(--cp-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

body[data-page="home"] .home-hero-copy .hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  width: 100%;
  margin-top: 1.35rem;
}

body[data-page="home"] .home-hero-copy .hero-actions .btn {
  width: 100%;
}

body[data-page="home"] .home-feature-visuals {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

body[data-page="home"] .home-feature-visuals article {
  min-width: 0;
  background:
    radial-gradient(
      circle at 18% 14%,
      rgba(40, 93, 168, 0.08),
      transparent 12rem
    ),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--cp-line);
  box-shadow: var(--cp-shadow-soft);
}

body[data-page="home"] .home-feature-image {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ffffff, #e8f3ff);
  border: 1px solid var(--cp-line);
  box-shadow: 0 10px 24px rgba(40, 93, 168, 0.1);
}

body[data-page="home"] .home-feature-image img {
  display: block;
  object-fit: contain;
}

body[data-page="home"] .home-feature-visuals h3 {
  color: var(--cp-text);
}

body[data-page="home"] .home-feature-visuals p {
  color: var(--cp-muted);
}

/* Portada de pantalla completa desde tablet / notebook */
@media (min-width: 761px) {

  body[data-page="home"] .home-hero-centered {
    padding: 0 0 clamp(3rem, 5vw, 4.5rem);
  }

  body[data-page="home"] .home-hero-wrap {
    width: min(1320px, calc(100% - clamp(2rem, 5vw, 5rem)));
    gap: clamp(2rem, 4vw, 3rem);
  }

  body[data-page="home"] .home-hero-copy {
    min-height: calc(100svh - 74px);
    padding: clamp(2rem, 4vh, 3rem) 0;
  }

  body[data-page="home"] .home-hero-copy h1 {
    max-width: 960px;
    font-size: clamp(3rem, 4.4vw, 4.9rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
  }

  body[data-page="home"] .home-hero-copy .hero-text {
    margin-top: 1.2rem;
    font-size: clamp(1rem, 1.15vw, 1.08rem);
    line-height: 1.6;
  }

  body[data-page="home"] .home-hero-copy .hero-actions {
    display: flex;
    grid-template-columns: none;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: auto;
    margin-top: 1.5rem;
  }

  body[data-page="home"] .home-hero-copy .hero-actions .btn {
    width: auto;
  }

  body[data-page="home"] .home-feature-visuals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.35rem);
  }

  body[data-page="home"] .home-feature-visuals article {
    min-height: 240px;
    padding: clamp(1.2rem, 2vw, 1.55rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    border-radius: 26px;
  }

  body[data-page="home"] .home-feature-image {
    width: 82px;
    height: 82px;
    margin: 0 0 1.1rem;
    border-radius: 24px;
  }

  body[data-page="home"] .home-feature-image img {
    width: 42px;
    height: 42px;
  }

  body[data-page="home"] .home-feature-visuals h3 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.05rem, 1.2vw, 1.22rem);
    line-height: 1.15;
  }

  body[data-page="home"] .home-feature-visuals p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.48;
  }

}

/* Header desktop completo mide 78px */
@media (min-width: 1280px) {
  body[data-page="home"] .home-hero-copy {
    min-height: calc(100svh - var(--cp-header-desktop));
  }
}


/* ===============================
   09 - CATÁLOGO MOBILE DOS COLUMNAS
================================= */

@media (max-width: 760px) {

  body[data-page="home"] .catalog-shell {
    width: calc(100% - 1rem) !important;
    margin: 0.9rem auto 0 !important;
    padding: 0.85rem !important;
    border-radius: 22px !important;
  }

  body[data-page="home"] .products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  body[data-page="home"] .product-card.product-card-clean {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;

    min-width: 0 !important;
    width: 100% !important;
    min-height: 245px !important;
    height: auto !important;

    overflow: hidden !important;
    border-radius: 17px !important;
  }

  body[data-page="home"]
  .product-card.product-card-clean
  .product-image-clean {
    grid-column: auto !important;

    width: 100% !important;
    min-width: 0 !important;

    height: 110px !important;
    min-height: 110px !important;

    display: grid !important;
    place-items: center !important;

    padding: 0.5rem !important;

    background: #f7faff !important;

    border-right: 0 !important;
    border-bottom: 1px solid rgba(40, 93, 168, 0.08) !important;
  }

  body[data-page="home"]
  .product-card.product-card-clean
  .product-image-clean img {
    width: 90px !important;
    max-width: 90px !important;

    height: 90px !important;
    max-height: 90px !important;

    object-fit: contain !important;
  }

  body[data-page="home"]
  .product-card.product-card-clean
  .product-body-clean {

    position: relative !important;
    grid-column: auto !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;

    flex: 1 1 auto !important;

    gap: 0.3rem !important;

    width: 100% !important;
    min-height: 160px !important;
    padding-bottom: 3rem !important;

    padding: 0.65rem !important;
  }

  body[data-page="home"]
  .product-card.product-card-clean h3 {
    display: -webkit-box !important;

    min-height: 2.3em !important;
    margin: 0 !important;

    overflow: hidden !important;

    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;

    color: var(--cp-text) !important;

    font-size: 0.8rem !important;
    line-height: 1.15 !important;
    font-weight: 950 !important;
  }

  body[data-page="home"] .product-meta-clean {
    display: -webkit-box !important;

    min-height: 2.25em !important;
    margin: 0 !important;

    overflow: hidden !important;

    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;

    color: var(--cp-muted) !important;

    font-size: 0.65rem !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
  }

  body[data-page="home"] .product-description-clean {
    display: -webkit-box !important;

    margin: 0.15rem 0 0 !important;
    padding-right: 2.5rem !important;

    overflow: hidden !important;

    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;

    color: var(--cp-muted) !important;

    font-size: 0.67rem !important;
    line-height: 1.3 !important;
  }

  body[data-page="home"] .product-bottom-clean {
    position: absolute !important;

    right: 0.65rem !important;
    bottom: 0.65rem !important;

    display: block !important;

    width: auto !important;
    min-height: auto !important;

    margin: 0 !important;
    padding: 0 !important;
  }

  body[data-page="home"] .btn-add-clean {
    display: grid !important;
    place-items: center !important;

    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;

    padding: 0 !important;

    color: #ffffff !important;

    background: linear-gradient(
      135deg,
      var(--cp-brand),
      var(--cp-brand-dark)
    ) !important;

    border: 0 !important;
    border-radius: 50% !important;

    font-size: 1.4rem !important;
    line-height: 1 !important;
    font-weight: 900 !important;

    box-shadow: 0 6px 14px rgba(40, 93, 168, 0.2) !important;
  }

}
/* =========================================================
   v0.3.4 - HEADER RESPONSIVE DEFINITIVO

   1280px o más:
   - Navegación completa de escritorio.

   761px a 1279px:
   - Menú hamburguesa.
   - Logo centrado.
   - Sin barra inferior mobile.

   760px o menos:
   - Header mobile.
   - Hamburguesa de tres líneas.
   - Barra inferior mobile.
========================================================= */
/* ---------------------------------------------------------
   REGLAS COMPARTIDAS PARA TABLET Y CELULAR
--------------------------------------------------------- */

@media (max-width: 1279px) {

  .topbar {
    background: #ffffff !important;

    /* Evita suavizado extra por composición gráfica */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Eliminar posiciones y transformaciones antiguas del logo */

  .topbar .brand {
    position: static !important;

    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;

    transform: none !important;

    grid-column: 2 !important;
    grid-row: 1 !important;

    justify-self: center !important;
    align-self: center !important;
    justify-content: center !important;

    width: 100% !important;
    margin: 0 !important;
  }

  .topbar .brand img {
    height: auto !important;
    object-fit: contain !important;

    transform: none !important;
    filter: none !important;
  }

  /* Hamburguesa real de tres líneas */

  .topbar .menu-toggle,
  .menu-toggle {
    display: flex !important;
    flex-direction: column !important;

    align-items: center !important;
    justify-content: center !important;

    gap: 5px !important;

    position: static !important;

    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;

    inset: auto !important;
    transform: none !important;

    grid-column: 1 !important;
    grid-row: 1 !important;

    justify-self: start !important;
    align-self: center !important;

    width: 42px !important;
    height: 42px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 12px !important;

    background: transparent !important;
    box-shadow: none !important;

    visibility: visible !important;
    pointer-events: auto !important;

    overflow: visible !important;
  }

  .topbar .menu-toggle span,
  .menu-toggle span {
    display: block !important;
    flex: 0 0 2px !important;

    width: 20px !important;
    height: 2px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 999px !important;

    background: #061f53 !important;

    opacity: 1 !important;
    transform: none !important;
    transform-origin: center !important;

    transition:
      transform 180ms ease,
      opacity 180ms ease !important;
  }

  /* Animación de hamburguesa a X */

  .topbar .menu-toggle.open span:nth-child(1),
  .menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg) !important;
  }

  .topbar .menu-toggle.open span:nth-child(2),
  .menu-toggle.open span:nth-child(2) {
    opacity: 0 !important;
    transform: none !important;
  }

  .topbar .menu-toggle.open span:nth-child(3),
  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg) !important;
  }
}
/* ---------------------------------------------------------
   TABLET, NOTEBOOK Y ESCRITORIO CON ZOOM
--------------------------------------------------------- */

@media (min-width: 761px) and (max-width: 1279px) {

  body {
    padding-top: 74px !important;
    padding-bottom: 0 !important;
  }

  .topbar {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) 48px !important;

    align-items: center !important;
    justify-content: center !important;

    gap: 0 !important;

    width: 100% !important;
    min-height: 74px !important;
    height: 74px !important;

    padding: 0 0.85rem !important;
  }

  .topbar .brand img {
    width: 192px !important;
    max-width: calc(100vw - 150px) !important;
  }

  /* Ocultar navegación de escritorio */

  .topbar .desktop-nav,
  .topbar .nav.desktop-nav,
  .topbar nav.desktop-nav,
  .topbar .special-simple-nav {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Habilitar panel lateral */

  .mobile-menu-panel {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .nav-overlay {
    display: block !important;
    visibility: visible !important;
    pointer-events: none !important;
  }

  .nav-overlay.active {
    pointer-events: auto !important;
  }

  /* En tablet/notebook no mostrar barra inferior */

  .mobile-app-nav,
  .mobile-app-nav.mobile-app-nav-pro {
    display: none !important;
  }

  body.menu-open {
    overflow: hidden !important;
    touch-action: none !important;
  }
}
/* ---------------------------------------------------------
   CELULAR
--------------------------------------------------------- */

@media (max-width: 760px) {

  .topbar .brand img {
    width: 158px !important;
    max-width: calc(100vw - 120px) !important;
  }

  .topbar .menu-toggle,
  .menu-toggle {
    width: 40px !important;
    height: 40px !important;
  }

  .topbar .menu-toggle span,
  .menu-toggle span {
    width: 20px !important;
  }

  /*
    Mantener los títulos especiales de las páginas.
    En estas páginas se oculta el logo y aparece el nombre.
  */

  body[data-page="promos"] .topbar .brand img,
  body[data-page="temporada"] .topbar .brand img,
  body[data-page="consulta"] .topbar .brand img {
    display: none !important;
  }
}
/* =========================================================
   v0.3.4 - CONTADORES DEL CARRITO
========================================================= */

#cartCount,
#mobileCartCount {
  display: none !important;
}

#cartCount.cart-count-visible,
#mobileCartCount.cart-count-visible {
  display: grid !important;
  place-items: center !important;
}
/* =========================================================
   v0.3.4 - CONSULTA SIN NAVEGACIÓN FLOTANTE

   - Logo centrado.
   - Sin hamburguesa.
   - Sin menú lateral.
   - Sin barra flotante inferior.
   - El logo vuelve al inicio.
   - “Seguir agregando” vuelve al catálogo.
========================================================= */

body[data-page="consulta"] {
  padding-bottom: 0 !important;
}

/* Header simple y centrado */

body[data-page="consulta"] .topbar.checkout-topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  width: 100% !important;
  min-height: 74px !important;
  height: 74px !important;
  padding: 0 1rem !important;
  background: #ffffff !important;
  border-bottom: 1px solid var(--cp-line) !important;
  box-shadow: 0 8px 24px rgba(8, 31, 70, 0.06) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body[data-page="consulta"] .topbar.checkout-topbar .brand {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: static !important;
  inset: auto !important;
  grid-column: auto !important;
  grid-row: auto !important;
  justify-self: auto !important;
  align-self: auto !important;
  width: auto !important;
  margin: 0 auto !important;
  transform: none !important;
  text-decoration: none !important;
}

body[data-page="consulta"] .topbar.checkout-topbar .brand img {
  display: block !important;
  width: 190px !important;
  max-width: calc(100vw - 80px) !important;
  height: auto !important;
  object-fit: contain !important;
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Neutraliza el título “Consulta” generado por reglas viejas */

body[data-page="consulta"] .topbar.checkout-topbar::before,
body[data-page="consulta"] .topbar.checkout-topbar::after,
body[data-page="consulta"] .topbar.checkout-topbar .brand::before,
body[data-page="consulta"] .topbar.checkout-topbar .brand::after {
  content: none !important;
  display: none !important;
}

/* Consulta nunca muestra navegación alternativa */

body[data-page="consulta"] .desktop-nav,
body[data-page="consulta"] .menu-toggle,
body[data-page="consulta"] .mobile-menu-panel,
body[data-page="consulta"] .nav-overlay,
body[data-page="consulta"] .mobile-app-nav,
body[data-page="consulta"] .checkout-quick-nav,
body[data-page="consulta"] .floating-cart {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Mobile */

@media (max-width: 760px) {
  body[data-page="consulta"] {
    padding-top: 74px !important;
    padding-bottom: 0 !important;
  }

  body[data-page="consulta"] .topbar.checkout-topbar {
    min-height: 74px !important;
    height: 74px !important;
  }

  body[data-page="consulta"] .topbar.checkout-topbar .brand img {
    display: block !important;
    width: 158px !important;
    max-width: calc(100vw - 70px) !important;
  }
}
/* =========================================================
   v0.3.4 - ESPACIO SEGURO PARA BARRA INFERIOR MOBILE
========================================================= */

@media (max-width: 760px) {

  body[data-page="home"] .footer {
    padding-bottom: 2rem !important;
  }

}
/* =========================================================
   v0.3.4 - ETIQUETA FORMAS DE PAGO MOBILE
========================================================= */

@media (max-width: 760px) {

  body[data-page="home"] #formas-pago .eyebrow {
    width: fit-content !important;
    max-width: 100% !important;
    white-space: normal !important;
    line-height: 1.25 !important;
    letter-spacing: 0.11em !important;
  }

}
/* =========================================================
   v0.3.4 - ESPACIADO FORMAS DE PAGO / FAQ MOBILE
========================================================= */

@media (max-width: 760px) {

  body[data-page="home"] #formas-pago {
    margin-top: 2rem !important;
    margin-bottom: 1.25rem !important;
  }

  body[data-page="home"] .faq-section {
    margin-top: 1.25rem !important;
    margin-bottom: 2rem !important;
  }

}
/* =========================================================
   v0.3.4 - RUBROS CATÁLOGO MOBILE
========================================================= */

@media (max-width: 760px) {

  body[data-page="home"] .category-scroll {
    display: flex !important;
    justify-content: flex-start !important;
    gap: 8px !important;

    width: 100% !important;
    margin: 0 0 0.75rem !important;
    padding: 0.25rem 0.15rem 0.55rem !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body[data-page="home"] .category-scroll::-webkit-scrollbar {
    display: none;
  }

  body[data-page="home"] .category-btn {
    flex: 0 0 auto !important;
    scroll-snap-align: start;

    min-height: 38px !important;
    padding: 0 0.75rem !important;

    font-size: 0.72rem !important;
    white-space: nowrap !important;
  }

  body[data-page="home"] .category-icon {
    width: 23px !important;
    height: 23px !important;
    font-size: 0.75rem !important;
  }

}
/* =========================================================
   v0.3.4 - CARDS CATÁLOGO MOBILE ESTABLES
========================================================= */

@media (max-width: 760px) {

  body[data-page="home"] .product-card.product-card-clean {
    align-items: stretch;
  }

  body[data-page="home"] .product-card.product-card-clean h3 {
    display: -webkit-box;
    min-height: 1.95em;
    margin: 0;
    overflow: hidden;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;

    font-size: 0.84rem;
    line-height: 1.15;
  }

  body[data-page="home"] .product-meta-clean {
    display: -webkit-box;
    min-height: 1.2em;
    overflow: hidden;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  body[data-page="home"] .product-bottom-clean {
    margin-top: 0.15rem;
  }

  body[data-page="home"] .btn-add-clean {
    flex-shrink: 0;
  }

}
/* =========================================================
   v0.3.4 - CARD MOBILE FINAL
   Descripción corta + botón circular en esquina
========================================================= */

@media (max-width: 760px) {

  body[data-page="home"]
  .product-card.product-card-clean
  .product-body-clean {
    position: relative !important;
    flex: 1 1 auto !important;

    min-height: 185px !important;

    padding: 0.65rem 0.65rem 3.2rem !important;
  }

  body[data-page="home"]
  .product-card.product-card-clean
  .product-description-clean {
    display: -webkit-box !important;

    min-height: auto !important;
    margin: 0.2rem 0 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;

    color: var(--cp-muted) !important;

    font-size: 0.67rem !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
  }

  body[data-page="home"]
  .product-card.product-card-clean
  .product-bottom-clean {
    position: absolute !important;

    right: 0.65rem !important;
    bottom: 0.65rem !important;

    display: block !important;

    width: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;
  }

  body[data-page="home"]
  .product-card.product-card-clean
  .btn-add-clean {
    display: grid !important;
    place-items: center !important;

    width: 38px !important;
    min-width: 38px !important;

    height: 38px !important;
    min-height: 38px !important;

    padding: 0 !important;

    color: #ffffff !important;

    background: linear-gradient(
      135deg,
      var(--cp-brand),
      var(--cp-brand-dark)
    ) !important;

    border: 0 !important;
    border-radius: 50% !important;

    font-size: 1.35rem !important;
    line-height: 1 !important;
    font-weight: 900 !important;

    box-shadow: 0 6px 14px rgba(40, 93, 168, 0.22) !important;
  }

}
/* =========================================================
   v0.3.4 - ORDEN VISUAL CARD PRODUCTO MOBILE
========================================================= */

@media (max-width: 760px) {

  body[data-page="home"]
  .product-card.product-card-clean
  .product-body-clean h3 {
    order: 1 !important;
  }

  body[data-page="home"]
  .product-card.product-card-clean
  .product-meta-clean {
    order: 2 !important;
  }

  body[data-page="home"]
  .product-card.product-card-clean
  .product-description-clean {
    order: 3 !important;
  }

  body[data-page="home"]
  .product-card.product-card-clean
  .variant-selector-card {
    order: 4 !important;
  }

  body[data-page="home"]
  .product-card.product-card-clean
  .product-bottom-clean {
    order: 5 !important;
  }

}
/* =========================================================
   v0.3.4 - COMPACTAR CARDS CATÁLOGO MOBILE
========================================================= */

@media (max-width: 760px) {

  body[data-page="home"]
  .product-card.product-card-clean
  .product-body-clean {
    min-height: 150px !important;
    padding-bottom: 2.9rem !important;
  }

  body[data-page="home"]
  .product-card.product-card-clean
  .product-description-clean {
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
  }

}
/* =========================================================
   v0.3.4 - PAGINACIÓN CATÁLOGO MOBILE
========================================================= */

@media (max-width: 760px) {

  body[data-page="home"] .catalog-pagination {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;

    width: fit-content !important;
    max-width: 100% !important;

    margin: 1rem auto 0 !important;
    padding: 0.5rem !important;

    gap: 4px !important;

    overflow: visible !important;

    background: #ffffff !important;
    border: 1px solid var(--cp-line) !important;
    border-radius: 18px !important;

    box-shadow: 0 8px 20px rgba(8, 31, 70, 0.06) !important;
  }

  body[data-page="home"] .pagination-pages {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
  }

  body[data-page="home"] .pagination-btn,
  body[data-page="home"] .pagination-edge {
    display: grid !important;
    place-items: center !important;

    min-width: 34px !important;
    width: 34px !important;
    height: 34px !important;

    padding: 0 !important;

    border-radius: 10px !important;

    font-size: 0.8rem !important;
    font-weight: 900 !important;

    box-shadow: none !important;
  }

}
/* =========================================================
   v0.3.4 - CÓMO CONSULTAR MOBILE COMPACTO
========================================================= */

@media (max-width: 760px) {

  body[data-page="home"] .consult-steps-section {
    gap: 0.8rem !important;
    margin-top: 1.25rem !important;
    margin-bottom: 1rem !important;
    padding: 0.85rem !important;
  }

  body[data-page="home"] .consult-steps-grid {
    gap: 0.5rem !important;
  }

  body[data-page="home"] .consult-steps-grid article {
    padding: 0.7rem !important;
    grid-template-columns: 40px minmax(0, 1fr) !important;
    border-radius: 16px !important;
  }

  body[data-page="home"] .consult-steps-grid article > span {
    width: 40px !important;
    height: 40px !important;
    border-radius: 13px !important;
  }

  body[data-page="home"] #formas-pago {
    margin-top: 1rem !important;
  }

}
/* =========================================================
   v0.3.4 - FAQ MOBILE
========================================================= */

@media (max-width: 760px) {

  /* Evita el espacio grande después de Mercado Pago */
  body[data-page="home"] #formas-pago .payment-grid {
    margin-bottom: 0.75rem !important;
  }

  body[data-page="home"] .faq-section {
    margin-top: 0 !important;
    margin-bottom: 1.5rem !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  body[data-page="home"] .faq-section .section-heading {
    margin-bottom: 0.85rem !important;
  }

  body[data-page="home"] .faq-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;

    gap: 0.65rem !important;
    margin: 0.75rem 0 1rem !important;
  }

  body[data-page="home"] .faq-grid article {
    min-height: auto !important;
    padding: 0.9rem 1rem !important;

    border-radius: 16px !important;
  }

  body[data-page="home"] .faq-grid h3 {
    margin: 0 0 0.35rem !important;

    font-size: 0.95rem !important;
    line-height: 1.2 !important;
  }

  body[data-page="home"] .faq-grid p {
    margin: 0 !important;

    font-size: 0.85rem !important;
    line-height: 1.45 !important;
  }

}
/* =========================================================
   v0.3.4 - TÍTULOS EN CELULARES MUY CHICOS
========================================================= */

@media (max-width: 340px) {

  body[data-page="home"] .hero h1 {
    font-size: 2.15rem !important;
    line-height: 1.02 !important;
  }

  body[data-page="home"] .old-info-section h2,
  body[data-page="home"] .faq-section .section-heading h2 {
    font-size: 2rem !important;
    line-height: 1.03 !important;
  }

}
/* =========================================================
   v0.3.4 - CARDS INFORMATIVAS COMPACTAS MOBILE
========================================================= */

@media (max-width: 760px) {

  body[data-page="home"] .home-feature-visuals {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin: 1rem 0 !important;
  }

  body[data-page="home"] .home-feature-visuals article {
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;

    align-items: center !important;
    column-gap: 0.75rem !important;
    row-gap: 0.15rem !important;

    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;

    padding: 0.75rem !important;

    border-radius: 17px !important;
  }

  body[data-page="home"] .home-feature-image {
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;

    display: grid !important;
    place-items: center !important;

    width: 52px !important;
    height: 52px !important;

    margin: 0 !important;
    padding: 0 !important;

    border-radius: 15px !important;
  }

  body[data-page="home"] .home-feature-image img {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain !important;
  }

  body[data-page="home"] .home-feature-visuals article h3 {
    grid-column: 2 !important;
    grid-row: 1 !important;

    margin: 0 !important;

    font-size: 0.9rem !important;
    line-height: 1.15 !important;
  }

  body[data-page="home"] .home-feature-visuals article p {
    grid-column: 2 !important;
    grid-row: 2 !important;

    margin: 0 !important;

    font-size: 0.78rem !important;
    line-height: 1.3 !important;
  }

}
/* ============================================
   FEEDBACK AL AGREGAR PRODUCTO AL CARRITO
============================================ */

.btn-add-clean.cart-add-feedback {
  animation: cartAddButton 0.28s ease;
}

#mobileCartCount.cart-badge-feedback,
#cartCount.cart-badge-feedback {
  animation: cartBadgePulse 0.4s ease;
}

@keyframes cartAddButton {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(0.82);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes cartBadgePulse {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.4);
  }

  100% {
    transform: scale(1);
  }
}