  .category-section .category-info {
    padding: 0.75rem;
    box-shadow: none;
  }

/* Extra small phones */
@media (max-width: 400px) {
  .category-section .category-products-grid { grid-template-columns: 1fr; }
  .category-section .product-image-modern { aspect-ratio: 4 / 5; }
  .category-section .btn { padding: 0.3rem 0.45rem; font-size: 0.8rem; }
}
  .category-section .category-large-image {
    width: 70px;
    height: 70px;
    border: 3px solid var(--primary-color);
    margin-bottom: 0.5rem;
  }
  .category-section .category-title { font-size: 1.1rem; margin-bottom: 0.25rem; }
  .category-section .category-description { display: none; }
  .category-section .category-count { font-size: 0.8rem; padding: 4px 10px; margin-bottom: 0.5rem; }
  .category-section .btn-view-more { width: 100%; padding: 8px 16px; font-size: 0.9rem; }
  .category-section { margin-bottom: 2rem; }

@media (min-width: 992px) {
  .site-header .search-form {
    max-width: 720px;
  }
  
  .site-header .navbar-nav {
    gap: 24px;
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  .site-header .logo {
    height: 55px;
    width: 55px;
  }
  
  /* Header top content structure */
  .header-top-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 15px !important;
    padding: 15px 0 !important;
  }
  
  /* Search form - MANTENER VISIBLE */
  .site-header .search-form {
    flex: 1;
    max-width: 350px !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .site-header .search-form .input-group {
    width: 100% !important;
    border-radius: 25px !important;
    overflow: hidden !important;
    display: flex !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
  }
  
  .site-header .search-form .form-control {
    font-size: 0.9rem !important;
    padding: 12px 18px !important;
    border: none !important;
    background: white !important;
    flex: 1 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .site-header .search-form .form-control:focus {
    border-color: #f0bd36 !important;
    box-shadow: 0 0 0 2px rgba(240, 189, 54, 0.3) !important;
    outline: none !important;
  }
  
  /* BOTÓN DE BÚSQUEDA - FORZAR VISIBILIDAD */
  .site-header .search-form .btn {
    padding: 12px 18px !important;
    border: none !important;
    background: #f0bd36 !important;
    color: #000000 !important;
    border-radius: 0 25px 25px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 50px !important;
    flex-shrink: 0 !important;
  }
  
  .site-header .search-form .btn:hover {
    background: #d39320 !important;
    color: #000000 !important;
    transform: translateY(-1px) !important;
  }
  
  .site-header .search-form .btn i {
    font-size: 1.1rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Acciones del header */
  .header-top-content .d-flex.align-items-center.gap-3 {
    gap: 10px !important;
    flex-shrink: 0;
    display: flex !important;
  }
  
  .phone-btn {
    padding: 12px !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: #f0bd36 !important;
    color: #000000 !important;
  }
  
  .whatsapp-btn {
    padding: 12px !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: #25D366 !important;
    color: white !important;
  }
  
  .cart-btn {
    padding: 10px 15px !important;
    min-width: 120px !important;
    min-height: 44px !important;
    border-radius: 22px !important;
    background: white !important;
    color: #000000 !important;
    border: 1px solid #f0bd36 !important;
    font-size: 0.9rem !important;
  }
  
  .btn-login {
    padding: 5px 10px;
    font-size: 0.9rem;
  }
  
  .site-header .navbar-nav {
    gap: 12px;
    padding: 0.5rem 0;
  }
  
  .site-header .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 0.6rem;
  }
}

/* Small screens (tablets pequeños) - 576px a 767px */
@media (max-width: 767px) and (min-width: 576px) {
  .site-header {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  
  /* Header top content structure */
  .header-top-content {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    padding: 12px 0 !important;
  }
  
  .site-header .logo {
    height: 50px;
    width: 50px;
  }
  
  /* Navbar brand */
  .site-header .navbar-brand {
    order: 1;
    flex-shrink: 0;
  }
  
  /* Search form - MANTÉNER SIEMPRE VISIBLE */
  .site-header .search-form {
    order: 2;
    flex: 1;
    max-width: 280px !important;
    margin: 0 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .site-header .search-form .input-group {
    width: 100% !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    display: flex !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
  }
  
  .site-header .search-form .form-control {
    padding: 10px 15px !important;
    font-size: 0.9rem !important;
    border: none !important;
    background: white !important;
    flex: 1 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .site-header .search-form .form-control:focus {
    border-color: #f0bd36 !important;
    box-shadow: 0 0 0 2px rgba(240, 189, 54, 0.3) !important;
    outline: none !important;
  }
  
  /* BOTÓN DE BÚSQUEDA - FORZAR VISIBILIDAD */
  .site-header .search-form .btn {
    padding: 10px 15px !important;
    border: none !important;
    background: #f0bd36 !important;
    color: #000000 !important;
    border-radius: 0 20px 20px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 45px !important;
    flex-shrink: 0 !important;
  }
  
  .site-header .search-form .btn:hover {
    background: #d39320 !important;
    color: #000000 !important;
  }
  
  .site-header .search-form .btn i {
    font-size: 1rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Acciones del header */
  .header-top-content .d-flex.align-items-center.gap-3 {
    order: 3;
    gap: 8px !important;
    flex-shrink: 0;
    display: flex !important;
  }
  
  .phone-btn {
    padding: 10px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: #f0bd36 !important;
    color: #000000 !important;
  }
  
  .whatsapp-btn {
    padding: 10px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: #25D366 !important;
    color: white !important;
  }
  
  .cart-btn {
    padding: 8px 12px !important;
    min-width: 100px !important;
    min-height: 40px !important;
    border-radius: 20px !important;
    background: white !important;
    color: #000000 !important;
    border: 1px solid #f0bd36 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  
  /* Navbar toggler */
  .site-header .navbar-toggler {
    order: 4;
    margin-left: 10px !important;
    border: none;
    padding: 8px;
    border-radius: 6px;
    background: #f0bd36;
    width: 44px;
    height: 40px;
  }
  
  .site-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
  
  /* Navigation menu colapsado */
  .site-header .navbar-collapse {
    margin-top: 12px;
    background: #000000 !important;
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: none !important;
  }
  
  .site-header .navbar-nav {
    gap: 6px;
    padding: 0;
    justify-content: flex-start;
  }
  
  .site-header .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    color: #333 !important;
    background: transparent !important;
  }
  
  .site-header .nav-link:hover {
    background: var(--primary-color) !important;
    color: white !important;
  }
  
  .site-header .nav-link:focus,
  .site-header .nav-link:active {
    background: var(--primary-color) !important;
    color: white !important;
  }
}

/* Extra small screens (móviles) - hasta 575px */
@media (max-width: 575px) {
  .site-header {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  
  .site-header .container {
    padding: 0 12px;
  }
  
  /* Header top content structure */
  .header-top-content {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 8px 0 !important;
    min-height: 60px !important;
  }
  
  .site-header .logo {
    height: 45px;
    width: 45px;
  }
  
  /* Navbar brand con logo */
  .site-header .navbar-brand {
    order: 1;
    flex-shrink: 0;
  }
  
  /* Search form - SIEMPRE VISIBLE */
  .site-header .search-form {
    order: 2;
    flex: 1;
    max-width: 180px !important;
    min-width: 150px !important;
    margin: 0 8px !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .site-header .search-form .input-group {
    width: 100% !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    display: flex !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
  }
  
  .site-header .search-form .form-control {
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    border: none !important;
    background: white !important;
    flex: 1 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .site-header .search-form .form-control:focus {
    border-color: #f0bd36 !important;
    box-shadow: 0 0 0 2px rgba(240, 189, 54, 0.3) !important;
    outline: none !important;
  }
  
  /* BOTÓN DE BÚSQUEDA - FORZAR VISIBILIDAD */
  .site-header .search-form .btn {
    padding: 8px 12px !important;
    border: none !important;
    background: #f0bd36 !important;
    color: #000000 !important;
    border-radius: 0 20px 20px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 40px !important;
    flex-shrink: 0 !important;
  }
  
  .site-header .search-form .btn:hover {
    background: #d39320 !important;
    color: #000000 !important;
  }
  
  .site-header .search-form .btn i {
    font-size: 0.9rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Acciones del header (teléfono + whatsapp + carrito) */
  .header-top-content .d-flex.align-items-center.gap-3 {
    order: 3;
    gap: 6px !important;
    flex-shrink: 0;
    display: flex !important;
  }
  
  .phone-btn {
    padding: 8px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #f0bd36 !important;
    color: #000000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .whatsapp-btn {
    padding: 8px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #25D366 !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .cart-btn {
    padding: 6px 10px !important;
    min-width: 80px !important;
    min-height: 36px !important;
    border-radius: 18px !important;
    background: white !important;
    color: #000000 !important;
    border: 1px solid #f0bd36 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
  }
  
  .cart-btn .fa-shopping-cart {
    font-size: 0.9rem;
    color: #000000;
  }
  
  /* Navbar toggler */
  .site-header .navbar-toggler {
    order: 4;
    margin-left: 8px !important;
    border: none;
    padding: 6px;
    border-radius: 4px;
    background: #f0bd36;
    width: 40px;
    height: 36px;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  
  .site-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 20px;
    height: 20px;
  }
  
  /* Navbar menu colapsado */
  .site-header .header-bottom {
    order: 5;
    width: 100%;
    margin-top: 10px;
  }
  
  .site-header .navbar {
    width: 100%;
  }
  
  /* Badge del carrito */
  .cart-btn .cart-count {
    font-size: 0.7rem;
    padding: 2px 5px;
    background: #f0bd36;
    color: #000000;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
  }
  
  /* Navigation menu colapsado minimalista - ancho completo */
  .site-header .navbar-collapse {
    margin-top: 12px;
    background: #000000 !important;
    border-radius: 12px;
    padding: 1.5rem;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    border: 2px solid #f0bd36 !important;
    text-align: left;
    position: relative;
    left: 0;
    right: 0;
  }
  
  .site-header .navbar-nav {
    gap: 0;
    padding: 0;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
  }
  
  .site-header .nav-link {
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    display: block;
    margin-bottom: 8px;
    border: 2px solid transparent;
    color: #f0bd36 !important;
    background: rgba(240, 189, 54, 0.1) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  }
  
  .site-header .nav-item:last-child .nav-link {
    border-bottom: none;
    margin-bottom: 0;
  }
  
  .site-header .nav-link:hover {
    background: #f0bd36 !important;
    color: #000000 !important;
    transform: translateX(8px) scale(1.02);
    border-color: #f0bd36;
    box-shadow: 0 4px 15px rgba(240, 189, 54, 0.4);
  }
  
  .site-header .nav-link:focus,
  .site-header .nav-link:active {
    background: #f0bd36 !important;
    color: #000000 !important;
    transform: translateX(8px) scale(1.02);
  }
  
  /* Dropdown items en móvil */
  .site-header .dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    border: 1px solid #e9ecef;
    margin-top: 8px;
    background: white !important;
    position: static !important;
    transform: none !important;
    width: 100% !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
  }
  
  .site-header .dropdown-menu .dropdown-item {
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333 !important;
    background: transparent !important;
  }
  
  .site-header .dropdown-menu .dropdown-item:last-child {
    border-bottom: none;
  }
  
  .site-header .dropdown-menu .dropdown-item:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateX(4px);
  }
  
  .site-header .dropdown-menu .dropdown-item:focus,
  .site-header .dropdown-menu .dropdown-item:active {
    background: var(--primary-color) !important;
    color: white !important;
  }
  
  .site-header .dropdown-menu .dropdown-item .badge {
    font-size: 0.7rem;
    padding: 2px 6px;
  }
}

/* SOLUCIÓN DEFINITIVA PARA BÚSQUEDA EN MÓVIL */
@media (max-width: 991px) {
  /* FORZAR VISIBILIDAD DE SEARCH FORM EN TODOS LOS MÓVILES */
  .site-header .search-form,
  .header-top .search-form,
  .search-form {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
  }
  
  .site-header .search-form .input-group,
  .header-top .search-form .input-group,
  .search-form .input-group {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
  }
  
  .site-header .search-form .form-control,
  .header-top .search-form .form-control,
  .search-form .form-control {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: white !important;
    color: #333 !important;
    border: none !important;
  }
  
  /* BOTÓN DE BÚSQUEDA - MÁXIMA PRIORIDAD */
  .site-header .search-form .btn,
  .header-top .search-form .btn,
  .search-form .btn,
  button[aria-label="Buscar"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #f0bd36 !important;
    color: #000000 !important;
    border: none !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 11 !important;
  }
  
  /* ÍCONO DE BÚSQUEDA - FORZAR VISIBILIDAD TOTAL */
  .site-header .search-form .btn i,
  .header-top .search-form .btn i,
  .search-form .btn i,
  .search-form .fas.fa-search,
  .fa-search,
  button[aria-label="Buscar"] i {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #000000 !important;
    background: transparent !important;
    font-size: 1rem !important;
    text-shadow: none !important;
    filter: none !important;
    -webkit-text-fill-color: #000000 !important;
    font-weight: 900 !important;
    position: relative !important;
    z-index: 12 !important;
  }
  
  /* Estados hover y focus para el botón */
  .site-header .search-form .btn:hover,
  .header-top .search-form .btn:hover,
  .search-form .btn:hover,
  button[aria-label="Buscar"]:hover {
    background: #d39320 !important;
    color: #000000 !important;
  }
  
  .site-header .search-form .btn:hover i,
  .header-top .search-form .btn:hover i,
  .search-form .btn:hover i,
  button[aria-label="Buscar"]:hover i {
    color: #000000 !important;
  }

  /* Forzar visibilidad completa del menú móvil */
  .site-header .navbar-collapse,
  .site-header .navbar-collapse.show,
  .site-header .navbar-collapse.collapsing,
  .header-bottom .navbar-collapse,
  .navbar-collapse {
    display: block !important;
    background-color: white !important;
    background: white !important;
    color: #333 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* SOBRESCRIBIR TODOS LOS NAV-LINKS */
  .site-header .navbar-nav .nav-link,
  .site-header .navbar-collapse .nav-link,
  .site-header .navbar-collapse.show .navbar-nav .nav-link,
  .header-bottom .navbar-nav .nav-link,
  .header-bottom .navbar-collapse .nav-link,
  .navbar-nav .nav-link,
  .nav-link {
    color: #f0bd36 !important;
    background-color: transparent !important;
    background: transparent !important;
    display: block !important;
    width: 100% !important;
    text-decoration: none !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
    margin-bottom: 4px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* ESTADOS HOVER PARA NAV-LINKS */
  .site-header .navbar-nav .nav-link:hover,
  .site-header .navbar-nav .nav-link:focus,
  .site-header .navbar-nav .nav-link:active,
  .site-header .navbar-collapse .nav-link:hover,
  .site-header .navbar-collapse .nav-link:focus,
  .site-header .navbar-collapse .nav-link:active,
  .site-header .navbar-collapse.show .navbar-nav .nav-link:hover,
  .site-header .navbar-collapse.show .navbar-nav .nav-link:focus,
  .site-header .navbar-collapse.show .navbar-nav .nav-link:active,
  .header-bottom .navbar-nav .nav-link:hover,
  .header-bottom .navbar-nav .nav-link:focus,
  .header-bottom .navbar-nav .nav-link:active,
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus,
  .navbar-nav .nav-link:active,
  .nav-link:hover,
  .nav-link:focus,
  .nav-link:active {
    background-color: #333333 !important;
    background: #333333 !important;
    color: #f0bd36 !important;
  }
  
  /* DROPDOWN MENUS */
  .site-header .dropdown-menu,
  .site-header .navbar-collapse .dropdown-menu,
  .site-header .navbar-collapse.show .dropdown-menu,
  .header-bottom .dropdown-menu,
  .navbar-nav .dropdown-menu,
  .dropdown-menu {
    background-color: #000000 !important;
    background: #000000 !important;
    display: block !important;
    position: static !important;
    border: none !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3) !important;
    margin-top: 5px !important;
    border-radius: 8px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* DROPDOWN ITEMS */
  .site-header .dropdown-menu .dropdown-item,
  .site-header .navbar-collapse .dropdown-menu .dropdown-item,
  .site-header .navbar-collapse.show .dropdown-menu .dropdown-item,
  .header-bottom .dropdown-menu .dropdown-item,
  .navbar-nav .dropdown-menu .dropdown-item,
  .dropdown-menu .dropdown-item,
  .dropdown-item {
    color: #f0bd36 !important;
    background-color: transparent !important;
    background: transparent !important;
    padding: 0.6rem 1.2rem !important;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
    margin-bottom: 2px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* ESTADOS HOVER PARA DROPDOWN ITEMS */
  .site-header .dropdown-menu .dropdown-item:hover,
  .site-header .dropdown-menu .dropdown-item:focus,
  .site-header .dropdown-menu .dropdown-item:active,
  .site-header .navbar-collapse .dropdown-menu .dropdown-item:hover,
  .site-header .navbar-collapse .dropdown-menu .dropdown-item:focus,
  .site-header .navbar-collapse .dropdown-menu .dropdown-item:active,
  .site-header .navbar-collapse.show .dropdown-menu .dropdown-item:hover,
  .site-header .navbar-collapse.show .dropdown-menu .dropdown-item:focus,
  .site-header .navbar-collapse.show .dropdown-menu .dropdown-item:active,
  .header-bottom .dropdown-menu .dropdown-item:hover,
  .header-bottom .dropdown-menu .dropdown-item:focus,
  .header-bottom .dropdown-menu .dropdown-item:active,
  .navbar-nav .dropdown-menu .dropdown-item:hover,
  .navbar-nav .dropdown-menu .dropdown-item:focus,
  .navbar-nav .dropdown-menu .dropdown-item:active,
  .dropdown-menu .dropdown-item:hover,
  .dropdown-menu .dropdown-item:focus,
  .dropdown-menu .dropdown-item:active,
  .dropdown-item:hover,
  .dropdown-item:focus,
  .dropdown-item:active {
    background-color: #333333 !important;
    background: #333333 !important;
    color: #f0bd36 !important;
  }
  
  /* ASEGURAR CONTENEDOR DEL NAVBAR */
  .site-header .navbar-collapse {
    background-color: #000000 !important;
    background: #000000 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
    border: none !important;
    padding: 1rem !important;
    margin-top: 12px !important;
  }
  
  /* Estados del navbar collapse */
  .navbar-collapse {
    transition: opacity 0.3s ease !important;
  }
  
  .navbar-collapse.show {
    display: block !important;
    opacity: 1 !important;
  }
  
  .navbar-collapse:not(.show) {
    display: none !important;
  }
  
  /* Botón hamburguesa limpio */
  .navbar-toggler {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0.25rem 0.5rem !important;
  }
  
  .navbar-toggler:focus,
  .navbar-toggler:active {
    outline: none !important;
    box-shadow: none !important;
  }
  
  /* ELIMINAR CUALQUIER ESTILO PROBLEMÁTICO DE HEADER.CSS */
  .header-bottom .navbar-nav .nav-link.active,
  .header-bottom .navbar-nav .nav-link:active,
  .header-bottom .navbar-nav .nav-link:focus,
  .header-bottom .navbar-nav .nav-link.show {
    color: #333333 !important;
    background-color: transparent !important;
    background: transparent !important;
  }
  
  .header-bottom .navbar-nav .nav-link.active:hover,
  .header-bottom .navbar-nav .nav-link:active:hover,
  .header-bottom .navbar-nav .nav-link:focus:hover,
  .header-bottom .navbar-nav .nav-link.show:hover {
    color: white !important;
    background-color: var(--primary-color) !important;
    background: var(--primary-color) !important;
  }
}

/* Footer Cross-browser compatibility and fine-tuning */
@media (max-width: 480px) {
  .footer-gradient {
    padding: 1.5rem 0 1rem 0 !important;
  }
  
  .footer-gradient .container {
    padding: 0 0.5rem;
  }
  
  .footer-brand {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .footer-logo {
    height: 40px;
    width: auto;
  }
  
  .footer-description {
    font-size: 0.8rem;
    max-width: 220px;
    line-height: 1.4;
    margin-bottom: 1rem;
  }
  
  .footer-heading {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
  }
  
  .footer-links li,
  .footer-contact p {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }
  
  .footer-social-link {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }
  
  .footer-divider {
    margin: 1rem 0 0.5rem 0;
  }
  
  .footer-copyright,
  .footer-dev-text {
    font-size: 0.7rem;
  }
  
  .footer-gradient [class*=\"col-\"] {
    margin-bottom: 1.2rem;
  }
  
  /* Ensure proper stacking on very small screens */
  .footer-gradient .row > div {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Ensure footer stays at bottom on all screen sizes */
@media (min-width: 320px) {
  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  .footer-gradient {
    margin-top: auto;
  }
}

/* iPhone SE and ultra-small devices */
@media (max-width: 374px) {
  .site-header .container {
    padding: 0 8px;
  }
  
  .site-header .logo {
    height: 40px;
    width: 40px;
  }
  
  .site-header .search-form .form-control {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  
  .site-header .search-form .btn {
    padding: 4px 8px;
  }
  
  .cart-btn {
    padding: 4px 6px;
    min-width: 36px;
    min-height: 36px;
  }
  
  .cart-btn .fa-shopping-bag {
    font-size: 0.8rem;
  }
  
  .cart-btn .badge {
    font-size: 0.55rem;
    padding: 1px 4px;
  }
  
  .site-header .nav-link {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
  }
  
  .site-header .dropdown-menu .dropdown-item {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
  }
  
  /* Footer responsive - Mobile-first approach */
  .footer-gradient {
    padding: 2.5rem 0 !important;
  }
  
  .footer-gradient .container {
    padding: 0 1rem;
  }
  
  .footer-gradient .row {
    text-align: center;
    justify-content: center;
  }
  
  .footer-gradient [class*="col-"] {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-gradient .footer-brand {
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-direction: row;
    gap: 0.75rem;
  }
  
  .footer-gradient .footer-logo {
    height: 50px !important;
    width: auto;
    margin-right: 0 !important;
  }
  
  .footer-gradient h5,
  .footer-gradient .footer-heading {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
    color: white !important;
  }
  
  .footer-gradient .footer-description {
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    max-width: 300px;
    margin: 0 auto 1.5rem auto;
  }
  
  .footer-gradient p,
  .footer-gradient .footer-link {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .footer-gradient .social-links {
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .footer-gradient .footer-social-link {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  /* Product images responsive fixes */
  .product-image,
  .product-image-modern,
  .card-img-top {
    height: 180px !important;
    object-fit: contain !important;
    background: white !important;
    padding: 8px !important;
  }
  
  .category-large-image {
    height: 250px !important;
    object-fit: contain !important;
    background: white !important;
    padding: 4px !important;
  }
  
  .category-image {
    height: 200px !important;
    object-fit: contain !important;
    background: white !important;
    padding: 2px !important;
  }

  /* Product cards mobile */
  .product-card,
  .product-card-modern {
    margin-bottom: 1rem;
  }
  
  .product-card .card-body {
    padding: 0.75rem !important;
  }
  
  .product-title {
    font-size: 0.9rem !important;
    line-height: 1.3;
    margin-bottom: 0.5rem !important;
  }
  
  .product-price {
    font-size: 1rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  /* Buttons mobile visibility */
  .btn-primary,
  .btn-outline-primary,
  .btn-view-more,
  .btn-view-more-compact,
  .btn-sm,
  .btn {
    padding: 0.6rem 1rem !important;
    font-size: 0.9rem !important;
    min-height: 40px !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }
  
  .product-actions {
    margin-top: 0.75rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  
  .product-actions .btn {
    width: 100% !important;
    margin-bottom: 0 !important;
    flex: 1 !important;
  }
  
  /* Specific button colors */
  .btn-primary {
    background: var(--primary-color) !important;
    color: white !important;
  }
  
  .btn-outline-primary {
    background: white !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
  }
  
  /* Card body spacing */
  .card-body {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 140px !important;
  }



  /* Asegurar que los elementos táctiles tengan tamaño mínimo */
  .site-header .nav-link,
  .site-header .dropdown-item,
  .btn-login,
  .cart-btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Fix para orientación horizontal en móviles */
@media (max-height: 500px) and (orientation: landscape) {
  .site-header .container > .d-flex {
    min-height: 50px;
  }
  
  .site-header .logo {
    height: 35px;
    width: 35px;
  }
  
  .site-header .search-form .form-control {
    padding: 6px 12px;
  }
}

/* General responsive adjustments */
@media (max-width: 768px) {
  /* Hero Mobile Override - Forzar estilos móviles - UPDATED */
  .hero-modern {
    padding: 1rem 0 !important;
    margin: 0 !important;
  }
  
  .hero-modern .container {
    background: var(--gradient-primary) !important;
    border-radius: 15px !important;
    padding: 1.5rem !important;
    min-height: auto !important;
    display: block !important;
    position: relative !important;
  }
  
  .hero-modern .row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin: 0 !important;
  }
  
  .hero-modern .col-lg-6:first-child {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .hero-modern .col-lg-6:last-child {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .hero-content {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    padding: 1rem 0 !important;
    text-align: center !important;
    display: block !important;
    z-index: auto !important;
  }
  
  .hero-content h1 {
    font-size: 1.75rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.3 !important;
    color: white !important;
    font-weight: 900 !important;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 1), 2px 2px 4px rgba(0, 0, 0, 1) !important;
  }
  
  .hero-content p {
    font-size: 0.95rem !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.4 !important;
    color: white !important;
    opacity: 1 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1) !important;
  }
  
  .hero-image-container {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 1.5rem !important;
    overflow: visible !important;
  }
  
  .hero-image {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 220px !important;
    height: 220px !important;
    max-width: 220px !important;
    max-height: 220px !important;
    object-fit: contain !important;
    border-radius: 12px !important;
  }
  
  .btn-hero {
    padding: 12px 30px !important;
    font-size: 1rem !important;
  }


  
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .navbar-brand span {
    display: none;
  }
  
  .breadcrumb {
    font-size: 0.875rem;
  }
  
  .breadcrumb-item {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
  }
  
  .footer-brand {
    justify-content: center;
    text-align: center;
    flex-direction: row;
    margin-bottom: 1.5rem;
    align-items: center;
    gap: 0.75rem;
  }
  
  .footer-logo {
    margin-bottom: 0;
    margin-right: 0 !important;
    height: 50px;
    width: auto;
  }
  
  .footer-description {
    text-align: center;
    margin-bottom: 1.5rem;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
  }
  
  .social-links {
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
  }
  
  .footer-heading {
    text-align: center;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    position: relative;
  }
  
  .footer-links {
    text-align: center;
    max-width: 250px;
    margin: 0 auto;
  }
  
  .footer-links li {
    margin-bottom: 0.7rem;
  }
  
  .footer-contact {
    text-align: center;
    max-width: 280px;
    margin: 0 auto;
  }
  
  .footer-contact p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .footer-developer {
    justify-content: center;
    margin-top: 1.5rem;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .footer-dev-link {
    margin-top: 0;
    margin-left: 0 !important;
  }

  /* Footer: mejor espaciado y subrayado centrado del heading en pantallas medias/pequeñas */
  .footer-gradient .row > [class*="col-"] {
    margin-bottom: 1.25rem;
  }
  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 576px) {

  
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .footer-gradient {
    padding: 2rem 0 1.5rem 0 !important;
  }
  
  .footer-gradient .container {
    padding: 0 0.75rem;
  }
  
  .footer-heading {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: white !important;
  }
  
  .footer-link, .footer-contact p {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
  .footer-social-link {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .footer-description {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    max-width: 250px;
  }
  
  .footer-copyright, .footer-dev-text {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  /* Footer: better mobile organization */
  .footer-gradient .row > [class*="col-"] {
    margin-bottom: 1.5rem;
  }
  
  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }
  
  .footer-links li {
    margin-bottom: 0;
    width: 100%;
    text-align: center;
  }
  
  .footer-gradient .text-md-end {
    text-align: center !important;
    margin-top: 1rem;
  }
  
  .footer-logo {
    height: 45px;
    width: auto;
  }
  
  .footer-divider {
    margin: 1.5rem 0 1rem 0;
  }
}

/* Tablet and Medium Screen Responsive - Footer specific */
@media (min-width: 769px) and (max-width: 1024px) {
  .footer-gradient {
    padding: 3rem 0 !important;
  }
  
  .footer-gradient .container {
    max-width: 720px;
  }
  
  .footer-gradient .row {
    justify-content: center;
  }
  
  .footer-gradient [class*="col-lg-2"],
  .footer-gradient [class*="col-lg-3"] {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .footer-gradient .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .footer-brand {
    justify-content: center;
    margin-bottom: 1.5rem;
  }
  
  .footer-logo {
    height: 70px;
    width: auto;
  }
  
  .footer-description {
    max-width: 400px;
    margin: 0 auto 1.5rem auto;
    text-align: center;
    font-size: 0.95rem;
  }
  
  .social-links {
    justify-content: center;
    gap: 1rem;
  }
  
  .footer-heading {
    text-align: center;
    font-size: 1.1rem;
  }
  
  .footer-links,
  .footer-contact {
    text-align: center;
  }
  
  .footer-social-link {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }
}

/* Large Desktop Responsive - Footer optimization */
@media (min-width: 1200px) {
  .footer-gradient {
    padding: 4rem 0 !important;
  }
  
  .footer-gradient .container {
    max-width: 1140px;
  }
  
  .footer-brand {
    margin-bottom: 2rem;
  }
  
  .footer-logo {
    height: 90px;
    width: auto;
  }
  
  .footer-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 350px;
  }
  
  .footer-heading {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }
  
  .footer-links li {
    margin-bottom: 0.7rem;
  }
  
  .footer-link {
    font-size: 0.95rem;
  }
  
  .footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
  }
  
  .footer-social-link {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  
  .social-links {
    gap: 1.2rem;
    margin-top: 1.5rem;
  }
  
  .footer-divider {
    margin: 3rem 0;
  }
  
  .footer-copyright,
  .footer-dev-text {
    font-size: 0.9rem;
  }
}

/* Extra Large Desktop Responsive - Footer fine-tuning */
@media (min-width: 1400px) {
  .footer-gradient {
    padding: 4.5rem 0 !important;
  }
  
  .footer-gradient .container {
    max-width: 1320px;
  }
  
  .footer-brand {
    margin-bottom: 2.5rem;
  }
  
  .footer-logo {
    height: 100px;
    width: auto;
  }
  
  .footer-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 400px;
  }
  
  .footer-heading {
    font-size: 1.3rem;
    margin-bottom: 1.75rem;
  }
  
  .footer-links li {
    margin-bottom: 0.8rem;
  }
  
  .footer-link {
    font-size: 1rem;
  }
  
  .footer-contact p {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }
  
  .footer-social-link {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
  
  .social-links {
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .footer-divider {
    margin: 3.5rem 0;
  }
  
  .footer-copyright,
  .footer-dev-text {
    font-size: 0.95rem;
  }
  
  .footer-heading::after {
    width: 40px;
    height: 3px;
  }
}

/* WhatsApp Floating Button Responsive */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px !important;
    height: 50px !important;
    bottom: 20px !important;
    right: 20px !important;
    font-size: 1.4rem !important;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    width: 45px !important;
    height: 45px !important;
    bottom: 15px !important;
    right: 15px !important;
    font-size: 1.2rem !important;
  }
}

/* Footer heading underline adjustments for all breakpoints */
@media (max-width: 768px) {
  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
  }
}

@media (min-width: 1200px) {
  .footer-heading::after {
    width: 35px;
  }
}

/* Responsive styles for new modern design */
@media (max-width: 768px) {
  
  .section-title {
    font-size: 2rem;
  }
  
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 1rem;
    max-width: 100%;
    overflow: hidden;
  }
  
  .category-image {
    width: 120px;
    height: 120px;
  }
  
  /* Mejorar las cards de categorías */
  .category-card,
  .product-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 0 auto;
    max-width: 100%;
  }
  
  .product-item {
    flex: 0 0 280px;
    margin-right: 1rem;
    max-width: 280px;
  }
  
  /* Mantener 2 columnas en tablets; solo ajustar gaps/padding */
  .category-showcase,
  .category-showcase.reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    margin: 0 auto;
    max-width: calc(100vw - 2rem);
    overflow: hidden;
  }
  
  .category-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0;
  }
  
  .carousel-btn {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    background: rgba(240, 189, 54, 0.9);
    color: #000;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  }
  
  .carousel-btn:hover {
    background: #f0bd36;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  }
  
  .carousel-btn.prev {
    left: 10px;
  }
  
  .carousel-btn.next {
    right: 10px;
  }

  /* Estilos específicos para botones de carrusel en mobile */
  .featured-prev, .featured-next, .new-prev, .new-next {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    background: rgba(240, 189, 54, 0.9);
    color: #000;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  }
  
  .featured-prev:hover, .featured-next:hover, .new-prev:hover, .new-next:hover {
    background: #f0bd36;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  }
  
  .featured-prev, .new-prev {
    left: 10px;
  }
  
  .featured-next, .new-next {
    right: 10px;
  }
}

@media (max-width: 576px) {
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  /* 4 categories per row on mobile */
  .category-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 1rem; 
    padding: 0 1rem;
    justify-items: center;
  }
  .category-image { width: 100px; height: 100px; }
  
  /* Mejorar el carrusel para móviles */
  .product-item {
    flex: 0 0 260px;
    margin-right: 1rem;
    scroll-snap-align: start;
  }
  
  /* Contenedor del carrusel con scroll suave */
  .products-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0;
    gap: 1rem;
  }
  
  .products-carousel::-webkit-scrollbar {
    display: none;
  }
  
  /* Stack category info above products on small phones */
  .category-showcase,
  .category-showcase.reverse {
    grid-template-columns: 1fr;
    grid-template-areas:
      'info'
      'products';
    gap: 1rem;
    padding: 1rem;
    margin: 0 0.5rem;
    max-width: calc(100vw - 1rem);
    overflow: hidden;
  }
  
  .category-large-image {
    width: 80px;
    height: 80px;
  }
  
  .category-title {
    font-size: 1.4rem;
  }

  /* Botones del carrusel más visibles en móvil */
  .carousel-btn, .featured-prev, .featured-next, .new-prev, .new-next { 
    display: flex; 
    width: 40px; 
    height: 40px; 
    font-size: 1rem;
    background: #f0bd36;
    color: #000;
    border: none;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    align-items: center;
    justify-content: center;
  }
  
  .carousel-btn:hover, .featured-prev:hover, .featured-next:hover, .new-prev:hover, .new-next:hover {
    background: #d39320;
    transform: translateY(-50%) scale(1.1);
  }
  
  .carousel-btn.prev, .featured-prev, .new-prev { left: 8px; }
  .carousel-btn.next, .featured-next, .new-next { right: 8px; }

  /* Category showcase: 2 columns for better readability on phones */
  .category-section .category-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0;
  }
  .category-section .product-card-modern {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto;
    max-width: 100%;
  }
  .category-section .product-image-modern {
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }
  .category-section .card-body {
    padding: 0.75rem;
  }
  .category-section .card-body .card-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
  }
  .category-section .card-body .card-text { display: none; }
  .category-section .product-price { font-size: 1rem; }
  .category-section .btn { padding: 0.5rem 0.75rem; font-size: 0.85rem; }
  
  /* Hide details button to simplify mobile cards */
  .category-section .category-products-grid .btn-outline-primary { display: none; }

  /* Mobile cross-browser compatibility adjustments */
  html, body { -webkit-text-size-adjust: 100%; }
  body { -webkit-tap-highlight-color: rgba(0,0,0,0); }

  /* Fallbacks for older Safari */
  .category-grid { grid-gap: 1rem; }
  .category-showcase, .category-showcase.reverse { grid-gap: 1rem; }
  .category-section .category-products-grid { grid-gap: 0.75rem; }

  /* Utility for full height on mobile browsers */
  .min-100dvh { min-height: 100dvh; min-height: -webkit-fill-available; }
}

/* === PRODUCT DETAIL PAGE RESPONSIVE === */
@media (max-width: 768px) {
    .product-detail-info {
        padding: 20px;
    }
    
    .description-header {
        padding: 15px;
    }
    
    .description-content {
        padding: 20px;
    }
    
    .description-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 1.5rem;
    }
    
    #productImage,
    img.product-detail-image {
        height: 300px !important;
    }
}

/* ============================================ */
/* HERO RESPONSIVE FIXES - MÁXIMA ESPECIFICIDAD */
/* ============================================ */
@media (max-width: 768px) {
  section.hero-modern .hero-content h1,
  .hero-modern .hero-content h1,
  .hero-content h1 {
    font-size: 1.75rem !important;
    color: white !important;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 1), 2px 2px 4px rgba(0, 0, 0, 1) !important;
    font-weight: 900 !important;
    background: none !important;
    -webkit-text-fill-color: white !important;
  }

  section.hero-modern .hero-content h2,
  .hero-modern .hero-content h2,
  .hero-content h2 {
    color: black !important;
    text-shadow: none !important;
    font-weight: 700 !important;
    background: rgba(255, 255, 255, 0.8) !important;
    -webkit-text-fill-color: black !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    display: inline-block !important;
    backdrop-filter: blur(4px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  }

  section.hero-modern .hero-content p,
  .hero-modern .hero-content p,
  .hero-content p {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1) !important;
    background: none !important;
    -webkit-text-fill-color: white !important;
  }
}

@media (max-width: 576px) {
  /* Estilo especial para el subtítulo en móviles pequeños */
  section.hero-modern .hero-content h2,
  .hero-modern .hero-content h2,
  .hero-content h2 {
    background: rgba(255, 255, 255, 0.9) !important;
    color: black !important;
    padding: 10px 20px !important;
    border-radius: 12px !important;
    font-size: 1.1rem !important;
    line-height: 1.3 !important;
    margin: 0.5rem auto !important;
    max-width: 280px !important;
    text-align: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(6px) !important;
  }
}

