/* Estilos modernos para el home */

@media (max-width:426px) {
    .w3-carousel-caption{
        height: auto;
        background-color: transparent;
    }
    .w3-carousel-caption p{
        font-size: 0.5rem;
    }
    .catalogo-btn {
        padding: 8px 16px !important;
        font-size: 12px !important;
    }
}

.card {
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.admin-opcions a {
    margin: 0 5px;
    color: var(--primary);
}

/* Nuevos estilos para el carousel mejorado */
.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.mySlides {
    display: none;
    position: relative;
}

.slide-content {
    position: relative;
    width: 100%;
    height: 450px;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px;
    color: white;
}

.catalogo-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.catalogo-btn:hover {
    background: #d32f2f;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

/* Estilos para cards de ofertas */
.offer-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.offer-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.offer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.offer-card:hover .offer-image {
    transform: scale(1.05);
}

.offer-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 8px 12px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-discount {
    background: linear-gradient(135deg, #ff4757, #ff6348);
}

.badge-combo {
    background: linear-gradient(135deg, #ff9f43, #feca57);
}

.badge-multiplicity {
    background: linear-gradient(135deg, #5f27cd, #7c4dff);
}

.offer-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.offer-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
    line-height: 1.3;
    min-height: 2.6em;
}

.offer-price-section {
    margin: 15px 0;
}

.offer-original-price {
    text-decoration: line-through;
    color: #95a5a6;
    font-size: 0.9rem;
}

.offer-final-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e74c3c;
    margin: 5px 0;
}

.offer-combo-info {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 5px;
}

.offer-actions {
    margin-top: auto;
    padding-top: 15px;
}

.offer-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.offer-btn-primary {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.offer-btn-primary:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
}

/* Estilos modernos para tarjetas de productos */
.product-card-modern {
    transition: all 0.3s ease;
    position: relative;
    background: white;
}

.product-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: #3498db !important;
}

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

.product-image-container {
    overflow: hidden;
    position: relative;
}

.product-image {
    transition: transform 0.3s ease;
}

.offer-badge-modern {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Efectos para tarjetas de envío */
.w3-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .product-card-modern {
        margin-bottom: 20px;
    }
    
    .w3-col.xl3 {
        width: 50%;
    }
}

@media (max-width: 480px) {
    .w3-col.xl3, .w3-col.m6 {
        width: 100%;
    }
}

/* Carousel dots */
.carousel-dots.hidden {
    opacity: 0;
    pointer-events: none;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #333;
}

.carousel-dot:hover {
    background: #666;
}

/* Estilos para botones "Ver Detalle" en el home */
.offer-btn-secondary {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.offer-btn-secondary:hover {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Estilos para botones de acción en productos más buscados */
.action-buttons .w3-button {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    border: none;
}

.action-buttons .w3-button:hover {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Estilos para la card de "Próximamente Ofertas" */
.empty-offers-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.empty-offers-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.empty-offers-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    text-align: center;
}

.empty-offers-content {
    text-align: center;
}

.empty-offers-title {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 16px;
}

.empty-offers-description {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 24px;
    line-height: 1.5;
}

.empty-offers-action {
    margin-top: 20px;
}

.empty-offers-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
}

.empty-offers-btn:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
