/* ============================================
   SISTEMA DE FILTROS 
   ============================================ */
:root
{
 --color-text-Grey-500:#454545;
 --color-dorado: #d89b00;
}
   

/* Layout del catálogo */
.catalog-section {
    padding: 80px 0;
    background: var(--background-blanco);
    min-height: 100vh;
}

.catalog-section__header {
    text-align: center;
    margin-bottom: 60px;
    margin-top: 130px;
}

.catalog-section__subtitle {
    color: var(--color-dorado);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 15px;
}

.catalog-section__title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 20px;
    color: #454545;
}

.catalog-section__description {
    color: var(--color-text-Grey-500);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Layout principal: Sidebar + Grid */
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* ============================================
   SIDEBAR DE FILTROS
   ============================================ */

.filters-sidebar {
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 30px;
    /* position: sticky; */
    top: 120px;
    box-shadow: var(--shadow-card);
}

/* Header del sidebar */
.filters-sidebar__header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 25px;
}

.filters-sidebar__title {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Botón limpiar filtros */
.filters-sidebar__clear {
    background: transparent;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filters-sidebar__clear:hover {
    background: var(--color-accent);
    color: #000000;
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

/* Contador de resultados */
.filters-sidebar__results {
    background: var(--color-secondary);
    border: 1px solid var(--color-accent);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
    color: var(--color-text);
}

.filters-sidebar__results span {
    color: var(--color-accent);
    font-size: 1.5rem;
    font-weight: 900;
}

/* ============================================
   GRUPOS DE FILTROS
   ============================================ */

.filter-group {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--color-border);
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.filter-group__options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ============================================
   CHECKBOXES PERSONALIZADOS
   ============================================ */

.filter-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 35px;
    user-select: none;
    transition: var(--transition);
}

.filter-checkbox:hover {
    transform: translateX(3px);
}

/* Ocultar checkbox nativo */
.filter-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Checkbox customizado */
.filter-checkbox__label {
    position: relative;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

/* Crear el checkbox visual */
.filter-checkbox__label::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-secondary);
    transition: var(--transition);
}

/* Checkmark */
.filter-checkbox__label::after {
    content: '✓';
    position: absolute;
    left: -32px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    color: #000000;
    font-size: 14px;
    font-weight: 900;
    transition: var(--transition);
}

/* Cuando está checked */
.filter-checkbox input:checked ~ .filter-checkbox__label::before {
    background: var(--gradient-primary);
    border-color: var(--color-accent);
}

.filter-checkbox input:checked ~ .filter-checkbox__label::after {
    transform: translateY(-50%) scale(1);
}

.filter-checkbox input:checked ~ .filter-checkbox__label {
    color: var(--color-text);
    font-weight: 600;
}

/* ============================================
   GRID DE PRODUCTOS
   ============================================ */

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(224px, 1fr));
    gap: 30px;
}
.catalog-grid a{text-decoration: none;}
/* Producto oculto por filtros */
.product-card--hidden {
    display: none !important;
}

/* Mensaje cuando no hay resultados */
.no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: var(--gradient-card);
    border: 2px dashed var(--color-border);
    border-radius: 12px;
}

.no-results-message__icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-results-message__title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-accent);
    margin-bottom: 15px;
}

.no-results-message__text {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1228px) {
    .catalog-section__header{margin-top: 100px;}
}

@media (max-width: 1024px) {
    .catalog-layout {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }

    .filters-sidebar {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .catalog-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .filters-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }

    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .filters-sidebar__header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .filters-sidebar__clear {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .catalog-section {
        padding: 40px 0;
    }

    .filters-sidebar {
        padding: 20px;
    }

    .filter-group__options {
        gap: 10px;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .filters-sidebar__results span {
        font-size: 1.2rem;
    }
}

/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.4s ease-out;
    /* border: 1px solid var(--color-border); */
}

/* Animación suave al filtrar */
.catalog-grid {
    transition: opacity 0.3s ease;
}

/* ============================================
   PRODUCT CARDS 
   ============================================ */

/* Block: product-card */
.product-card {
    background: #f2f2f2;
    /* border: 1px solid var(--color-border); */
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: 0 2px 20px rgba(189, 170, 1, 1);
}

/* Element: Contenedor de imagen */
.product-card__image {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 180px;
    border-bottom: 1px solid var(--color-border);
}

.product-card__image--light {
    background: #fff;
}

/* Element: Imagen principal */
.product-card__image-main {
    width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-card__image-main {
    transform: scale(1.05);
}

/* Element: Contenido del producto */
.product-card__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    padding-top: 0;
}

/* Element: Título compacto */
.product-card__title {
    font-size: 1.1rem;
    font-weight: 900;
    color: #454545;
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1.3;
    min-height: 2.6rem;
    display: flex;
    align-items: center;
}

/* Element: Grid de especificaciones compacto */
.product-card__specs-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* Element: Spec item individual */
.product-card__spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Element: Label de especificación */
.product-card__spec-label {
    color: #454545;
    font-weight: bold;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
   
}

/* Element: Valor de especificación */
.product-card__spec-value {
    color: #454545;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.2;
}

/* Modifier: Valor destacado (para capacidad) */
.product-card__spec-value--highlight {
    color: #454545;
    font-size: 1.1rem;
}

/* Element: Botón ver detalles */
.product-card__button {
    display: block;
    width: 100%;
    background: var(--gradient-primary);
    color: #000000;
    text-align: center;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: var(--transition);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.product-card__button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition);
}

.product-card__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3);
}

.product-card__button:hover::before {
    left: 100%;
}

/* Producto oculto por filtros */
.product-card--hidden {
    display: none !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .product-card__image {
        min-height: 150px;
        padding: 15px;
    }

    .product-card__image-main {
        max-height: 130px;
    }

    .product-card__content {
        padding: 15px;
        gap: 12px;
    }

    .product-card__title {
        font-size: 1rem;
        min-height: 2.4rem;
    }

    .product-card__specs-compact {
        gap: 10px;
    }

    .product-card__spec-label {
        font-size: 0.65rem;
    }

    .product-card__spec-value {
        font-size: 0.9rem;
    }

    .product-card__spec-value--highlight {
        font-size: 1rem;
    }

    .product-card__button {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .product-card__image {
        min-height: 140px;
        padding: 12px;
    }

    .product-card__image-main {
        max-height: 120px;
    }

    .product-card__content {
        padding: 12px;
        gap: 10px;
    }

    .product-card__specs-compact {
        gap: 8px;
    }
}

/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.5s ease-out backwards;
}

/* Delay escalonado para efecto cascada */
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }