/* Estilos adicionales personalizados */
.product-gallery .main-image img {
    max-height: 500px;
    object-fit: cover;
}

.video-background {
    position: relative;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* Animaciones personalizadas */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease;
}

/* Estilos para ícono de teléfono */
.fas.fa-phone {
    color: black !important;
    animation: phoneVibration 1.5s infinite;
}

/* Animación de vibración para teléfono */
@keyframes phoneVibration {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-2px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(2px);
    }
}

/* Estilos para íconos de redes sociales más grandes y visibles */
.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: #f8f9fa;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    margin-right: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.social-links a i {
    font-size: 24px;
    transition: all 0.3s ease;
}

/* Colores específicos para cada red social */
.social-links a:nth-child(1):hover {
    background-color: #1877f2;
}

.social-links a:nth-child(1):hover i {
    color: white;
}

.social-links a:nth-child(2):hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.social-links a:nth-child(2):hover i {
    color: white;
}

.social-links a:nth-child(3):hover {
    background-color: #25d366;
}

.social-links a:nth-child(3):hover i {
    color: white;
}

/* Íconos de Facebook, Instagram y WhatsApp */
.fab.fa-facebook-f {
    color: #1877f2;
}

.fab.fa-instagram {
    color: #e4405f;
}

.fab.fa-whatsapp {
    color: #25d366;
}

/* Estilos mejorados para tarjetas de productos */
.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

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

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

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

.product-info {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    min-height: 2.6rem;
}

.product-specs {
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 1rem;
}

.product-price-old {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.product-actions {
    margin-top: auto;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #dc3545, #fd7e14);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

/* Grid responsivo mejorado */
@media (min-width: 1400px) {
    .products-grid .col-lg-4 {
        flex: 0 0 auto;
        width: 25%;
    }
}

@media (max-width: 991.98px) {
    .product-image {
        height: 200px;
    }
}

@media (max-width: 575.98px) {
    .product-image {
        height: 180px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 1rem;
        min-height: auto;
    }
}

/* Placeholder image mejorado */
.placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
}

.placeholder-image i {
    font-size: 3rem;
    color: #adb5bd;
    opacity: 0.7;
}