/**
 * Estilos para el popup de urgencia
 */

.urgency-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    font-family: 'Segoe UI', Calibri, Arial, sans-serif;
}

.urgency-popup-content {
    position: relative;
    background-color: #ffffff;
    background-image: linear-gradient(to bottom, #ffffff, #f9f9f9);
    margin: 10% auto;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    text-align: center;
    border-top: 5px solid #F77000;
}

.popup-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.popup-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

/* Nuevo título principal */
.main-title {
    color: #333333;
    font-weight: 800;
    font-size: 24px;
    margin: 10px 0;
    text-transform: uppercase;
}

.form-intro {
    color: #555;
    font-size: 16px;
    margin-bottom: 15px;
}

/* Nuevos estilos para la carta misteriosa */
.mystery-card {
    background: linear-gradient(135deg, #151c4f, #d2277c);
    color: white;
    border-radius: 12px;
    padding: 30px 15px;
    margin: 20px auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    position: relative;
    max-width: 300px;
}

.mystery-symbols {
    font-size: 48px;
    font-weight: bold;
    letter-spacing: 10px;
}

.revealed-reward.show {
    transform: scale(1);
    opacity: 1;
}

/* Nuevo estilo para el contador */
.countdown-container {
    margin: 20px auto;
    text-align: center;
}

.countdown-time {
    font-size: 36px;
    font-weight: bold;
    color: #F77000;
    margin: 0;
    line-height: 1;
}

.countdown-label {
    margin-top: 5px;
    font-size: 14px;
    color: #F77000;
    font-weight: bold;
}

#popup-email {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05) inset;
}

#popup-email:focus {
    border-color: #F77000;
    outline: none;
    box-shadow: 0 0 5px rgba(247, 112, 0, 0.3);
}

#popup-email.error {
    border-color: #e74c3c;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
}

/* Nuevo estilo unificado para botones de acción */
.action-button {
    display: block;
    width: 100%;
    background-color: #F77000;
    color: white;
    padding: 16px 15px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(247, 112, 0, 0.3);
    animation: subtle-pulse 2s infinite;
}

.action-button:hover {
    background-color: #e56600;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(247, 112, 0, 0.4);
}

.action-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(247, 112, 0, 0.3);
}

.action-button.disabled {
    background-color: #cccccc !important;
    color: #888888 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 0.7;
}

.action-button.disabled:hover {
    background-color: #cccccc !important;
    transform: none !important;
    box-shadow: none !important;
}

#email-error {
    background-color: #ffebee;
    border-left: 4px solid #e74c3c;
    padding: 8px 12px;
    margin-top: 10px !important;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    animation: shake 0.5s linear;
}

@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

.legal-text {
    font-size: 9px !important;
    color: #999;
    margin-top: 15px;
    line-height: 1.3;
}

.reward-info {
    margin: 15px 0;
    font-size: 14px;
    color: #333;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #999;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    height: 30px;
    width: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
}

.close-popup:hover {
    color: #333;
    background-color: #f1f1f1;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes subtle-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

@keyframes flipCard {
    0% { 
        transform: perspective(600px) rotateY(0deg);
        opacity: 1;
    }
    50% { 
        transform: perspective(600px) rotateY(90deg);
        opacity: 0.3;
    }
    100% { 
        transform: perspective(600px) rotateY(0deg);
        opacity: 1;
    }
}

.flip-animation {
    animation: flipCard 1s forwards;
}

/* Mantener los estilos originales para el carrito y elementos relacionados */
.shipping-discount-row {
    background-color: #fff8e1;
    animation: highlight-row 2s ease-in-out;
}

@keyframes highlight-row {
    0% { background-color: #fff; }
    50% { background-color: #fff8e1; }
    100% { background-color: #fff8e1; }
}

.shipping-discount-row td {
    color: #F77000;
    font-weight: bold;
}

.free-shipping-label {
    font-weight: bold;
    color: #F77000;
    padding: 2px 6px;
    background-color: #fff8e1;
    border-radius: 3px;
    margin-left: 5px;
}

/* Estilo para el mensaje de envío gratis en el carrito */
.woocommerce-message.coupon-applied {
    border-left-color: #F77000;
    background-color: #fff8e1;
}

.shipping-savings-info {
    display: inline-block;
    margin-left: 10px;
    color: #F77000;
}

/* Estilo para el mensaje cuando falta poco para llegar al mínimo */
.woocommerce-notice--cart-threshold {
    background-color: #fff8e1;
    border-left: 4px solid #F77000;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.threshold-amount {
    font-weight: bold;
    color: #F77000;
}

/* Mantener estilos responsive */
@media (max-width: 768px) {
    .urgency-popup-content {
        width: 90%;
        padding: 25px 20px;
        margin: 20% auto;
    }
    
    .mystery-card,
    .revealed-reward {
        max-width: 90%;
    }
    
    .countdown-time {
        font-size: 32px;
    }
}

/* Mantener corrección del selector */
.discount-row {
    background-color: #fff8e1;
    animation: highlight-row 2s ease-in-out;
}
/* Estilo para el contador rojo que parpadea */
.countdown-time {
    font-size: 36px;
    font-weight: bold;
    color: #e20613; /* Rojo similar al del regalo */
    margin: 0;
    line-height: 1;
    animation: blink-animation 2s linear infinite;
}

@keyframes blink-animation {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.countdown-label {
    margin-top: 5px;
    font-size: 14px;
    color: #e20613; /* Rojo similar al del regalo */
    font-weight: bold;
}

/* Usar la misma tarjeta para misterio y recompensa */
.mystery-card, .revealed-reward {
    background: linear-gradient(135deg, #151c4f, #d2277c) !important;
    color: white;
    border-radius: 12px;
    padding: 30px 15px;
    margin: 20px auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    position: relative;
    max-width: 300px;
}

.revealed-reward {
    background: linear-gradient(135deg, #151c4f, #d2277c) !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 30px 15px !important;
    margin: 20px auto !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
    position: relative !important;
    max-width: 300px !important;
    font-size: 24px !important;
    font-weight: bold !important;
    line-height: 1.2 !important;
}

.revealed-reward.show {
    transform: scale(1) !important;
    opacity: 1 !important;
    transition: all 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28) !important;
}