/* ===== PÁGINAS MEJORADAS: PRODUCTOS, VIÑAS Y CEPAS ===== */

/* ================================
   ESTILOS GENERALES
   ================================ */
.section-title {
    color: #3f111c;
    font-weight: bold;
    margin-bottom: 1rem;
}
.product-card
.text-wine {
    color: #3f111c !important;
}

.bg-wine {
    background-color: #3f111c !important;
}

.btn-wine {
    background: linear-gradient(135deg, #3f111c 0%, #5a1a2a 100%);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-wine:hover {
    background: linear-gradient(135deg, #5a1a2a 0%, #3f111c 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(63, 17, 28, 0.3);
}

.btn-outline-wine {
    border: 2px solid #3f111c;
    color: #3f111c;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-wine:hover {
    background-color: #3f111c;
    color: white;
    transform: translateY(-2px);
}

/* ================================
   PÁGINA DE PRODUCTOS
   ================================ */
.categoria-seccion {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
    border-left: 4px solid #3f111c;
}

.categoria-titulo {
    color: #3f111c;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.categoria-descripcion {
    font-size: 1.1rem;
    line-height: 1.6;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(63, 17, 28, 0.15);
}

.product-image {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f5f0 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    padding: 15px;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.product-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

.sale-badge {
    background: #28a745;
    color: white;
}

.stock-badge {
    background: #dc3545;
    color: white;
}

.product-info {
    padding: 1.5rem;
}

.product-title a {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.product-title a:hover {
    color: #3f111c;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #3f111c;
}

.product-brand {
    display: flex;
    align-items: center;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-actions .btn {
    flex: 1;
    min-width: 100px;
}

/* ================================
   PÁGINA DE VIÑAS
   ================================ */
.vina-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.vina-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(63, 17, 28, 0.15);
}

.vina-card-header {
    background: linear-gradient(135deg, #3f111c 0%, #5a1a2a 100%);
    color: white;
    padding: 1.5rem;
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vina-icon {
    font-size: 2.5rem;
    opacity: 0.9;
}

.vina-badge {
    background: rgba(255,255,255,0.15);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2);
}

.vina-card-body {
    padding: 2rem;
}

.vina-title {
    color: #3f111c;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.vina-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.vina-details {
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.detail-item i {
    width: 20px;
    margin-right: 10px;
}

.vina-features h6 {
    color: #3f111c;
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: rgba(63, 17, 28, 0.1);
    color: #3f111c;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(63, 17, 28, 0.2);
}

.vina-card-footer {
    padding: 0 2rem 2rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ================================
   PÁGINA DE CEPAS
   ================================ */
.cepa-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.cepa-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(63, 17, 28, 0.15);
}

.cepa-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.cepa-type-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cepa-type-badge.tinta {
    background: #3f111c;
    color: white;
}

.cepa-type-badge.blanca {
    background: #FFD700;
    color: #333;
}

.cepa-type-badge.rosada {
    background: #FFB6C1;
    color: #333;
}

.cepa-origin {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.cepa-origin i {
    margin-right: 5px;
}

.cepa-card-body {
    padding: 2rem;
}

.cepa-name {
    color: #3f111c;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.cepa-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cepa-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.info-item i {
    margin-right: 8px;
    width: 16px;
}

.cepa-characteristics,
.cepa-aromas,
.cepa-regions {
    margin-bottom: 1.5rem;
}

.cepa-characteristics h6,
.cepa-aromas h6,
.cepa-regions h6 {
    color: #3f111c;
    font-weight: bold;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.cepa-characteristics h6 i,
.cepa-aromas h6 i,
.cepa-regions h6 i {
    margin-right: 8px;
}

.characteristics-list,
.aromas-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.characteristic-tag,
.aroma-tag {
    background: rgba(63, 17, 28, 0.08);
    color: #3f111c;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(63, 17, 28, 0.15);
}

.regions-text {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.cepa-card-footer {
    padding: 0 2rem 2rem;
}

/* ================================
   FILTROS
   ================================ */
.filter-group,
.search-group {
    margin-bottom: 1rem;
}

.filter-group label,
.search-group label {
    font-weight: 600;
    color: #3f111c;
    margin-bottom: 0.5rem;
    display: block;
}

.form-select,
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.form-select:focus,
.form-control:focus {
    border-color: #3f111c;
    box-shadow: 0 0 0 0.2rem rgba(63, 17, 28, 0.15);
}

/* ================================
   ESTADOS VACÍOS
   ================================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    opacity: 0.5;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #666;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #999;
    font-size: 1.1rem;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 768px) {
    .categoria-seccion {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .categoria-titulo {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vina-card-body,
    .cepa-card-body {
        padding: 1.5rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        min-width: 100%;
    }
    
    .cepa-info-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .features-list,
    .characteristics-list,
    .aromas-list {
        justify-content: center;
    }
    
    .product-image {
        height: 280px;
    }
}

@media (max-width: 576px) {
    .vina-card-header {
        padding: 1rem;
        min-height: 80px;
    }
    
    .vina-icon {
        font-size: 2rem;
    }
    
    .cepa-card-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .product-image {
        height: 260px;
    }
    
    .product-image img {
        padding: 10px;
    }
}

/* ================================
   ANIMACIONES
   ================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.categoria-seccion,
.vina-card,
.cepa-card {
    animation: fadeInUp 0.6s ease forwards;
}

.categoria-seccion:nth-child(2) { animation-delay: 0.1s; }
.categoria-seccion:nth-child(3) { animation-delay: 0.2s; }
.categoria-seccion:nth-child(4) { animation-delay: 0.3s; }

/* ================================
   UTILIDADES
   ================================ */
.badge {
    font-weight: 600;
    font-size: 0.9rem;
}

.badge.bg-wine {
    background-color: #3f111c !important;
}

.text-muted {
    color: #6c757d !important;
}

/* Mejoras para accesibilidad */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid #3f111c;
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border.text-wine {
    color: #3f111c !important;
}

/* ================================
   ESTILOS PARA SERVICIOS
   ================================ */

/* CTA para profesionales en página de servicio */
.cta-profesionales {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.cta-profesionales h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.cta-profesionales p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.cta-profesionales .btn-success {
    background: white;
    color: #28a745;
    border: 2px solid white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-profesionales .btn-success:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #155724;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}