/* ── RESPONSIVE.CSS — HERRAMIENTAS ROHI ──────────────────────────────────────
   Todos los @media queries del proyecto.
   Orden: 1200px → 1024px → 768px → 480px → 360px
────────────────────────────────────────────────────────────────────────────── */

/* ═══════════════════════════
   ≤ 1200px
═══════════════════════════ */
@media (max-width: 1200px) {
  .cat-nav {
    gap: 22px;
  }

  .cat-nav-link {
    font-size: 15px;
  }

  .search-box {
    max-width: 260px;
  }

  .search-box input {
    font-size: 13px;
  }

  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 28px;
  }
}

/* ═══════════════════════════
   ≤ 1024px  (tablet landscape)
═══════════════════════════ */
@media (max-width: 1024px) {

  /* ── Header ── */
  .header-inner {
    height: 68px;
    padding: 0 16px;
    gap: 14px;
  }

  .logo-link img {
    height: 42px;
  }

  .cat-nav {
    gap: 18px;
  }

  .cat-nav-link {
    font-size: 14px;
    gap: 5px;
  }

  .cat-nav-link svg {
    width: 16px;
    height: 16px;
  }

  .search-box {
    max-width: 200px;
    padding: 4px 4px 4px 14px;
  }

  .search-box input {
    font-size: 13px;
  }

  .search-submit-btn {
    width: 32px !important;
    height: 32px !important;
  }

  .search-submit-btn svg {
    width: 15px;
    height: 15px;
  }

  /* ── Hero ── */
  .hero-section {
    aspect-ratio: auto;
    max-height: none;
    overflow: hidden;
    position: relative;
  }

  .hero-banner-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }

  /* ── Categorías ── */
  .categorias-section {
    padding: 44px 0 48px;
  }

  .categorias-inner {
    padding: 0 20px;
  }

  /* ── Productos ── */
  .productos-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  /* ── Marcas ── */
  .marcas-inner {
    padding: 0 20px;
  }

  /* ── Tiendas (página) ── */
  .tiendas-grid {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 22px;
  }

  /* ── Footer ── */
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ═══════════════════════════
   ≤ 900px — Tablets medianas (iPad Mini, etc.)
═══════════════════════════ */
@media (min-width: 600px) and (max-width: 900px) {
  .categorias-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
  }
}

/* ═══════════════════════════
   ≤ 768px  (tablet portrait / mobile grande)
═══════════════════════════ */
@media (max-width: 768px) {

  /* ── Header ── */
  .header-inner {
    height: 60px;
    padding: 0 12px;
    gap: 8px;
  }

  .logo-link img {
    height: 36px;
  }

  .cat-nav {
    gap: 10px;
    flex: 1;
    justify-content: center;
  }

  .cat-nav-link {
    font-size: 12px;
    gap: 4px;
  }

  .cat-nav-link svg {
    width: 14px;
    height: 14px;
  }

  .cat-nav-link svg:last-child {
    display: none;
  }

  /* ── Buscador → solo el ícono ── */
  .search-box {
    max-width: none;
    padding: 0;
    border: none;
    background: transparent;
    flex-shrink: 0;
    margin: 0;
  }

  .search-box input,
  .search-box #search-clear-btn {
    display: none;
  }

  .search-submit-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
  }

  .search-submit-btn svg {
    width: 18px;
    height: 18px;
  }

  /* ── Hero ── */
  .hero-section {
    aspect-ratio: auto;
    max-height: none;
    overflow: hidden;
    position: relative;
  }

  .hero-banner-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }

  .hero-cta-wrap {
    bottom: 12%;
    padding-left: 6%;
  }

  .btn-primary {
    font-size: 12px;
    padding: 10px 20px;
  }

  .btn-primary svg {
    width: 14px;
    height: 14px;
  }

  /* ── Categorías ── */
  .categorias-section {
    padding: 36px 0 44px;
  }

  .categorias-inner {
    padding: 0 16px;
  }

  .categorias-title {
    font-size: 22px;
  }

  .categorias-sub {
    font-size: 13px;
  }

  .categorias-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .categoria-card-name {
    font-size: 12px;
    line-height: 1.25;
  }

  .categoria-icon-badge {
    width: 32px;
    height: 32px;
  }

  .categoria-icon-badge svg {
    width: 16px;
    height: 16px;
  }

  .categoria-card-footer {
    padding: 10px 12px;
    gap: 8px;
  }

  .categoria-card-arrow {
    width: 18px;
    height: 18px;
  }

  /* ── Productos ── */
  .productos-section {
    padding: 12px 0 48px;
  }

  .productos-inner {
    padding: 0 16px;
  }

  .productos-title {
    font-size: 22px;
  }

  .productos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .producto-card-name {
    font-size: 13.5px;
  }

  .producto-card-price {
    font-size: 18px;
  }

  .producto-badge {
    font-size: 9px;
    padding: 3px 8px;
  }

  .producto-badge-marca {
    font-size: 9px;
    padding: 3px 7px;
  }

  /* ── Marcas ── */
  .marcas-section {
    padding: 30px 0 40px;
  }

  .marcas-inner {
    padding: 0 16px;
    margin-bottom: 24px;
  }

  .marcas-title {
    font-size: 20px;
  }

  .marcas-eyebrow {
    font-size: 14px;
  }

  .marca-card {
    width: 160px;
    height: 90px;
    margin-right: 16px;
    padding: 16px;
  }

  /* ── Categoría página ── */
  .categoria-page-header {
    padding: 20px 0 24px;
  }

  .categoria-page-inner {
    padding: 0 16px;
  }

  .categoria-page-title {
    font-size: 22px;
  }

  .categoria-breadcrumb {
    font-size: 12px;
    margin-bottom: 8px;
  }

  /* ── Tiendas ── */
  .tiendas-section {
    padding: 28px 0 48px;
  }

  .tiendas-inner {
    padding: 0 16px;
  }

  .tiendas-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tienda-card-body {
    padding: 18px 18px 22px;
  }

  .tienda-card-name {
    font-size: 17px;
  }

  /* ── Modal ── */
  .modal-content {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .modal-img-side {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }

  .modal-main-img-wrap {
    aspect-ratio: 4/3;
  }

  .modal-info-side {
    padding: 20px 18px 28px;
    max-height: none;
  }

  .modal-prod-name {
    font-size: 17px;
  }

  .modal-prod-price {
    font-size: 26px;
  }

  .modal-shell {
    max-height: 96vh;
    max-height: 96dvh;
  }

  .gallery-arrow {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  .modal-close-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .modal-thumb {
    width: 50px;
    height: 50px;
  }

  .gallery-modal-thumb {
    width: 46px;
    height: 46px;
  }

  .gallery-arrow-lg {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  /* ── Footer ── */
  .footer {
    padding-top: 36px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 0 16px 28px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-brand-logo img {
    height: 72px;
  }

  .footer-bottom {
    padding: 14px 16px;
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

/* ═══════════════════════════
   ≤ 480px  (mobile)
═══════════════════════════ */
@media (max-width: 480px) {

  /* ── Header ── */
  .header-inner {
    height: 56px;
    padding: 0 10px;
    gap: 6px;
  }

  .logo-link img {
    height: 32px;
  }

  .cat-nav {
    gap: 8px;
  }

  .cat-nav-link {
    font-size: 11px;
    gap: 3px;
  }

  .cat-nav-link svg {
    width: 13px;
    height: 13px;
  }

  .search-submit-btn {
    width: 32px !important;
    height: 32px !important;
  }

  .search-submit-btn svg {
    width: 16px;
    height: 16px;
  }

  /* ── Hero ── */
  .hero-section {
    aspect-ratio: auto;
    max-height: none;
  }

  .hero-cta-wrap {
    bottom: 10%;
    padding-left: 5%;
  }

  .btn-primary {
    font-size: 11px;
    padding: 8px 14px;
  }

  .btn-primary svg {
    width: 12px;
    height: 12px;
  }

  /* ── Categorías ── */
  .categorias-section {
    padding: 30px 0 36px;
  }

  .categorias-inner {
    padding: 0 12px;
  }

  .categorias-title {
    font-size: 20px;
  }

  .categorias-sub {
    font-size: 12.5px;
  }

  .categorias-header {
    margin-bottom: 18px;
  }

  .categorias-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .categoria-card-name {
    font-size: 11px;
    line-height: 1.25;
  }

  .categoria-icon-badge {
    width: 28px;
    height: 28px;
  }

  .categoria-icon-badge svg {
    width: 14px;
    height: 14px;
  }

  .categoria-card-arrow {
    width: 16px;
    height: 16px;
  }

  .categoria-card-footer {
    padding: 8px 10px;
    gap: 6px;
  }

  /* ── Productos → 2 columnas ── */
  .productos-section {
    padding: 12px 0 40px;
  }

  .productos-inner {
    padding: 0 12px;
  }

  .productos-title {
    font-size: 20px;
  }

  .productos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .producto-card-body {
    padding: 10px 12px 12px;
  }

  .producto-card-name {
    font-size: 13px;
  }

  .producto-card-price {
    font-size: 17px;
  }

  .producto-card-divider {
    margin: 8px 0 10px;
  }

  .producto-card-btn {
    font-size: 12px;
    padding: 9px;
  }

  .producto-badge {
    font-size: 8.5px;
    padding: 3px 7px;
    gap: 3px;
  }

  .producto-badge-marca {
    font-size: 8.5px;
    padding: 3px 6px;
  }

  /* ── Marcas ── */
  .marcas-section {
    padding: 24px 0 32px;
  }

  .marcas-inner {
    padding: 0 12px;
    margin-bottom: 20px;
  }

  .marcas-title {
    font-size: 16px;
  }

  .marcas-eyebrow {
    font-size: 12px;
    letter-spacing: 1px;
  }

  .marca-card {
    width: 130px;
    height: 76px;
    margin-right: 12px;
    padding: 12px;
  }

  /* ── Categoría página ── */
  .categoria-page-header {
    padding: 16px 0 20px;
  }

  .categoria-page-inner {
    padding: 0 12px;
  }

  .categoria-page-title {
    font-size: 20px;
  }

  .categoria-breadcrumb {
    font-size: 11px;
    margin-bottom: 6px;
  }

  /* ── Tiendas ── */
  .tiendas-intro {
    font-size: 13px;
    margin-bottom: 24px;
  }

  .tienda-info-item span,
  .tienda-info-item div {
    font-size: 12.5px;
  }

  .tienda-card-actions {
    flex-direction: column;
  }

  /* ── Modal ── */
  .modal-shell {
    max-height: 96vh;
    max-height: 96dvh;
    border-radius: var(--radius-lg);
  }

  .modal-prod-name {
    font-size: 15.5px;
  }

  .modal-prod-price {
    font-size: 24px;
  }

  .specs-table {
    grid-template-columns: 1fr;
  }

  .modal-status-badge {
    font-size: 11.5px;
    padding: 6px 14px;
  }

  .modal-thumb {
    width: 44px;
    height: 44px;
  }

  .gallery-modal-thumb {
    width: 40px;
    height: 40px;
  }

  .gallery-arrow-lg {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  /* ── Footer ── */
  .footer-brand-logo img {
    height: 60px;
  }
}

/* ═══════════════════════════
   ≤ 360px  (muy chico)
═══════════════════════════ */
@media (max-width: 360px) {

  .logo-link img {
    height: 28px;
  }

  .cat-nav-link {
    font-size: 10px;
  }

  .cat-nav-link svg {
    display: none;
  }

  .search-submit-btn {
    width: 30px !important;
    height: 30px !important;
  }

  .search-submit-btn svg {
    width: 15px;
    height: 15px;
  }

  .productos-grid {
    gap: 8px;
  }

  .producto-card-name {
    font-size: 12px;
  }

  .producto-card-price {
    font-size: 16px;
  }

  .categorias-grid {
    gap: 8px;
  }

  .categoria-card-name {
    font-size: 10px;
  }
}