/**
 * CTR Bienes Raíces - Estilos para Promociones
 */

/* Animación de pulso para badges de promoción dorados */
@keyframes pulse-promocion {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(107, 78, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(107, 78, 0, 0.7), 0 0 30px rgba(212, 175, 55, 0.5);
    }
}

/* Badge de promoción en miniatura - Estilo dorado brillante */
.promocion-badge-miniatura {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 20%, #d4af37 40%, #b8860b 60%, #8b6914 80%, #6b4e00 100%) !important;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(255, 240, 200, 0.2) 1px, rgba(255, 240, 200, 0.2) 2px),
        linear-gradient(135deg, #d4af37 0%, #f4d03f 20%, #d4af37 40%, #b8860b 60%, #8b6914 80%, #6b4e00 100%) !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 25px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    box-shadow: 
        0 4px 15px rgba(107, 78, 0, 0.6),
        inset 0 1px 0 rgba(255, 240, 200, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 0 20px rgba(212, 175, 55, 0.4) !important;
    position: relative !important;
    overflow: hidden !important;
    animation: pulse-promocion 2s ease-in-out infinite !important;
    transition: all 0.3s ease !important;
}

.promocion-badge-miniatura::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 240, 200, 0.7) 0%, rgba(255, 220, 150, 0.4) 30%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.promocion-badge-miniatura::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 240, 200, 0.6), transparent);
    pointer-events: none;
    z-index: 0;
    animation: goldShineBadge 3s infinite;
}

@keyframes goldShineBadge {
    0%, 100% {
        left: -100%;
        opacity: 0;
    }
    50% {
        left: 150%;
        opacity: 0.8;
    }
}

.promocion-badge-miniatura svg,
.promocion-badge-miniatura span {
    position: relative;
    z-index: 1;
}

.promocion-badge-miniatura:hover {
    transform: scale(1.1);
    box-shadow: 
        0 6px 25px rgba(107, 78, 0, 0.8),
        inset 0 1px 0 rgba(255, 240, 200, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4),
        0 0 30px rgba(212, 175, 55, 0.6) !important;
}

/* Badge de promoción en tarjeta - Estilo dorado brillante */
.promocion-card-badge {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 20%, #d4af37 40%, #b8860b 60%, #8b6914 80%, #6b4e00 100%) !important;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(255, 240, 200, 0.15) 1px, rgba(255, 240, 200, 0.15) 2px),
        linear-gradient(135deg, #d4af37 0%, #f4d03f 20%, #d4af37 40%, #b8860b 60%, #8b6914 80%, #6b4e00 100%) !important;
    color: white !important;
    padding: 0.75rem 1rem !important;
    border-radius: 12px !important;
    box-shadow: 
        0 4px 15px rgba(107, 78, 0, 0.6),
        inset 0 1px 0 rgba(255, 240, 200, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 0 20px rgba(212, 175, 55, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

.promocion-card-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 240, 200, 0.6) 0%, rgba(255, 220, 150, 0.3) 30%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.promocion-card-badge > * {
    position: relative;
    z-index: 1;
}

.promocion-card-badge:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 25px rgba(107, 78, 0, 0.8),
        inset 0 1px 0 rgba(255, 240, 200, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4),
        0 0 30px rgba(212, 175, 55, 0.5) !important;
}

/* Sección de promoción en detalle */
.promocion-detalle-section {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contador regresivo */
.countdown-item {
    transition: all 0.3s ease;
}

.countdown-value {
    transition: all 0.3s ease;
    font-family: var(--font-title);
}

.countdown-item:hover .countdown-value {
    transform: scale(1.1);
    color: #ffd700;
}

/* Efecto de parpadeo cuando quedan menos de 24 horas */
.promocion-countdown[data-urgent="true"] .countdown-value {
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Responsive */
@media (max-width: 768px) {
    .promocion-detalle-section {
        padding: 2rem 1.5rem !important;
    }
    
    .promocion-detalle-section h2 {
        font-size: 1.75rem !important;
    }
    
    .countdown-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    .countdown-value {
        font-size: 2rem !important;
    }
    
    .promocion-badge-miniatura {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.75rem !important;
    }
}

/* Modo oscuro - mantener estilo dorado */
[data-theme="dark"] .promocion-detalle-section {
    background: linear-gradient(135deg, #6b4e00 0%, #8b6914 20%, #b8860b 40%, #d4af37 60%, #f4d03f 80%, #d4af37 100%) !important;
}

.promocion-detalle-section h3 {
    color: white !important;
}

[data-theme="dark"] .promocion-card-badge {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 20%, #d4af37 40%, #b8860b 60%, #8b6914 80%, #6b4e00 100%) !important;
}

[data-theme="dark"] .promocion-badge-miniatura {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 20%, #d4af37 40%, #b8860b 60%, #8b6914 80%, #6b4e00 100%) !important;
}
