.whatsapp-float {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
}

@media (max-width: 768px) {
    /* Deja espacio entre el botón flotante y el contenido en móvil */
    .product-header {
        padding-right: 64px; /* ancho aprox. del botón + separación */
    }
    .whatsapp-float {
        top: 8px;
        right: 8px;
    }
}
/* Estilos personalizados para BexyPhone */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Loader optimizado */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.page-loader .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Optimización de rendimiento */
.product-card {
    will-change: transform;
    contain: layout style paint;
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

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

/* Optimizar transiciones */
.product-card {
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

/* Optimizar imágenes */
.card-img-top {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Cards de productos - Diseño mejorado */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

/* Resaltar borde del área gris al hover */
.product-card:hover .card-img-top {
    border-color: #aeb8c8;
}

.product-card .card-img-top {
    height: 250px;
    object-fit: contain;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem;
    position: relative;
    border: 2px solid #d7dbe3; /* Borde definido del área gris */
}

.product-card .card-body {
    padding: 1rem 1.25rem 1.25rem 1.25rem;
}

/* Diseño vertical para todas las vistas */
.product-card {
    flex-direction: column;
}

.product-card .card-img-top {
    width: 100%;
    height: 250px;
    border-radius: 15px 15px 0 0;
}

.product-card .card-body {
    width: 100%;
}

.product-card .features-list {
    display: block;
}

.product-card .features-list li {
    font-size: 0.9rem;
    padding: 0.25rem 0;
}

/* Responsive para diferentes tamaños de pantalla */
@media (min-width: 992px) {
    .product-card .card-img-top {
        height: 280px;
    }
    
    .product-card .card-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .product-card .price {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    .product-card .price-alt {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .product-card .features-list li {
        font-size: 0.95rem;
        padding: 0.3rem 0;
    }
}

.product-card .card-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

    .product-card .price {
        font-size: 1.5rem;
        font-weight: bold;
        color: var(--success-color);
        text-align: center;
    }

.product-header {
    border-bottom: none;
    padding-bottom: 0.1rem;
}

/* Mejorar badges de estado */
.product-card .badge {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mejorar indicador de stock */
.stock-indicator {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
    border-radius: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card .features {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin: 0.25rem 0 0 0;
    padding-bottom: 0.75rem; /* espacio interior bajo los accesorios */
}

.product-card .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Botones personalizados */
.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: whatsappPulse 2s infinite, whatsappBounce 3s infinite, whatsappColorShift 4s infinite;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    animation-play-state: paused;
}

.btn-whatsapp::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: left 0.5s;
}

.btn-whatsapp:hover::before {
    left: 100%;
}

/* Animaciones para el botón de WhatsApp */
@keyframes whatsappPulse {
    0% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3), 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes whatsappBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Nueva animación de cambio de color más llamativa */
@keyframes whatsappColorShift {
    0% {
        background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    }
    25% {
        background: linear-gradient(135deg, #2ee574 0%, #20c997 100%);
        box-shadow: 0 4px 15px rgba(46, 229, 116, 0.4);
    }
    50% {
        background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
        box-shadow: 0 4px 15px rgba(32, 201, 151, 0.4);
    }
    75% {
        background: linear-gradient(135deg, #17a2b8 0%, #128c7e 100%);
        box-shadow: 0 4px 15px rgba(23, 162, 184, 0.4);
    }
    100% {
        background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    }
}

/* Ícono de WhatsApp para móviles */
.btn-whatsapp-icon {
    background: #25d366;
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    animation: whatsappIconPulse 2.5s infinite, whatsappIconWiggle 4s infinite, whatsappIconColorShift 3.5s infinite;
}

.btn-whatsapp-icon:hover {
    background: #128c7e;
    color: white;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.5);
    animation-play-state: paused;
}

.btn-whatsapp-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.btn-whatsapp-icon:hover::before {
    width: 100%;
    height: 100%;
}

/* Animaciones para el ícono de WhatsApp */
@keyframes whatsappIconPulse {
    0% {
        box-shadow: 0 3px 10px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    50% {
        box-shadow: 0 3px 10px rgba(37, 211, 102, 0.4), 0 0 0 8px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 3px 10px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes whatsappIconWiggle {
    0%, 7%, 14%, 21%, 28%, 35%, 42%, 49%, 56%, 63%, 70%, 77%, 84%, 91%, 100% {
        transform: rotate(0deg);
    }
    3.5%, 10.5%, 17.5%, 24.5%, 31.5%, 38.5%, 45.5%, 52.5%, 59.5%, 66.5%, 73.5%, 80.5%, 87.5%, 94.5% {
        transform: rotate(2deg);
    }
}

/* Animación de cambio de color para el ícono de WhatsApp */
@keyframes whatsappIconColorShift {
    0% {
        background: #25d366;
        box-shadow: 0 3px 10px rgba(37, 211, 102, 0.4);
    }
    25% {
        background: #2ee574;
        box-shadow: 0 3px 10px rgba(46, 229, 116, 0.5);
    }
    50% {
        background: #20c997;
        box-shadow: 0 3px 10px rgba(32, 201, 151, 0.5);
    }
    75% {
        background: #17a2b8;
        box-shadow: 0 3px 10px rgba(23, 162, 184, 0.5);
    }
    100% {
        background: #25d366;
        box-shadow: 0 3px 10px rgba(37, 211, 102, 0.4);
    }
}

/* Animación SÚPER llamativa para el ícono - Explosión de colores */
@keyframes whatsappIconExplosion {
    0% {
        background: #25d366;
        transform: scale(1) rotate(0deg);
        box-shadow: 0 3px 10px rgba(37, 211, 102, 0.4);
        filter: brightness(1);
    }
    12% {
        background: #2ee574;
        transform: scale(1.2) rotate(5deg);
        box-shadow: 0 5px 20px rgba(46, 229, 116, 0.7);
        filter: brightness(1.4);
    }
    25% {
        background: #20c997;
        transform: scale(1.3) rotate(-5deg);
        box-shadow: 0 7px 25px rgba(32, 201, 151, 0.8);
        filter: brightness(1.6);
    }
    37% {
        background: #17a2b8;
        transform: scale(1.2) rotate(3deg);
        box-shadow: 0 5px 20px rgba(23, 162, 184, 0.7);
        filter: brightness(1.4);
    }
    50% {
        background: #2ee574;
        transform: scale(1.4) rotate(-3deg);
        box-shadow: 0 8px 30px rgba(46, 229, 116, 0.9);
        filter: brightness(1.7);
    }
    62% {
        background: #25d366;
        transform: scale(1.3) rotate(2deg);
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.8);
        filter: brightness(1.5);
    }
    75% {
        background: #20c997;
        transform: scale(1.2) rotate(-2deg);
        box-shadow: 0 5px 20px rgba(32, 201, 151, 0.7);
        filter: brightness(1.4);
    }
    87% {
        background: #17a2b8;
        transform: scale(1.1) rotate(1deg);
        box-shadow: 0 4px 15px rgba(23, 162, 184, 0.6);
        filter: brightness(1.3);
    }
    100% {
        background: #25d366;
        transform: scale(1) rotate(0deg);
        box-shadow: 0 3px 10px rgba(37, 211, 102, 0.4);
        filter: brightness(1);
    }
}

/* Animación especial de llamada de atención para WhatsApp */
.whatsapp-attention {
    animation: whatsappAttention 6s infinite;
}

@keyframes whatsappAttention {
    0%, 85%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    90% {
        transform: scale(1.1);
        filter: brightness(1.2);
    }
    95% {
        transform: scale(1.05);
        filter: brightness(1.1);
    }
}

/* Efecto de brillo intermitente */
.whatsapp-shine {
    position: relative;
    overflow: hidden;
}

.whatsapp-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: whatsappShine 3s infinite;
}

@keyframes whatsappShine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* ===== ANIMACIONES ADICIONALES MÁS LLAMATIVAS ===== */

/* Animación de "respiración" con cambio de color más intenso */
@keyframes whatsappBreathe {
    0%, 100% {
        background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        background: linear-gradient(135deg, #2ee574 0%, #20c997 100%);
        transform: scale(1.05);
        filter: brightness(1.2);
    }
}

/* Animación de "ondas" que se expanden */
@keyframes whatsappRipple {
    0% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    25% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3), 0 0 0 5px rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3), 0 0 0 10px rgba(37, 211, 102, 0.3);
    }
    75% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3), 0 0 0 15px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3), 0 0 0 20px rgba(37, 211, 102, 0);
    }
}

/* Animación de "brillo" que cruza el botón */
@keyframes whatsappGlow {
    0% {
        background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    }
    25% {
        background: linear-gradient(135deg, #2ee574 0%, #20c997 100%);
        box-shadow: 0 4px 20px rgba(46, 229, 116, 0.6);
    }
    50% {
        background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
        box-shadow: 0 4px 25px rgba(32, 201, 151, 0.8);
    }
    75% {
        background: linear-gradient(135deg, #17a2b8 0%, #128c7e 100%);
        box-shadow: 0 4px 20px rgba(23, 162, 184, 0.6);
    }
    100% {
        background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    }
}

/* Animación de "latido" más dramático */
@keyframes whatsappHeartbeat {
    0%, 100% {
        transform: scale(1);
        background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    }
    25% {
        transform: scale(1.1);
        background: linear-gradient(135deg, #2ee574 0%, #20c997 100%);
    }
    50% {
        transform: scale(1.05);
        background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    }
    75% {
        transform: scale(1.1);
        background: linear-gradient(135deg, #17a2b8 0%, #128c7e 100%);
    }
}

/* Animación SÚPER llamativa - Explosión de colores */
@keyframes whatsappExplosion {
    0% {
        background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
        transform: scale(1) rotate(0deg);
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
        filter: brightness(1);
    }
    10% {
        background: linear-gradient(135deg, #2ee574 0%, #20c997 100%);
        transform: scale(1.1) rotate(2deg);
        box-shadow: 0 6px 25px rgba(46, 229, 116, 0.6);
        filter: brightness(1.3);
    }
    20% {
        background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
        transform: scale(1.15) rotate(-2deg);
        box-shadow: 0 8px 35px rgba(32, 201, 151, 0.8);
        filter: brightness(1.5);
    }
    30% {
        background: linear-gradient(135deg, #17a2b8 0%, #128c7e 100%);
        transform: scale(1.1) rotate(1deg);
        box-shadow: 0 6px 25px rgba(23, 162, 184, 0.6);
        filter: brightness(1.3);
    }
    40% {
        background: linear-gradient(135deg, #2ee574 0%, #25d366 100%);
        transform: scale(1.2) rotate(-1deg);
        box-shadow: 0 10px 40px rgba(46, 229, 116, 0.9);
        filter: brightness(1.6);
    }
    50% {
        background: linear-gradient(135deg, #25d366 0%, #20c997 100%);
        transform: scale(1.1) rotate(0deg);
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
        filter: brightness(1.4);
    }
    60% {
        background: linear-gradient(135deg, #20c997 0%, #2ee574 100%);
        transform: scale(1.15) rotate(1deg);
        box-shadow: 0 9px 35px rgba(32, 201, 151, 0.8);
        filter: brightness(1.5);
    }
    70% {
        background: linear-gradient(135deg, #17a2b8 0%, #25d366 100%);
        transform: scale(1.1) rotate(-1deg);
        box-shadow: 0 7px 28px rgba(23, 162, 184, 0.6);
        filter: brightness(1.3);
    }
    80% {
        background: linear-gradient(135deg, #2ee574 0%, #17a2b8 100%);
        transform: scale(1.2) rotate(2deg);
        box-shadow: 0 10px 38px rgba(46, 229, 116, 0.9);
        filter: brightness(1.6);
    }
    90% {
        background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
        transform: scale(1.05) rotate(-1deg);
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
        filter: brightness(1.2);
    }
    100% {
        background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
        transform: scale(1) rotate(0deg);
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
        filter: brightness(1);
    }
}

.btn-whatsapp-icon i {
    font-size: 1.5rem;
}

/* ===== CLASES ADICIONALES PARA DIFERENTES ESTILOS DE ANIMACIÓN ===== */

/* Estilo "Breathe" - Respiración suave con cambio de color */
.btn-whatsapp.breathe {
    animation: whatsappBreathe 3s infinite ease-in-out;
}

/* Estilo "Ripple" - Ondas que se expanden */
.btn-whatsapp.ripple {
    animation: whatsappRipple 2.5s infinite ease-out;
}

/* Estilo "Glow" - Brillo intenso con cambio de color */
.btn-whatsapp.glow {
    animation: whatsappGlow 3.5s infinite ease-in-out;
}

/* Estilo "Heartbeat" - Latido dramático */
.btn-whatsapp.heartbeat {
    animation: whatsappHeartbeat 2s infinite ease-in-out;
}

/* Estilo "Super" - SÚPER llamativa con explosión de colores */
.btn-whatsapp.super {
    animation: whatsappExplosion 2.5s infinite ease-in-out, whatsappRipple 1.8s infinite;
    animation-delay: 0s, 0.9s;
}

/* Versiones para el ícono de WhatsApp */
.btn-whatsapp-icon.breathe {
    animation: whatsappIconColorShift 3s infinite ease-in-out, whatsappIconPulse 2.5s infinite;
}

.btn-whatsapp-icon.ripple {
    animation: whatsappIconColorShift 3.5s infinite, whatsappIconPulse 2.5s infinite, whatsappIconWiggle 4s infinite;
}

.btn-whatsapp-icon.glow {
    animation: whatsappIconColorShift 3s infinite ease-in-out, whatsappIconPulse 2s infinite;
}

.btn-whatsapp-icon.heartbeat {
    animation: whatsappIconColorShift 2s infinite ease-in-out, whatsappIconPulse 1.5s infinite;
}

.btn-whatsapp-icon.super {
    animation: whatsappIconExplosion 2s infinite ease-in-out, whatsappIconPulse 1.2s infinite;
    animation-delay: 0s, 1s;
}

/* Botón pequeño para header de la card */
.btn-whatsapp-small {
    width: 40px;
    height: 40px;
}
.btn-whatsapp-small i {
    font-size: 1.2rem;
}

.whatsapp-header-btn {
    flex-shrink: 0;
    margin-left: 0.5rem;
}

/* Flechita que apunta al ícono de WhatsApp */
.whatsapp-arrow {
    position: absolute;
    top: 15px;
    right: 65px; /* Posicionada a la izquierda del ícono de WhatsApp */
    z-index: 10;
    font-size: 1.5rem;
    color: #25d366;
    animation: whatsappArrowPulse 1.5s infinite ease-in-out;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(37, 211, 102, 0.5);
}

/* Animación de la flechita - pulso con cambio de tamaño */
@keyframes whatsappArrowPulse {
    0% {
        transform: scale(1) translateX(0);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.3) translateX(-5px);
        opacity: 1;
    }
    100% {
        transform: scale(1) translateX(0);
        opacity: 0.8;
    }
}

/* Versión más llamativa con movimiento */
.whatsapp-arrow.intense {
    animation: whatsappArrowIntense 1.2s infinite ease-in-out;
}

@keyframes whatsappArrowIntense {
    0% {
        transform: scale(1) translateX(0);
        opacity: 0.7;
    }
    25% {
        transform: scale(1.4) translateX(-8px);
        opacity: 1;
    }
    50% {
        transform: scale(1.2) translateX(-3px);
        opacity: 0.9;
    }
    75% {
        transform: scale(1.5) translateX(-10px);
        opacity: 1;
    }
    100% {
        transform: scale(1) translateX(0);
        opacity: 0.7;
    }
}

/* Flechita con efecto de brillo */
.whatsapp-arrow.glow {
    animation: whatsappArrowGlow 1.8s infinite ease-in-out;
    filter: drop-shadow(0 0 8px rgba(37, 211, 102, 0.8));
}

@keyframes whatsappArrowGlow {
    0% {
        transform: scale(1) translateX(0);
        filter: drop-shadow(0 0 8px rgba(37, 211, 102, 0.8));
    }
    50% {
        transform: scale(1.3) translateX(-6px);
        filter: drop-shadow(0 0 15px rgba(37, 211, 102, 1));
    }
    100% {
        transform: scale(1) translateX(0);
        filter: drop-shadow(0 0 8px rgba(37, 211, 102, 0.8));
    }
}

/* Flechita con texto "¡CLICK!" */
.whatsapp-arrow.click {
    animation: whatsappArrowClick 2s infinite ease-in-out;
    font-size: 1rem;
    font-weight: bold;
    color: #ff4444;
    text-shadow: 0 0 8px rgba(255, 68, 68, 0.6);
}

@keyframes whatsappArrowClick {
    0% {
        transform: scale(1) translateX(0);
        opacity: 0.8;
    }
    25% {
        transform: scale(1.2) translateX(-3px);
        opacity: 1;
    }
    50% {
        transform: scale(1.4) translateX(-8px);
        opacity: 1;
    }
    75% {
        transform: scale(1.2) translateX(-5px);
        opacity: 0.9;
    }
    100% {
        transform: scale(1) translateX(0);
        opacity: 0.8;
    }
}

/* Flechita con múltiples efectos */
.whatsapp-arrow.mega {
    animation: whatsappArrowMega 1.5s infinite ease-in-out;
    font-size: 1.8rem;
    color: #ff6b35;
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.8);
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.6));
}

@keyframes whatsappArrowMega {
    0% {
        transform: scale(1) translateX(0) rotate(0deg);
        opacity: 0.7;
    }
    20% {
        transform: scale(1.3) translateX(-5px) rotate(5deg);
        opacity: 0.9;
    }
    40% {
        transform: scale(1.5) translateX(-10px) rotate(-5deg);
        opacity: 1;
    }
    60% {
        transform: scale(1.2) translateX(-7px) rotate(3deg);
        opacity: 0.9;
    }
    80% {
        transform: scale(1.4) translateX(-8px) rotate(-3deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) translateX(0) rotate(0deg);
        opacity: 0.7;
    }
}

/* Responsive para la flechita */
@media (max-width: 768px) {
    .whatsapp-arrow {
        right: 60px;
        font-size: 1.3rem;
        top: 12px;
    }
    
    .whatsapp-arrow.mega {
        font-size: 1.5rem;
        right: 65px;
    }
    
    .whatsapp-arrow.click {
        font-size: 0.9rem;
        right: 70px;
    }
}

@media (max-width: 480px) {
    .whatsapp-arrow {
        right: 55px;
        font-size: 1.1rem;
        top: 10px;
    }
    
    .whatsapp-arrow.mega {
        font-size: 1.3rem;
        right: 60px;
    }
    
    .whatsapp-arrow.click {
        font-size: 0.8rem;
        right: 65px;
    }
}

.btn-featured {
    background: linear-gradient(45deg, var(--warning-color), #ff8c00);
    border: none;
    color: white;
}

.btn-featured:hover {
    background: linear-gradient(45deg, #e0a800, #e67e00);
    color: white;
}

/* Filtros */
.filter-section {
    background: var(--light-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Navbar personalizado */
.navbar-brand img {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Dashboard cards */
.dashboard-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
}

.dashboard-card .card-body {
    padding: 1.5rem;
}

.dashboard-card .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.dashboard-card .card-stat {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.dashboard-card .card-label {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin: 0;
}

/* Tablas responsivas */
.table-responsive {
    border-radius: 10px;
    overflow-x: auto;
    overflow-y: visible;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.table th {
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
}

.table td {
    vertical-align: middle;
}

/* Formularios */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Modales */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 15px 15px;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alertas personalizadas */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Badges personalizados */
.badge {
    border-radius: 20px;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
}

/* Sidebar para admin */
.sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--dark-color) 0%, #495057 100%);
    color: white;
}

/* Overlay para móvil */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

/* Control del sidebar en móvil */
@media (max-width: 767px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        z-index: 1050;
        transition: left 0.3s ease;
        min-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        background: linear-gradient(180deg, #343a40 0%, #495057 100%) !important;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    }
    
    .sidebar.show {
        left: 0;
    }
    
    body.sidebar-open {
        overflow-x: hidden;
    }
    
    #mainContent,
    main.col-md-9 {
        margin-left: 0 !important;
        padding-left: 15px !important;
        overflow-x: auto;
        overflow-y: visible;
    }
    
    /* Asegurar scroll en tablas de datos */
    .table-responsive,
    .dataTables_wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Scroll horizontal para tablas grandes */
    table {
        min-width: 600px;
    }
    
    /* Mejorar legibilidad del sidebar */
    .sidebar .nav-link {
        padding: 1rem 1.5rem;
        font-size: 16px;
        white-space: nowrap;
        display: flex;
        align-items: center;
    }
    
    .sidebar .nav-link i {
        font-size: 18px;
        width: 24px;
        text-align: center;
    }
    
    .sidebar .nav-link span {
        margin-left: 12px;
    }
    
    /* Scroll personalizado para el sidebar */
    .sidebar::-webkit-scrollbar {
        width: 6px;
    }
    
    .sidebar::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.1);
    }
    
    .sidebar::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.3);
        border-radius: 3px;
    }
    
    .sidebar::-webkit-scrollbar-thumb:hover {
        background: rgba(255,255,255,0.5);
    }
    
    /* Mejorar el header del sidebar */
    .sidebar .text-center {
        padding: 1.5rem 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        margin-bottom: 1rem;
    }
    
    .sidebar .text-center img {
        width: 60px;
        height: 60px;
        object-fit: contain;
    }
    
    .sidebar .text-center h6 {
        color: white;
        font-size: 18px;
        font-weight: 600;
        margin-top: 0.5rem;
    }
    
    /* Botón hamburguesa */
    .sidebar-toggle {
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1051;
        background: #007bff !important;
        border: none !important;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white !important;
        font-size: 20px;
        box-shadow: 0 4px 15px rgba(0,123,255,0.4);
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .sidebar-toggle:hover {
        background: #0056b3 !important;
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(0,123,255,0.6);
    }
    
    .sidebar-toggle:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
    }
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 0.25rem 0;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: white;
    background-color: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 0.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    /* Cards optimizadas para móviles */
    .product-card {
        margin-bottom: 1rem;
        height: auto;
        min-height: 600px;
        max-height: 650px;
        padding-bottom: 0.9rem; /* asegura espacio inferior visible */
    }
    
    .product-card .card-img-top {
        height: 380px;
        object-fit: contain;
    }
    
    .product-card .card-body {
        padding: 0.5rem 0.5rem 1.2rem 0.5rem; /* más padding inferior en móvil */
        display: flex;
        flex-direction: column;
        height: calc(100% - 380px);
    }
    
    .product-card .card-title {
        font-size: 1rem;
        line-height: 1.2;
        margin-bottom: 0.15rem;
        height: 2.4rem;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        margin-right: 0.5rem;
    }
    
    .product-card .price,
    .product-card .price-alt {
        font-size: 1.4rem;
        font-weight: bold;
        margin-bottom: 0.05rem;
        text-align: center;
    }

    .product-header {
        padding-bottom: 0.25rem;
        margin-bottom: 0.25rem;
    }
    
    .product-card .features {
        margin-bottom: 0;
        padding-bottom: 1rem; /* más espacio interior en móvil */
        flex-grow: 1;
    }
    
    .product-card .features-list {
        font-size: 0.8rem;
        margin-bottom: 0;
        overflow-y: visible;
    }
    
    .product-card .features-list li {
        margin-bottom: 0.05rem;
        line-height: 1.0;
    }
    
    .product-card .accesorios {
        margin-bottom: 0;
        margin-top: 0;
        margin-left: 0.5rem;
        font-size: 0.9rem;
        color: var(--secondary-color);
        line-height: 1.2;
    }
    
    .product-card .accesorios small {
        font-weight: 600;
        color: var(--dark-color);
    }
    
    .product-card .btn {
        font-size: 0.9rem;
        padding: 0.5rem;
        margin-top: 0.25rem;
    }
    
    .product-card .btn.d-none {
        margin-top: 0;
        padding: 0;
    }
    
    /* Logo responsivo en móviles */
    .product-logo {
        width: 50px !important;
        height: 50px !important;
    }
    
    /* Optimizar ícono de WhatsApp en móviles */
    .btn-whatsapp-icon {
        width: 45px;
        height: 45px;
    }
    
    .btn-whatsapp-icon i {
        font-size: 1.3rem;
    }
    
    .dashboard-card .card-stat {
        font-size: 1.5rem;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        z-index: 1050;
        transition: left 0.3s ease;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    /* Optimizar grid para móviles */
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .col-md-6, .col-lg-4, .col-xl-3 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Separación de bloques en sección contacto */
    #contacto .row {
        row-gap: 0.75rem;
    }
    #contacto .col-md-6 + .col-md-6 {
        margin-top: 0.5rem;
    }
}

/* Pantallas muy pequeñas (smartphones) */
@media (max-width: 480px) {
    .product-card {
        min-height: 550px;
        max-height: 600px;
    }
    
    .product-card .card-img-top {
        height: 320px;
    }
    
    .product-card .card-body {
        padding: 0.25rem;
        height: calc(100% - 320px);
    }
    
    .product-card .card-title {
        font-size: 0.9rem;
        height: 2.2rem;
        margin-right: 0.3rem;
    }
    
    .product-card .price,
    .product-card .price-alt {
        font-size: 1.3rem;
        text-align: center;
        margin-bottom: 0.05rem;
    }
    .product-header {
        padding-bottom: 0.2rem;
        margin-bottom: 0.2rem;
    }
    
    .product-card .features-list {
        font-size: 0.75rem;
    }
    
    .product-card .features-list li {
        margin-bottom: 0.02rem;
    }
    
    .product-card .features-list li:last-child {
        margin-bottom: 0;
    }
    
    .product-card .accesorios {
        font-size: 0.85rem;
        margin-left: 0.3rem;
    }
    
    .product-card .btn {
        font-size: 0.8rem;
        padding: 0.4rem;
        margin-top: 0.25rem;
    }
    
    .product-card .btn.d-none {
        margin-top: 0;
        padding: 0;
    }
    
    /* Logo responsivo en pantallas muy pequeñas */
    .product-logo {
        width: 45px !important;
        height: 45px !important;
    }
    
    /* Optimizar ícono de WhatsApp en pantallas muy pequeñas */
    .btn-whatsapp-icon {
        width: 40px;
        height: 40px;
    }
    
    .btn-whatsapp-icon i {
        font-size: 1.1rem;
    }
    
    /* Reducir espaciado en grid */
    .row {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }
    
    .col-md-6, .col-lg-4, .col-xl-3 {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
}

/* Tablet responsive */
@media (min-width: 769px) and (max-width: 991px) {
    .product-card .card-img-top {
        height: 220px;
    }
    
    .product-card .card-title {
        font-size: 1.3rem;
    }
    
    .product-card .price {
        font-size: 1.6rem;
        text-align: center;
    }
    .product-card .price-alt {
        font-size: 1.6rem;
        text-align: center;
    }
}

/* Animaciones */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Estilos para gráficos */
.chart-container {
    position: relative;
    height: 300px;
    margin: 1rem 0;
}

/* Estilos para notificaciones */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos para el footer */
footer {
    margin-top: auto;
}

/* Asegurar visibilidad de íconos en el footer oscuro */
footer .fa,
footer .fas,
footer .fab {
    color: #ffffff !important;
    opacity: 0.95;
}
footer a.text-muted:hover i {
    color: #ffffff !important;
    opacity: 1;
}

/* Estilos para el logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-container img {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Logo en las cards de productos */
.product-logo {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: white;
    padding: 4px;
}

.price-row .price-logo {
    width: 40px !important;
    height: 40px !important;
    float: none;
    margin-right: 0.5rem;
    display: inline-block;
}

.price-row {
    justify-content: center;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

.price-row > div {
    width: 100%;
    text-align: center;
}

.whatsapp-header-btn {
    display: flex;
    align-items: center;
}

/* Estilos para características de productos */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 0.15rem 0;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.features-list li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Estilos para accesorios */
.accesorios {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.35;
    margin-bottom: 0.8rem;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

/* Estilos para garantía */
.warranty-badge {
    background-color: var(--success-color);
    color: white;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    display: inline-block;
}

/* Estilos para stock */
.stock-indicator {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

.stock-high {
    background-color: #d4edda;
    color: #155724;
}

.stock-medium {
    background-color: #fff3cd;
    color: #856404;
}

.stock-low {
    background-color: #f8d7da;
    color: #721c24;
}

/* Estilos para precios */
.price-old {
    text-decoration: line-through;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.price-new {
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Estilos para filtros activos */
.filter-active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Estilos para botones de acción */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-buttons .btn {
    flex: 1;
    min-width: 80px;
}

/* Estilos para formularios de búsqueda */
.search-form {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para paginación */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 0.125rem;
    border: none;
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Estilos para tooltips */
.tooltip {
    font-size: 0.875rem;
}

/* Estilos para dropdowns */
.dropdown-menu {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--light-color);
}

/* Estilos para breadcrumbs */
.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--secondary-color);
}

/* Estilos para progress bars */
.progress {
    border-radius: 10px;
    height: 8px;
}

.progress-bar {
    border-radius: 10px;
}

/* Estilos para list groups */
.list-group-item {
    border: none;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Estilos para cards de estadísticas */
.stats-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
}

.stats-card .stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stats-card .stats-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Estilos para el loader de página */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.page-loader .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ===== Overrides: Mejor definición visual de las product-card ===== */
/* Borde más definido, sombra sutil y mejor contraste del precio */
.product-card {
    border: 1px solid #e5e7eb; /* define el contorno */
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.08);
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1; /* resalta el contorno al hover */
    box-shadow: 0 12px 24px rgba(16, 24, 40, 0.14);
}

.product-card .card-img-top {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.product-card .product-header {
    border-bottom: 1px dashed #e5e7eb; /* separador sutil */
}

.product-card .price {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.1rem;
}

.product-card .price small,
.product-card .price-alt small {
    font-size: 0.8rem;
}

.product-card .price-alt {
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-top: 0.1rem;
}

.product-card .features {
    border-top: none;
    padding-top: 0.1rem;
}

.product-card .btn-whatsapp {
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3), 0 4px 10px rgba(18, 140, 126, 0.25);
}

.product-card .btn-whatsapp-icon {
    box-shadow: 0 3px 10px rgba(16, 24, 40, 0.12);
}

.product-card .badge {
    backdrop-filter: saturate(130%) blur(2px);
    border: 1px solid rgba(255,255,255,0.4);
}

/* ===== Estilos para categorías ===== */
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.category-card:hover:not(.disabled) {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.category-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f8f9fa;
}

.category-card .card-body {
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-icon {
    margin-bottom: 1.5rem;
}

.category-icon i {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.category-card:hover:not(.disabled) .category-icon i {
    color: #0056b3;
}

.category-card .card-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.category-card .card-text {
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.category-card .badge {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.overlay-disabled {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 249, 250, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-weight: 600;
    border-radius: 15px;
}

.overlay-disabled i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

/* Responsive para categorías */
@media (max-width: 768px) {
    .category-card .card-body {
        padding: 1.5rem 1rem;
    }
    
    .category-icon {
        margin-bottom: 1rem;
    }
    
    .category-icon i {
        font-size: 2.5rem !important;
    }
    
    .category-card .card-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .category-card .card-text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .category-card .badge {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .category-card .card-body {
        padding: 1.25rem 0.75rem;
    }
    
    .category-icon i {
        font-size: 2rem !important;
    }
    
    .category-card .card-title {
        font-size: 1rem;
    }
    
    .category-card .card-text {
        font-size: 0.85rem;
    }
}

/* ==================== ESTILOS DEL SORTEO ==================== */

/* Animación del icono de regalo */
.sorteo-gift-icon {
    animation: giftBounce 2s infinite;
}

@keyframes giftBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Estilos para la sección del sorteo */
#sorteoSection .card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#sorteoSection .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Estilos para el botón de WhatsApp del sorteo */
#sorteoWhatsAppBtn {
    background: linear-gradient(45deg, #25D366, #128C7E);
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#sorteoWhatsAppBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#sorteoWhatsAppBtn:hover::before {
    left: 100%;
}

#sorteoWhatsAppBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
    background: linear-gradient(45deg, #128C7E, #25D366);
}

#sorteoWhatsAppBtn:active {
    transform: translateY(-1px);
}

/* Animación de pulso para el título del sorteo */
#sorteoTitulo {
    animation: pulse 2s infinite;
}

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

/* Estilos responsive para el sorteo */
@media (max-width: 768px) {
    #sorteoSection .card-body {
        padding: 1.5rem;
    }
    
    #sorteoSection .row {
        text-align: center;
    }
    
    #sorteoSection .col-md-4 {
        margin-top: 1rem;
    }
    
    #sorteoWhatsAppBtn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    #sorteoTitulo {
        font-size: 1.5rem;
    }
    
    #sorteoReglas {
        font-size: 0.9rem;
    }
}

/* Efecto de brillo para el botón del sorteo */
.whatsapp-shine {
    position: relative;
    overflow: hidden;
}

.whatsapp-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}
