/* =========================================================
   BLAZZA STORE - RESPONSIVE.CSS
   Edita aquí únicamente los cambios para tablet y celular.
   ========================================================= */

@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: 220px 1fr;
  }

  .header-button {
    display: none;
  }

  .category-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  :root {
    --alto-header: 68px;
  }

  .header-inner {
    display: flex;
    min-height: var(--alto-header);
    padding: 8px 16px;
  }

  .brand {
    width: 175px;
  }

  .brand img {
    height: 46px;
  }

  .menu-button {
    display: block;
    margin-left: auto;
    z-index: 102;
  }

  .main-menu {
    position: fixed;
    top: var(--alto-header);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--alto-header));
    padding: 14px 18px 22px;
    overflow-y: auto;
    background: var(--color-blanco);
    border-bottom: 1px solid var(--color-borde);
    box-shadow: var(--sombra);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-120%);
    transition: .28s ease;
  }

  .main-menu.abierto {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-menu > a,
  .submenu-button {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4px;
    border-bottom: 1px solid var(--color-borde);
    text-align: left;
  }

  .main-menu > a::after,
  .submenu-button::after {
    display: none;
  }

  .menu-dropdown {
    width: 100%;
  }

  .submenu {
    position: static;
    width: 100%;
    max-height: 0;
    padding: 0 0 0 12px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: max-height .3s ease;
  }

  .menu-dropdown.abierto .submenu {
    max-height: 650px;
  }

  .submenu a {
    padding: 12px 8px;
    border-bottom: 1px solid #eef0f2;
  }

  .section-intro,
  .about-grid,
  .contact-grid,
  .modal-layout {
    grid-template-columns: 1fr;
  }

  .modal-layout img {
    min-height: 280px;
  }
}

@media (max-width: 620px) {
  .hero-slider {
    min-height: 650px;
  }

  .hero-slide {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .button {
    width: 100%;
  }

  .slider-prev {
    left: 12px;
  }

  .slider-next {
    right: 12px;
  }

  .section,
  .page-hero {
    padding-right: 18px;
    padding-left: 18px;
  }

  .section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .category-grid,
  .feature-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .quote-form {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .form-full {
    grid-column: auto;
  }

  .cta-section {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 18px;
    padding-left: 18px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding-right: 18px;
    padding-left: 18px;
  }

  .product-modal {
    width: 96vw;
  }

  .modal-info {
    padding: 26px 20px;
  }

  .modal-info h2 {
    font-size: 30px;
  }

  .modal-buttons {
    flex-direction: column;
  }

  .modal-buttons .button {
    width: 100%;
  }

  .whatsapp-float {
    right: 12px;
    bottom: 12px;
  }
}
