 /* ============================================================
   PANEL DE FILTROS - CONFIGURACIÓN COMPLETA Y FINAL
   Incluye: Responsive, Zoom, Selectores y Buscador
============================================================ */

.filter-sidebar {
    padding-top: 18px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.filter-panel {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 20px 15px;
    transition: all 0.3s ease;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.filter-panel .border {
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
    background: #f8f9fa;
    border: 1px solid #e0e0e0 !important;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.filter-panel .form-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 8px;
    word-wrap: break-word;
}

.filter-label-top {
    font-size: 0.85rem;
    font-weight: 400;
    color: #555;
    line-height: 1.2;
    margin-bottom: 2px;
    display: block;
}

.filter-label-bottom {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    display: block;
}

.filter-panel .form-select {
    width: 100%;
    max-width: 100%;
    padding: 8px 35px 8px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: all 0.3s ease;
    min-width: auto;
    box-sizing: border-box;
    background: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

.filter-panel .form-select:hover {
    border-color: #49ad33;
}

.filter-panel .form-select:focus {
    outline: none;
    border-color: #49ad33;
    box-shadow: 0 0 5px rgba(73,173,51,0.4);
}

/* Color verde en opciones seleccionadas */
.filter-panel .form-select option:checked,
.filter-panel .form-select option:hover {
    background-color: #49ad33 !important;
    color: white !important;
}

.filter-panel .form-select option {
    background-color: white;
    color: #333;
    padding: 10px 12px;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-panel .form-select option:checked {
    background: linear-gradient(0deg, #49ad33 0%, #49ad33 100%);
    color: white;
    font-weight: 600;
}

#filter-brand,
#filter-industry {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-panel .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
    margin-bottom: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.filter-panel .col-12 {
    padding: 0;
    margin-top: 5px;
    margin-bottom: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.filter-panel #clear-filters {
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-weight: 600;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
    box-sizing: border-box;
}

.filter-panel #clear-filters:hover {
    background-color: #49ad33;
    color: #fff;
    border-color: #49ad33;
    transform: translateY(-2px);
}

/* ============================================================
    BUSCADOR DE PRODUCTOS - AJUSTE ESPECÍFICO
============================================================ */

/* El contenedor que envuelve el input */
.search-container.container {
    max-width: 1200px !important; /* Forzamos el ancho que ya usas en el resto */
    margin-left: auto !important;  /* ¡IMPORTANTE! Esto corrige el 'margin-left: 180px' */
    margin-right: auto !important; /* Centra el buscador perfectamente */
    padding: 0 15px;
}

/* El input específico con ID search-bar y clase form-control */
#search-bar.form-control {
    height: 50px;                /* Le damos un poco más de presencia */
    border-radius: 10px;         /* Esquinas suavizadas según tu estilo */
    border: 1px solid #ccc;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Sombra suave para que resalte */
}

/* El efecto cuando el usuario hace clic para escribir (Focus) */
#search-bar.form-control:focus {
    border-color: #49ad33;       /* El verde de tu marca */
    box-shadow: 0 0 0 0.25rem rgba(73, 173, 51, 0.25); /* Resplandor verde */
    outline: none;
}

/* Ajuste para móviles: Que no se vea gigante */
@media (max-width: 768px) {
    .search-container.container {
        margin-top: 50px !important; /* En móvil reducimos ese espacio de 150px */
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* ============================================================
   RESOLUCIONES DESKTOP
============================================================ */

/* Pantallas Ultra Grandes (+1921px) */
@media (min-width: 1921px) {
    .filter-panel {
        padding: 25px 20px;
        max-width: 420px;
    }
    
    .filter-panel .border {
        padding: 18px;
        margin-bottom: 18px;
    }
    
    .filter-panel .form-select {
        font-size: 1.05rem;
        padding: 10px 40px 10px 14px;
    }
    
    .filter-panel .form-label {
        font-size: 1.05rem;
    }
    
    .filter-label-top {
        font-size: 0.9rem;
    }
    
    .filter-label-bottom {
        font-size: 1.1rem;
    }
    
    .filter-panel #clear-filters {
        font-size: 1rem;
        padding: 12px;
    }
    
    .search-container,
    input[type="search"] {
        max-width: 1200px;
    }
}

/* Pantallas Muy Grandes (1601px - 1920px) */
@media (min-width: 1601px) and (max-width: 1920px) {
    .filter-panel {
        padding: 22px 18px;
        max-width: 380px;
    }
    
    .filter-panel .border {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .filter-panel .form-select {
        font-size: 1rem;
        padding: 9px 38px 9px 12px;
    }
    
    .filter-panel .form-label {
        font-size: 1rem;
    }
    
    .filter-label-top {
        font-size: 0.88rem;
    }
    
    .filter-label-bottom {
        font-size: 1.05rem;
    }
    
    .search-container,
    input[type="search"] {
        max-width: 1100px;
    }
}

/* Pantallas Grandes (1400px - 1600px) */
@media (min-width: 1400px) and (max-width: 1600px) {
    .filter-panel {
        padding: 20px 15px;
        max-width: 350px;
    }
    
    .filter-panel .border {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .filter-panel .form-select,
    #filter-brand,
    #filter-industry {
        min-width: auto;
        max-width: 100%;
        padding: 8px 35px 8px 12px;
    }
    
    .search-container,
    input[type="search"] {
        max-width: 1000px;
    }
}

/* Desktop Grande (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .filter-panel {
        padding: 20px 15px;
        max-width: 320px;
    }
    
    .filter-panel .form-select,
    #filter-brand,
    #filter-industry {
        min-width: 260px;
        max-width: 100%;
        padding: 8px 35px 8px 12px;
    }
    
    .search-container,
    input[type="search"] {
        max-width: 900px;
    }
}

/* Laptop/Desktop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .filter-panel {
        padding: 18px 15px;
        max-width: 300px;
    }
    
    .filter-panel .form-select,
    #filter-brand,
    #filter-industry {
        min-width: 240px;
        max-width: 100%;
        font-size: 0.9rem;
        padding: 7px 30px 7px 10px;
    }
    
    .search-container,
    input[type="search"] {
        max-width: 800px;
    }
}

/* ============================================================
   TABLET LANDSCAPE (max-width: 1024px)
============================================================ */
@media (max-width: 1024px) {
    .filter-sidebar {
        width: 100%;
        padding: 15px 0;
        max-width: 100%;
    }
    
    .filter-panel {
        margin: 0;
        padding: 15px 10px !important;
        max-width: 100%;
    }
    
    .filter-panel .border {
        padding: 12px 10px !important;
        margin-bottom: 12px !important;
    }
    
    .filter-panel .form-select,
    #filter-brand,
    #filter-industry {
        min-width: auto;
        width: 100%;
        font-size: 0.9rem;
        padding: 7px 30px 7px 10px;
    }
    
    .filter-panel .form-label {
        font-size: 0.92rem;
    }
    
    .filter-label-top {
        font-size: 0.82rem;
    }
    
    .filter-label-bottom {
        font-size: 0.97rem;
    }
    
    .search-container,
    input[type="search"] {
        max-width: 100%;
        padding: 9px 12px;
        font-size: 0.95rem;
    }
}

/* ============================================================
   TABLET PORTRAIT (max-width: 768px)
============================================================ */
@media (max-width: 768px) {
    .filter-sidebar {
        padding: 12px 0;
    }
    
    .filter-panel {
        padding: 12px 8px !important;
        margin: 0;
    }
    
    .filter-panel .border {
        padding: 10px 8px !important;
        margin-bottom: 10px !important;
    }
    
    .filter-panel .form-label {
        font-size: 0.9rem;
    }
    
    .filter-label-top {
        font-size: 0.8rem;
    }
    
    .filter-label-bottom {
        font-size: 0.95rem;
    }
    
    .filter-panel .form-select {
        font-size: 0.88rem;
        padding: 6px 28px 6px 8px;
    }
    
    .filter-panel #clear-filters {
        font-size: 0.9rem;
        padding: 9px;
    }
    
    .search-container {
        padding: 0 10px;
        margin-bottom: 15px;
    }
    
    input[type="search"] {
        font-size: 0.9rem;
        padding: 8px 10px;
    }
}

/* ============================================================
   MÓVIL GRANDE (max-width: 480px)
============================================================ */
@media (max-width: 480px) {
    .filter-sidebar {
        padding: 10px 0;
    }
    
    .filter-panel {
        padding: 10px 6px !important;
        border-radius: 10px;
    }
    
    .filter-panel .border {
        padding: 8px 6px !important;
        margin-bottom: 8px !important;
        border-radius: 8px;
    }
    
    .filter-panel .form-label {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
    
    .filter-label-top {
        font-size: 0.75rem;
    }
    
    .filter-label-bottom {
        font-size: 0.88rem;
        font-weight: 600;
    }
    
    .filter-panel .form-select {
        font-size: 0.85rem;
        padding: 6px 25px 6px 8px;
    }
    
    .filter-panel #clear-filters {
        font-size: 0.85rem;
        padding: 8px;
        margin-top: 8px;
    }
    
    .search-container {
        padding: 0 8px;
        margin-bottom: 12px;
    }
    
    input[type="search"] {
        font-size: 0.85rem;
        padding: 7px 10px;
    }
}

/* ============================================================
   MÓVIL MEDIANO (max-width: 390px)
============================================================ */
@media (max-width: 390px) {
    .filter-panel {
        padding: 10px 6px;
    }
    
    .filter-panel .border {
        padding: 9px;
        margin-bottom: 9px;
    }
    
    .filter-panel .form-label {
        font-size: 0.83rem;
    }
    
    .filter-label-top {
        font-size: 0.73rem;
    }
    
    .filter-label-bottom {
        font-size: 0.86rem;
    }
    
    .filter-panel .form-select {
        font-size: 0.83rem;
        padding: 5px 24px 5px 7px;
    }
    
    .filter-panel #clear-filters {
        font-size: 0.83rem;
        padding: 7px;
    }
    
    .search-container {
        padding: 0 6px;
    }
    
    input[type="search"] {
        font-size: 0.83rem;
        padding: 6px 8px;
    }
}

/* ============================================================
   MÓVIL PEQUEÑO - iPhone SE (max-width: 375px)
============================================================ */
@media (max-width: 375px) {
    .filter-panel {
        padding: 8px 5px;
        border-radius: 8px;
    }
    
    .filter-panel .border {
        padding: 8px;
        margin-bottom: 8px;
    }
    
    .filter-panel .form-label {
        font-size: 0.82rem;
        margin-bottom: 5px;
    }
    
    .filter-label-top {
        font-size: 0.72rem;
    }
    
    .filter-label-bottom {
        font-size: 0.85rem;
    }
    
    .filter-panel .form-select {
        font-size: 0.82rem;
        padding: 5px 22px 5px 6px;
    }
    
    .filter-panel #clear-filters {
        font-size: 0.82rem;
        padding: 7px;
    }
    
    .search-container {
        padding: 0 5px;
    }
    
    input[type="search"] {
        font-size: 0.82rem;
        padding: 6px 8px;
    }
}

/* ============================================================
   MÓVIL MUY PEQUEÑO (max-width: 360px)
============================================================ */
@media (max-width: 360px) {
    .filter-panel {
        padding: 7px 4px;
    }
    
    .filter-panel .border {
        padding: 7px;
        margin-bottom: 7px;
    }
    
    .filter-panel .form-label {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .filter-label-top {
        font-size: 0.7rem;
    }
    
    .filter-label-bottom {
        font-size: 0.83rem;
    }
    
    .filter-panel .form-select {
        font-size: 0.8rem;
        padding: 5px 20px 5px 6px;
    }
    
    .filter-panel #clear-filters {
        font-size: 0.8rem;
        padding: 6px;
    }
    
    .search-container {
        padding: 0 4px;
    }
    
    input[type="search"] {
        font-size: 0.8rem;
        padding: 5px 7px;
    }
}

/* ============================================================
   CASOS ESPECIALES POR ALTURA
============================================================ */

/* Móvil Horizontal - Bajo (max-height: 600px) */
@media (max-height: 600px) and (orientation: landscape) {
    .filter-sidebar {
        padding: 8px 0;
    }
    
    .filter-panel {
        padding: 8px !important;
    }
    
    .filter-panel .border {
        padding: 8px !important;
        margin-bottom: 8px !important;
    }
    
    .filter-panel .form-label {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }
    
    .filter-label-top {
        font-size: 0.75rem;
    }
    
    .filter-label-bottom {
        font-size: 0.88rem;
    }
    
    .filter-panel .form-select {
        padding: 5px 25px 5px 8px;
        font-size: 0.85rem;
    }
    
    .filter-panel #clear-filters {
        padding: 6px;
        font-size: 0.85rem;
        margin-top: 6px;
    }
    
    input[type="search"] {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}

/* Tablets Altas (min-height: 1000px) */
@media (min-height: 1000px) and (min-width: 768px) {
    .filter-panel {
        padding: 25px 18px;
    }
    
    .filter-panel .border {
        padding: 18px;
        margin-bottom: 18px;
    }
    
    .filter-panel .form-label {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .filter-label-top {
        font-size: 0.88rem;
    }
    
    .filter-label-bottom {
        font-size: 1.05rem;
    }
    
    .filter-panel .form-select {
        padding: 10px 38px 10px 12px;
        font-size: 1rem;
    }
    
    .filter-panel #clear-filters {
        padding: 12px;
        font-size: 1rem;
        margin-top: 12px;
    }
}

/* ============================================================
   PREVENCIÓN TOTAL DE OVERFLOW
============================================================ */

.filter-sidebar,
.filter-sidebar *,
.filter-panel,
.filter-panel *,
.filter-panel .form-select,
.filter-panel .border,
#filter-brand,
#filter-industry,
.filter-panel #clear-filters {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.filter-sidebar,
.filter-panel {
    overflow-x: hidden !important;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

.row > * {
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
}

.main-content,
.container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.hero-header,
.products-wrapper,
.col-lg-9 {
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

/* ============================================================
   LAYOUT CON SIDEBAR
============================================================ */

@media (min-width: 992px) {
    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    .col-lg-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }
}

@media (max-width: 991px) {
    .col-lg-3,
    .col-lg-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Para Firefox */
@-moz-document url-prefix() {
    .filter-panel .form-select {
        padding-right: 30px;
    }
}

/* ==== CATEGORÍAS EN CARD - AJUSTADAS ==== */
.categories-section {
    padding-top: 20px;
    max-width: 1400px; /* Límite de ancho total */
    margin: 0 auto; /* Centrado */
    padding-left: 40px; /* Margen izquierdo */
    padding-right: 40px; /* Margen derecho */
}

.category-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 270px;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    max-width: 320px; /* Reducido de implícito ~350px a 320px */
    margin: 0 auto; /* Centrado dentro de su columna */
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.15);
}

.category-img-wrapper {
    height: 50%;
    overflow: hidden;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .category-img {
    transform: scale(1.08);
}

.category-info {
    padding: 13px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222 !important;
    margin-bottom: 8px;
    text-decoration: none !important;
}

.category-desc {
    font-size: 0.88rem;
    color: #666 !important;
    line-height: 1.4;
    text-align: justify;
    text-decoration: none !important;
}




/* ========== QUITAR LÍNEAS AZULES ========== */
.category-card-link {
    text-decoration: none !important;
    color: inherit;
}

.category-card-link:hover,
.category-card-link:focus,
.category-card-link:visited,
.category-card-link:active {
    text-decoration: none !important;
    color: inherit;
}

.category-card-link .category-title,
.category-card-link .category-desc {
    text-decoration: none !important;
    color: #222;
}

.category-card-link:hover .category-title {
    color: #222;
}

.category-card-link:hover .category-desc {
    color: #666;
}

a.category-card-link {
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
    -moz-text-decoration: none !important;
}

/* ====== PRODUCTOS MODERNOS - DISEÑO FINAL ====== */
.product-grid {
    margin-top: 20px;
}

.product-card-modern {
    display: block;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.product-card-modern:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}

.product-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.4s ease;
}

.product-card-modern:hover .product-image {
    transform: scale(1.08);
}

.product-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(73, 173, 51, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card-modern:hover .product-overlay {
    opacity: 1;
}

.product-overlay i {
    font-size: 2.5rem;
    color: white;
}

.product-info-modern {
    padding: 18px;
    text-align: center;
    background: white;
}

.product-title-modern {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.product-type-modern {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.product-type-modern i {
    color: #49ad33;
}

.product-badge {
    display: inline-block;
    margin-top: 10px;
    background: linear-gradient(135deg, #49ad33, #3d8b2a);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Alineación y transiciones para vistas */
#categories-view, #products-view {
    min-height: 70vh;
    transition: all 0.4s ease;
    margin-left: 0;
}

#products-grid .col-lg-3 {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
}

/* Botón volver en filtros */
#back-to-categories {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#back-to-categories:hover {
    background-color: #49ad33;
    color: white;
    border-color: #49ad33;
}

/* Título de categoría seleccionada */
#selected-category-title {
    color: #333;
    font-size: 1.8rem;
}

/* Paginación */
#products-view .pagination-controls {
    display: none;
}

.main-content {
    margin-bottom: 100px;
}

/* ========== QUITAR LÍNEAS AZULES ========== */
.category-card-link {
    text-decoration: none !important;
    color: inherit;
}

.category-card-link:hover,
.category-card-link:focus,
.category-card-link:visited,
.category-card-link:active {
    text-decoration: none !important;
    color: inherit;
}

.category-card-link .category-title,
.category-card-link .category-desc {
    text-decoration: none !important;
    color: #222;
}

.category-card-link:hover .category-title {
    color: #222;
}

.category-card-link:hover .category-desc {
    color: #666;
}

a.category-card-link {
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
    -moz-text-decoration: none !important;
}

/* ============================================================
   HERO HEADER
============================================================ */
.hero-header {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
                url('https://apce.mx/fondos2prueba/Fondo con elemento.png') center/cover no-repeat;
    color: white;
    padding: 30px 40px;
    text-align: left;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    min-height: 32vh;
    box-sizing: border-box;
    margin-left: 0;
    margin-top: 2%;
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.brand-title {
    font-size: 2.3em;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 140px 0 15px 0;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.3em;
    font-weight: 400;
    max-width: 1200px;
    line-height: 1.4;
    margin-top: 5px;
}

.textHero {
    font-size: 1.1em;
    font-weight: 400;
    max-width: 1200px;
    line-height: 1.6;
    margin-top: 15px;
}

/* ============================================================
   SECCIÓN DE PRODUCTOS
============================================================ */
.products-section-container {
    padding: 2rem 0;
    background: #ffffff;
}

.products-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #212529;
    position: relative;
    padding-bottom: 1rem;
}

.products-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #49ad33, #3d8b2a);
    border-radius: 2px;
}

/* ============================================================
   GRID DE PRODUCTOS
============================================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ecef;
    text-decoration: none;
    color: inherit;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    border-color: #49ad33;
    text-decoration: none;
}

.product-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
    transition: transform 0.4s ease;
}

.product-item:hover .product-image-container img {
    transform: scale(1.08);
}

.product-details {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-description {
    color: #6c757d;
    flex-grow: 1;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.product-specs {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.product-brand,
.product-category {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

.product-brand strong,
.product-category strong {
    color: #212529;
}

/* ============================================================
   RESPONSIVE COMPLETO - PRODUCTS
============================================================ */

/* Tablet Landscape (1024px) */
@media (max-width: 1024px) {
    #categories-view, #products-view {
        margin-left: 0;
    }
    
    .hero-header {
        min-height: 28vh;
        padding: 25px 30px;
    }
    
    .brand-title {
        font-size: 2rem;
        margin: 100px 0 12px 0;
    }
    
    .hero-subtitle {
        font-size: 1.15em;
    }
}

/* Tablet Portrait (768px) */
@media (max-width: 768px) {
    #categories-view, #products-view {
        margin-left: 0;
        min-height: 50vh;
    }
    
    .category-card {
        height: 250px;
    }
    
    .category-img-wrapper {
        height: 140px;
    }
    
    .category-title {
        font-size: 1rem;
    }
    
    .product-image-wrapper {
        height: 180px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.25rem;
    }
    
    .products-section-container {
        padding: 2rem 0;
    }
    
    .products-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .hero-header {
        min-height: 24vh;
        padding: 20px 20px;
    }
    
    .brand-title {
        font-size: 1.75rem;
        margin: 80px 0 10px 0;
        letter-spacing: 1.5px;
    }
    
    .hero-subtitle {
        font-size: 1.05em;
    }
    
    .textHero {
        font-size: 1em;
    }
    
    #products-grid .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Móvil Grande (480px) */
@media (max-width: 480px) {
    .category-card {
        height: 230px;
    }
    
    .category-img-wrapper {
        height: 120px;
    }
    
    .category-info {
        padding: 10px;
    }
    
    .category-title {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    
    .category-desc {
        font-size: 0.82rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-image-container {
        height: 200px;
    }
    
    .product-image-wrapper {
        height: 160px;
    }
    
    .product-title-modern {
        font-size: 1.05rem;
    }
    
    .product-info-modern {
        padding: 15px;
    }
    
    .hero-header {
        min-height: 22vh;
        padding: 18px 15px;
    }
    
    .brand-title {
        font-size: 1.5rem;
        margin: 60px 0 8px 0;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 0.95em;
    }
    
    .textHero {
        font-size: 0.9em;
        margin-top: 12px;
    }
    
    #products-grid .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    #selected-category-title {
        font-size: 1.5rem;
    }
}

/* Móvil Mediano (390px) */
@media (max-width: 390px) {
    .brand-title {
        font-size: 1.4rem;
    }
    
    .hero-subtitle {
        font-size: 0.9em;
    }
}

/* Móvil Pequeño (375px) */
@media (max-width: 375px) {
    .brand-title {
        font-size: 1.3rem;
        margin: 50px 0 8px 0;
    }
    
    .hero-subtitle {
        font-size: 0.88em;
    }
    
    .textHero {
        font-size: 0.85em;
    }
    
    .category-card {
        height: 220px;
    }
}

/* Móvil Muy Pequeño (360px) */
@media (max-width: 360px) {
    .brand-title {
        font-size: 1.2rem;
    }
    
    .hero-header {
        min-height: 20vh;
        padding: 15px 12px;
    }
}

/* Móvil Horizontal */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-header {
        min-height: 30vh;
        padding: 15px 20px;
    }
    
    .brand-title {
        margin: 40px 0 8px 0;
        font-size: 1.4rem;
    }
    
    .hero-subtitle {
        font-size: 0.95em;
    }
    
    .textHero {
        font-size: 0.9em;
        margin-top: 10px;
    }
    
    #categories-view, #products-view {
        min-height: auto;
    }
}