/* assets/css/products.css - Estilos específicos para la página de productos */

.products-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/imagen-hero-prod_1.png');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: white;
    text-align: center;
    margin-top: 20px;
}

.product-detail-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    background: white;
    height: 100%;
}

.product-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 300px;
    object-fit: cover;
    width: 100%;
}

.product-body {
    padding: 25px;
}

.product-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.product-features {
    margin: 20px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.feature-icon {
    color: var(--tertiary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.download-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.download-btn:hover {
    background: linear-gradient(135deg, var(--tertiary-color) 0%, var(--primary-color) 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.specs-table th, .specs-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
}

.specs-table th {
    background-color: var(--light-color);
    color: var(--primary-color);
    font-weight: 600;
}

/* Filtros de Productos - CORREGIDO */
.product-filters {
    background-color: var(--light-color);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 35px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.filter-title {
    color: var(--primary-color);
    margin-bottom: 18px;
    font-weight: 700;
    font-size: 1.4rem;
    text-align: center;
}

.filter-buttons-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    margin: 5px;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
}

.filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
    background-color: rgba(49, 85, 58, 0.1);
}

.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(49, 85, 58, 0.3);
}

/* Filtros de Productos - CORREGIDO */
.product-filters {
    background-color: var(--light-color);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 35px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.filter-title {
    color: var(--primary-color);
    margin-bottom: 18px;
    font-weight: 700;
    font-size: 1.4rem;
    text-align: center;
}

.filter-buttons-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    margin: 5px;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
}

.filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
    background-color: rgba(49, 85, 58, 0.1);
}

.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(49, 85, 58, 0.3);
}

/* Estilos para productos y animaciones de filtro - CORREGIDO */
.product-item {
    transition: all 0.4s ease;
    opacity: 1;
    transform: scale(1);
    height: auto;
    overflow: visible;
}

.product-item.hidden {
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    transform: scale(0.95);
    pointer-events: none;
}

/* Efecto de carga durante el filtrado */
.products-container.filtering .product-item {
    transition-duration: 0.5s;
}

/* Mensaje cuando no hay resultados */
.no-results {
    text-align: center;
    padding: 40px;
    background-color: var(--light-color);
    border-radius: 10px;
    color: var(--text-color);
    display: none;
    width: 100%;
}

.no-results.show {
    display: block;
}

/* Responsive para página de productos */
@media (max-width: 992px) {
    .product-image {
        height: 250px;
    }
    
    .filter-buttons-container {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .product-filters {
        padding: 20px 15px;
    }
    
    .filter-title {
        font-size: 1.2rem;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .filter-buttons-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        width: 100%;
        margin: 5px 0;
    }
}

/* Estilos para el calendario de temporada */
.harvest-calendar-section {
    margin: 25px 0;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.harvest-calendar {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.calendar-months {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.calendar-months .month {
    font-size: 0.75rem;
    text-align: center;
    width: 8%;
    padding: 3px 0;
    color: #6c757d;
}

.calendar-months .month.active {
    color: #28a745;
    font-weight: 600;
}

.calendar-bar {
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    margin: 8px 0;
}

.harvest-period {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, rgba(40,167,69,0.3) 0%, rgba(40,167,69,0.7) 100%);
    border-radius: 0; /* Eliminamos el border-radius para segmentos individuales */
}

/* Añadimos border-radius solo al primer y último segmento si es necesario */
.calendar-bar .harvest-period:first-child {
    border-radius: 10px 0 0 10px;
}

.calendar-bar .harvest-period:last-child {
    border-radius: 0 10px 10px 0;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    margin: 0 10px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 5px;
}

.legend-color.harvest-season {
    background: linear-gradient(90deg, rgba(40,167,69,0.3) 0%, rgba(40,167,69,0.7) 100%);
}