/* ========================================================
   ARCHIVO DE DECORACIONES - EFECTOS Y DETALLES VISUALES
   ======================================================== */

/* ==================== LÍNEAS DECORATIVAS ==================== */
.decorative-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    margin: 20px auto;
    border-radius: 2px;
    position: relative;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.decorative-line::before,
.decorative-line::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--color-secondary);
    border-radius: 50%;
    top: -3px;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.4);
}

.decorative-line::before {
    left: -18px;
}

.decorative-line::after {
    right: -18px;
}

/* ==================== BADGES Y ETIQUETAS ==================== */
.badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    color: var(--text-light);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 6px 16px rgba(212, 175, 55, 0.6);
    }
}

.badge.new {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5);
}

.badge.new:hover {
    animation: none;
    transform: scale(1.1);
}

.badge.hot {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

/* ==================== ICONOS FLOTANTES ==================== */
.floating-icon {
    position: absolute;
    font-size: 3.5rem;
    color: var(--color-secondary);
    opacity: 0.25;
    animation: floatIcon 20s ease-in-out infinite;
    pointer-events: none;
    filter: drop-shadow(0 4px 8px rgba(212, 175, 55, 0.3));
}

.floating-icon:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 20%;
    right: 8%;
    animation-delay: 3s;
    color: var(--color-accent);
    filter: drop-shadow(0 4px 8px rgba(44, 95, 141, 0.3));
}

.floating-icon:nth-child(3) {
    bottom: 15%;
    left: 10%;
    animation-delay: 6s;
}

.floating-icon:nth-child(4) {
    bottom: 25%;
    right: 12%;
    animation-delay: 9s;
    color: var(--color-highlight);
    filter: drop-shadow(0 4px 8px rgba(139, 115, 85, 0.3));
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.25;
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
        opacity: 0.35;
    }
}

/* ==================== SEPARADORES DE SECCIÓN ==================== */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
    margin: 60px 0;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border: 2px solid var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== TARJETAS CON EFECTO HOVER ==================== */
.info-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.15), transparent);
    transition: left 0.5s ease;
}

.info-card:hover::before {
    left: 100%;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-secondary);
}

/* ==================== NÚMEROS ESTADÍSTICOS ==================== */
.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
}

.stat-label {
    font-size: 1rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* ==================== TOOLTIPS ==================== */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    background: var(--text-primary);
    color: var(--text-light);
    text-align: center;
    border-radius: 8px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
}

.tooltip .tooltiptext::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--text-primary) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* ==================== EFECTOS DE BRILLO ==================== */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* ==================== PUNTOS DECORATIVOS ==================== */
.dot-pattern {
    position: absolute;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, var(--color-secondary) 1px, transparent 1px);
    background-size: 10px 10px;
    opacity: 0.2;
    pointer-events: none;
}

.dot-pattern.top-left {
    top: 20px;
    left: 20px;
}

.dot-pattern.bottom-right {
    bottom: 20px;
    right: 20px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .floating-icon {
        font-size: 2.5rem;
        opacity: 0.2;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .info-card {
        padding: 25px;
    }
    
    .section-divider {
        margin: 40px 0;
    }
    
    .decorative-line {
        width: 70px;
        height: 3px;
    }
    
    .decorative-line::before,
    .decorative-line::after {
        width: 8px;
        height: 8px;
    }
    
    .badge {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}
