/**
 * ELECTROBOOM — Móvil: header compacto y bloque “Solo por hoy” alineado.
 */

@media (max-width: 768px) {
  .header-main {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas:
      "menu logo actions"
      "search search search";
    gap: 10px 8px;
    padding: 10px 14px 12px;
    max-width: 100%;
  }

  .hamburger {
    display: flex;
    grid-area: menu;
    align-self: center;
    width: 42px;
    height: 42px;
    padding: 10px;
  }

  .header-logo {
    grid-area: logo;
    justify-content: center;
    height: 44px;
  }

  .header-logo img,
  .brand-logo-img {
    height: 40px;
    max-height: 40px;
    max-width: min(160px, 42vw);
    object-position: center;
  }

  .header-actions {
    grid-area: actions;
    gap: 6px;
  }

  .icon-btn--account {
    display: none !important;
  }

  .icon-btn--cart {
    width: 44px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent !important;
    color: #1d4ed8 !important;
  }

  .btn-offers {
    max-width: none;
    height: 40px;
    padding: 0 10px;
    font-size: 0.62rem;
    border-radius: 6px;
  }

  .btn-offers-text {
    display: none !important;
  }

  .btn-offers-text--short {
    display: inline !important;
  }

  .header-search {
    grid-area: search;
    grid-column: 1 / -1;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    box-shadow: none;
  }

  .header-search input {
    height: 42px;
    font-size: 0.9375rem;
  }

  .search-btn {
    width: 56px;
    min-height: 42px;
    background: #f59e0b;
  }

  .search-btn svg {
    display: none;
  }

  .search-btn-text {
    display: block;
    font-weight: 800;
    font-size: 0.9rem;
  }

  .header-accent-strip {
    height: 3px;
  }

  .nav-categories {
    display: none;
  }

  /* Hero: solo imagen */
  .hero-wrap {
    background: #fff;
  }

  .hero-slide {
    display: block !important;
    padding: 0 !important;
    min-height: 0 !important;
    background: transparent !important;
  }

  .hero-slide__copy,
  .hero-slide > div:first-child:not(.hero-visual) {
    display: none !important;
  }

  .hero-slide .hero-visual {
    height: auto;
    min-height: 0;
    max-height: none;
    border-radius: 0;
    background: transparent !important;
    padding: 0;
  }

  .hero-slide .hero-visual img {
    max-height: clamp(160px, 44vw, 220px);
    object-fit: contain;
    margin: 0 auto;
  }

  .hero-prev,
  .hero-next {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--orange);
  }

  .promo-strip {
    display: none;
  }

  /* Ofertas — bloque limpio y alineado */
  .flash-deals-section {
    padding: 16px 0 24px;
    background: #fff;
  }

  .flash-deals-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }

  .flash-deal-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .promo-aside {
    min-height: 0 !important;
    height: auto;
    padding: 12px 14px 12px;
    border-radius: 12px;
    gap: 8px;
    justify-content: flex-start;
    background: linear-gradient(165deg, #67e8f9 0%, #22d3ee 50%, #0ea5e9 100%);
  }

  .promo-aside-countdown {
    margin-top: 8px !important;
  }

  .promo-aside-brand {
    text-align: center;
  }

  .promo-aside-logo-link {
    display: flex;
    justify-content: center;
  }

  .promo-aside-logo-link {
    padding: 6px 12px;
    margin-bottom: 6px;
  }

  .promo-aside-logo {
    height: 36px;
    object-position: center;
    mix-blend-mode: normal;
    filter: none;
  }

  .promo-solo-title {
    font-size: 1.4rem;
    text-align: center;
  }

  .promo-exclusivo {
    display: block;
    text-align: center;
    margin: 10px auto 0;
    max-width: 240px;
  }

  .promo-aside-countdown {
    padding: 10px 12px;
    border-radius: 8px;
  }

  .promo-countdown {
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
  }

  .pc-card--flash .pc-name {
    font-size: 0.82rem;
    -webkit-line-clamp: 3;
  }

  .pc-card--flash .pc-price-main {
    font-size: 1.05rem;
  }

  .flash-deals-main {
    padding: 0;
    background: transparent;
  }

  .flash-carousel-box {
    min-height: 0;
  }

  .flash-carousel-scroll {
    padding: 0 32px 6px;
    gap: 10px;
  }

  .flash-carousel-box .carousel-nav {
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid #e2e8f0;
  }

  .flash-carousel-box .carousel-prev {
    left: 0;
  }

  .flash-carousel-box .carousel-next {
    right: 0;
  }

  .pc-card--flash {
    min-width: min(82vw, 300px);
    flex: 0 0 min(82vw, 300px);
    max-width: none;
  }

  .flash-deals-footer {
    padding-top: 4px;
    gap: 12px;
  }

  .flash-page-btn {
    min-width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .section {
    padding: 20px 0;
  }

  .wa-float {
    width: 52px;
    height: 52px;
    bottom: 70px;
    right: 12px;
  }
}

@media (max-width: 430px) {
  .header-main {
    padding: 8px 10px 10px;
    gap: 8px 6px;
  }

  .btn-offers {
    padding: 0 8px;
    font-size: 0.58rem;
  }

  .flash-deals-wrap {
    padding-left: 10px;
    padding-right: 10px;
  }

  .promo-solo-title {
    font-size: 1.35rem;
  }
}
