/* ================= DECORACIONES MEXICANAS ================= */

/* Papel picado banner */
.papel-picado {
    position: relative;
    width: 100%;
    height: 30px;
    overflow: hidden;
    margin: 20px 0;
}

.papel-picado::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: 
        linear-gradient(135deg, var(--primary-red) 25%, transparent 25%),
        linear-gradient(225deg, var(--primary-red) 25%, transparent 25%),
        linear-gradient(315deg, var(--primary-red) 25%, transparent 25%),
        linear-gradient(45deg, var(--primary-red) 25%, transparent 25%);
    background-size: 30px 30px;
    animation: papelPicadoMove 10s linear infinite;
}

@keyframes papelPicadoMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Triángulo decorativo estilo azteca */
.aztec-border {
    position: relative;
    border: none !important;
}

.aztec-border::before,
.aztec-border::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 20px;
    background: repeating-linear-gradient(
        90deg,
        var(--primary-red) 0px,
        var(--primary-red) 10px,
        var(--accent-yellow) 10px,
        var(--accent-yellow) 20px,
        var(--accent-orange) 20px,
        var(--accent-orange) 30px,
        var(--accent-yellow) 30px,
        var(--accent-yellow) 40px
    );
}

.aztec-border::before {
    top: 0;
    clip-path: polygon(0% 100%, 5% 0%, 10% 100%, 15% 0%, 20% 100%, 25% 0%, 30% 100%, 35% 0%, 40% 100%, 45% 0%, 50% 100%, 55% 0%, 60% 100%, 65% 0%, 70% 100%, 75% 0%, 80% 100%, 85% 0%, 90% 100%, 95% 0%, 100% 100%);
}

.aztec-border::after {
    bottom: 0;
    clip-path: polygon(0% 0%, 5% 100%, 10% 0%, 15% 100%, 20% 0%, 25% 100%, 30% 0%, 35% 100%, 40% 0%, 45% 100%, 50% 0%, 55% 100%, 60% 0%, 65% 100%, 70% 0%, 75% 100%, 80% 0%, 85% 100%, 90% 0%, 95% 100%, 100% 0%);
}

/* Decoración de cactus SVG inline */
.cactus-decoration::before {
    content: '🌵';
    font-size: 2rem;
    position: absolute;
}

/* Máscara de luchador decorativa */
.mask-decoration {
    position: relative;
}

.mask-decoration::after {
    content: '🎭';
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.3;
}

/* Línea divisora con estrella */
.divider-star {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.divider-star::before,
.divider-star::after {
    content: '';
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-yellow), transparent);
}

.divider-star span {
    color: var(--accent-yellow);
    font-size: 1.5rem;
}

/* Diamante mexicano pattern */
.diamond-pattern {
    position: relative;
    overflow: hidden;
}

.diamond-pattern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(211, 47, 47, 0.05) 20px,
            rgba(211, 47, 47, 0.05) 40px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 20px,
            rgba(251, 192, 45, 0.05) 20px,
            rgba(251, 192, 45, 0.05) 40px
        );
    pointer-events: none;
    z-index: 0;
}

/* Sol azteca */
.aztec-sun {
    position: relative;
    display: inline-block;
}

.aztec-sun::before {
    content: '☀️';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: sunPulse 3s ease-in-out infinite;
}

@keyframes sunPulse {
    0%, 100% { 
        transform: translateX(-50%) scale(1);
        filter: drop-shadow(0 0 5px rgba(251, 192, 45, 0.5));
    }
    50% { 
        transform: translateX(-50%) scale(1.1);
        filter: drop-shadow(0 0 15px rgba(251, 192, 45, 0.8));
    }
}

/* Borde de cuerda */
.rope-border {
    border: none !important;
    position: relative;
}

.rope-border::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: 
        repeating-linear-gradient(
            0deg,
            #8B4513 0px,
            #8B4513 2px,
            #D2691E 2px,
            #D2691E 4px,
            #8B4513 4px,
            #8B4513 6px
        );
    border-radius: calc(var(--border-radius) + 5px);
    z-index: -1;
}

/* Esquinas decorativas de ring de lucha libre */
.ring-corner {
    position: relative;
}

.ring-corner::before,
.ring-corner::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 4px solid var(--primary-red);
}

.ring-corner::before {
    top: -5px;
    left: -5px;
    border-right: none;
    border-bottom: none;
}

.ring-corner::after {
    bottom: -5px;
    right: -5px;
    border-left: none;
    border-top: none;
}

/* Luces de estadio */
.stadium-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.stadium-lights::before,
.stadium-lights::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.1;
    animation: lightMove 10s ease-in-out infinite;
}

.stadium-lights::before {
    background: var(--primary-red);
    top: -100px;
    left: -100px;
}

.stadium-lights::after {
    background: var(--accent-yellow);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes lightMove {
    0%, 100% { 
        transform: translate(0, 0);
        opacity: 0.1;
    }
    50% { 
        transform: translate(100px, 100px);
        opacity: 0.15;
    }
}

/* Chile picante animado */
.chile-icon {
    display: inline-block;
    animation: chileShake 0.3s ease-in-out infinite;
}

@keyframes chileShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* Estrella mexicana */
.mexican-star {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mexican-star::before {
    content: '⭐';
    position: absolute;
    font-size: 0.8rem;
    top: -10px;
    right: -10px;
    animation: starTwinkle 1.5s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Decoración de taco */
.taco-decoration {
    position: relative;
}

.taco-decoration::before {
    content: '🌮';
    position: absolute;
    font-size: 1.5rem;
    animation: tacoFloat 3s ease-in-out infinite;
}

@keyframes tacoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(10deg); }
}

/* Confetti mexicano */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 20px;
    animation: confettiFall 5s linear infinite;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100%) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Franja tricolor mexicana */
.tricolor-stripe {
    height: 8px;
    background: linear-gradient(90deg, 
        #006341 0%, #006341 33.33%,
        #ffffff 33.33%, #ffffff 66.66%,
        #ce1126 66.66%, #ce1126 100%
    );
    width: 100%;
}

/* Badge de promoción */
.promo-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary-red);
    color: white;
    font-family: var(--font-titles);
    font-size: 0.8rem;
    padding: 8px 15px;
    border-radius: 20px;
    transform: rotate(15deg);
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: rotate(15deg) scale(1); }
    50% { transform: rotate(15deg) scale(1.05); }
}

/* Flamita decorativa */
.flame {
    position: relative;
    display: inline-block;
}

.flame::after {
    content: '🔥';
    position: absolute;
    top: -20px;
    right: -15px;
    font-size: 1.2rem;
    animation: flameFlicker 0.5s ease-in-out infinite alternate;
}

@keyframes flameFlicker {
    0% { 
        transform: scale(1) rotate(-5deg);
        opacity: 1;
    }
    100% { 
        transform: scale(1.1) rotate(5deg);
        opacity: 0.8;
    }
}

/* Spotlight effect */
.spotlight {
    position: relative;
    overflow: hidden;
}

.spotlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(255,255,255,0.1) 0%,
        transparent 40%
    );
    animation: spotlightRotate 20s linear infinite;
    pointer-events: none;
}

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

/* Responsive decorations */
@media (max-width: 768px) {
    .papel-picado {
        height: 20px;
    }
    
    .aztec-border::before,
    .aztec-border::after {
        height: 15px;
    }
    
    .ring-corner::before,
    .ring-corner::after {
        width: 25px;
        height: 25px;
    }
    
    .stadium-lights::before,
    .stadium-lights::after {
        width: 150px;
        height: 150px;
    }
}
