@media (max-width: 768px) {
  :root {
    --elev-1: 0 2px 8px rgba(0, 0, 0, 0.12);
    --elev-2: 0 6px 16px rgba(0, 0, 0, 0.16);
    --ripple: rgba(0, 0, 0, 0.1);
  }
  html,
  body {
    -webkit-tap-highlight-color: transparent;
  }
  .ripple-container {
    position: relative;
    overflow: hidden;
  }
  .ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background: var(--ripple);
  }
  @keyframes ripple {
    to {
      transform: scale(4);
      opacity: 0;
    }
  }
  .page-transition-enter {
    position: fixed;
    inset: 0;
    background: #fff;
    opacity: 0;
    z-index: 1002;
  }
  .page-transition-enter.active {
    opacity: 1;
    transition: opacity 0.18s ease;
  }
  .ptr-indicator {
    position: fixed;
    top: env(safe-area-inset-top);
    left: 0;
    right: 0;
    height: 36px;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--Rojo);
    z-index: 1002;
  }
  .ptr-indicator.active {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--elev-1);
  }
  .btn,
  button,
  a.btn {
    transition: transform 0.06s ease;
  }
  .btn:active,
  button:active,
  a.btn:active {
    transform: scale(0.98);
  }
  .card-mobile {
    border-radius: 12px;
    box-shadow: var(--elev-1);
    background: #fff;
  }
  .mobile-scroll {
    -webkit-overflow-scrolling: touch;
  }

  /* Bottom navigation bar */
  .mobile-bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(56px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
    box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.12);
    border-top: 1px solid var(--Gris-Claro);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1002;
  }
  .mobile-bottom-bar .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--Gris-Oscuro);
    text-decoration: none;
    font-size: 11px;
    border-radius: 12px;
  }
  .mobile-bottom-bar .item.active {
    color: var(--Rojo);
  }
  .mobile-bottom-bar .item svg {
    width: 22px;
    height: 22px;
  }
  .mobile-bottom-bar {
    transition: transform 0.18s ease;
  }
  .mobile-bottom-bar.hide {
    transform: translateY(100%);
  }

  /* Off-canvas menu animation and overlay */
  .mobile-header-active {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 80vw;
    max-width: 360px;
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    z-index: 1003;
  }
  body.mobile-menu-open .mobile-header-active {
    transform: translateX(0);
  }
  .mobile-dim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    z-index: 1002;
  }
  body.mobile-menu-open {
    overflow: hidden;
  }

  /* Skeleton loader */
  .skeleton {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
  }
  .skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.04),
      rgba(0, 0, 0, 0.08),
      rgba(0, 0, 0, 0.04)
    );
    transform: translateX(-100%);
    animation: shimmer 1.2s infinite;
  }
  @keyframes shimmer {
    100% {
      transform: translateX(100%);
    }
  }
  .skeleton-img {
    height: 160px;
    background: #eee;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  }
  .skeleton-lines {
    padding: 12px;
  }
  .skeleton-line {
    height: 12px;
    background: #eee;
    border-radius: 6px;
    margin-bottom: 8px;
  }
  .skeleton-line.wide {
    width: 90%;
  }
  .skeleton-line.mid {
    width: 70%;
  }
  .skeleton-line.short {
    width: 50%;
  }

  /* Toasts */
  .mobile-toast {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(72px + env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 12px;
    box-shadow: var(--elev-2);
    z-index: 1004;
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  .mobile-toast.show {
    opacity: 1;
  }
  /* Placeholder para categorías sin imagen */
  .category-placeholder {
    width: 100%;
    height: 140px;
    border-radius: 12px;
    background: var(--Rojo);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 28px;
    box-shadow: var(--elev-1);
  }
  .banner-expo {
    min-height: 100svh;
  }
  html {
    scroll-padding-bottom: calc(56px + env(safe-area-inset-bottom));
  }
  #banner-expo {
    align-items: center;
    scroll-margin-top: env(safe-area-inset-top);
    scroll-margin-bottom: calc(56px + env(safe-area-inset-bottom));
  }
  .banner-expo .banner-expo-c1 {
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .banner-expo .banner-expo-c3 {
    margin-top: 20px;
    text-align: center;
  }
  .banner-expo .banner-expo-c2 {
    height: 30vh;
    max-width: 100%;
    aspect-ratio: auto;
  }
  .banner-expo .banner-expo-c2 img {
    object-fit: cover;
  }
  .banner-expo-c1 .logo-white {
    height: 36px;
  }
  #banner-expo {
    display: flex;
    flex-direction: column;
    /* justify-content: space-between;
    gap: 8px; */
  }
  .banner-expo .banner-expo-text .t1,
  .banner-expo .banner-expo-text .t2 {
    font-size: 22px;
    line-height: 1.2;
  }
  .banner-expo .banner-expo-text .t3 {
    font-size: 28px;
    line-height: 1.1;
  }
  /* .banner-expo .banner-expo-c1 .banner-expo-btn a {
    font-size: 16px;
    padding: 8px 14px;
  } */
  .banner-expo .banner-expo-c3 h4 {
    font-size: 18px;
    line-height: 1.2;
  }
  .banner-expo .banner-expo-c3 h2 {
    font-size: 24px;
    line-height: 1.1;
  }
}
