/* ===== PROMOTIONAL MODAL STYLES ===== */

/* Modal Overlay */
.promo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: all 0.4s ease;
}

.promo-modal-overlay.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

/* Modal Container */
.promo-modal {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 90%;
    max-height: 95vh;
    overflow-y: auto;
    transform: scale(0.8) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.promo-modal-overlay.active .promo-modal {
    transform: scale(1) translateY(0);
}

/* Close Button */
.promo-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.promo-close:hover {
    background: #f97316;
    color: white;
    transform: scale(1.1);
}

/* Modal Content */
.promo-content {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image Container */
.promo-image-container {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.promo-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain; /* Cambiar a contain para mostrar imagen completa */
    transition: transform 0.3s ease;
    border-radius: 0;
}

.promo-image:hover {
    transform: scale(1.05);
}

/* Urgency Badge */
.promo-urgency {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #dc2626, #f97316);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Info Section */
.promo-info {
    padding: 30px 30px 40px 30px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    min-height: 400px;
}

.promo-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 10px;
    line-height: 1.2;
}

.promo-description {
    font-size: 16px;
    color: #4b5563;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Price Display */
.promo-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.promo-price-old {
    font-size: 20px;
    color: #9ca3af;
    text-decoration: line-through;
}

.promo-price-new {
    font-size: 32px;
    font-weight: 800;
    color: #dc2626;
    text-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.promo-currency {
    font-size: 24px;
    font-weight: 700;
}

/* Action Buttons */
.promo-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    padding: 0 20px;
}

.promo-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-btn-primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

.promo-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(249, 115, 22, 0.4);
    background: linear-gradient(135deg, #ea580c, #dc2626);
}

.promo-btn-secondary {
    background: transparent;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
}

.promo-btn-secondary:hover {
    background: #1e3a8a;
    color: white;
    transform: translateY(-2px);
}

.promo-btn-gallery {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6) !important;
    color: white !important;
    border: none !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    padding: 20px 40px !important;
    margin: 20px auto !important;
    width: 90% !important;
    max-width: 400px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    border-radius: 35px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3) !important;
}

.promo-btn-gallery:hover {
    background: linear-gradient(135deg, #3b82f6, #1e40af) !important;
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.5) !important;
}

/* Timer */
.promo-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #dc2626;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
}

.promo-timer i {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Social Share */
.promo-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.promo-share-text {
    color: #6b7280;
    font-size: 14px;
    margin-right: 10px;
}

.promo-share-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.promo-share-facebook { background: #1877f2; }
.promo-share-whatsapp { background: #25d366; }
.promo-share-twitter { background: #1da1f2; }

.promo-share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Navigation Dots */
.promo-navigation {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.promo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-dot.active {
    background: #f97316;
    transform: scale(1.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .promo-modal {
        width: 95%;
        margin: 10px;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .promo-image-container {
        min-height: 200px;
        max-height: 300px;
    }
    
    .promo-image {
        max-height: 300px;
    }
    
    .promo-info {
        padding: 20px;
    }
    
    .promo-title {
        font-size: 20px;
    }
    
    .promo-description {
        font-size: 14px;
    }
    
    .promo-price-new {
        font-size: 28px;
    }
    
    .promo-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .promo-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 18px 25px;
        font-size: 15px;
    }
    
    .promo-btn-gallery {
        font-size: 14px !important;
        padding: 14px 20px !important;
        max-width: 280px !important;
        width: 85% !important;
        gap: 8px !important;
        letter-spacing: 0.5px !important;
    }
    
    .promo-btn-gallery i {
        font-size: 16px;
    }
    
    .promo-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .promo-urgency {
        top: 15px;
        left: 15px;
        font-size: 11px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .promo-modal {
        width: 98%;
        margin: 5px;
        max-height: 90vh;
    }
    
    .promo-image-container {
        min-height: 180px;
        max-height: 250px;
    }
    
    .promo-image {
        max-height: 250px;
    }
    
    .promo-title {
        font-size: 18px;
        line-height: 1.3;
    }
    
    .promo-description {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .promo-price-new {
        font-size: 24px;
    }
    
    .promo-btn {
        font-size: 14px;
        padding: 16px 20px;
    }
    
    .promo-btn-gallery {
        font-size: 13px !important;
        padding: 12px 16px !important;
        max-width: 260px !important;
        width: 90% !important;
        gap: 6px !important;
        border-radius: 28px !important;
    }
    
    .promo-btn-gallery i {
        font-size: 14px;
    }
    
    .promo-info {
        padding: 15px;
    }
    
    .promo-share {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .promo-share-text {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }
}

/* Loading Animation */
.promo-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #f97316;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Accessibility */
.promo-modal:focus {
    outline: none;
}

.promo-modal[aria-hidden="true"] {
    display: none;
}

/* Print Styles */
@media print {
    .promo-modal-overlay {
        display: none !important;
    }
}