/* Animaciones corregidas para PAMPEÑO */
:root {
    --rojo: #d52b1e;
    --naranja: #ff6b35;
    --amarillo: #ffeb3b;
}

/* Animaciones principales */
@keyframes flash {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.3;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes flame {
    0%, 100% {
        transform: scale(1) translateY(0);
        opacity: 0.6;
    }
    25% {
        transform: scale(1.1) translateY(-5px);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2) translateY(5px);
        opacity: 0.7;
    }
    75% {
        transform: scale(1.1) translateY(-3px);
        opacity: 0.9;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-3px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(3px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0,-10px,0);
    }
    70% {
        transform: translate3d(0,-5px,0);
    }
    90% {
        transform: translate3d(0,-2px,0);
    }
}

@keyframes tada {
    0% {
        transform: scale(1);
    }
    10%, 20% {
        transform: scale(0.9) rotate(-3deg);
    }
    30%, 50%, 70%, 90% {
        transform: scale(1.1) rotate(3deg);
    }
    40%, 60%, 80% {
        transform: scale(1.1) rotate(-3deg);
    }
    100% {
        transform: scale(1) rotate(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Efectos de texto neón CORREGIDOS */
.neon-text {
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 15px #fff,
        0 0 20px var(--rojo),
        0 0 35px var(--rojo),
        0 0 40px var(--rojo);
    animation: neon-pulse 3s infinite alternate;
}

@keyframes neon-pulse {
    0%, 100% {
        text-shadow: 
            0 0 5px #fff,
            0 0 10px #fff,
            0 0 15px #fff,
            0 0 20px var(--rojo),
            0 0 35px var(--rojo),
            0 0 40px var(--rojo);
    }
    50% {
        text-shadow: 
            0 0 2px #fff,
            0 0 5px #fff,
            0 0 10px #fff,
            0 0 15px var(--rojo),
            0 0 25px var(--rojo),
            0 0 30px var(--rojo);
    }
}

.logo .flash {
    animation: flash 1.5s infinite;
}

/* Animaciones para elementos específicos */
.food-card {
    animation: float 4s ease-in-out infinite;
}

.whatsapp-float a {
    animation: pulse 2s infinite;
}

.wheel {
    animation: scroll 2s infinite;
}

/* Llamas animadas CORREGIDAS */
.llama {
    position: absolute;
    width: 60px;
    height: 90px;
    background: radial-gradient(ellipse at center, 
        var(--amarillo) 0%, 
        var(--naranja) 40%, 
        var(--rojo) 100%);
    border-radius: 50% 50% 20% 20%;
    opacity: 0.6;
    filter: blur(8px);
    animation: flame 4s infinite alternate;
    z-index: 1;
}

.llama-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.llama-2 {
    top: 5%;
    right: 15%;
    animation-delay: 1.3s;
}

.llama-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 2.7s;
}

/* Efectos de hover mejorados */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-hover-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.btn-hover-effect:hover::before {
    left: 100%;
}

/* Efectos para botones de agregar */
.btn-add {
    transition: all 0.3s ease;
}

.btn-add:hover {
    animation: tada 0.6s ease;
}

.btn-add.shake {
    animation: shake 0.5s ease;
}

/* Animación de carga */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--amarillo);
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

/* Efectos de entrada para scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.zoom-in {
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.6s ease;
}

.zoom-in.visible {
    transform: scale(1);
    opacity: 1;
}

.slide-in-left {
    transform: translateX(-50px);
    opacity: 0;
    transition: all 0.8s ease;
}

.slide-in-left.visible {
    transform: translateX(0);
    opacity: 1;
}

.slide-in-right {
    transform: translateX(50px);
    opacity: 0;
    transition: all 0.8s ease;
}

.slide-in-right.visible {
    transform: translateX(0);
    opacity: 1;
}

/* Animaciones para items del menú */
.menu-item {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.menu-item:hover {
    transform: translateY(-8px) scale(1.02);
}

.filter-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--amarillo);
    transition: width 0.3s ease;
}

.filter-btn.active::after {
    width: 100%;
}

.filter-btn.active {
    animation: bounce 0.5s ease;
}

/* Efectos para cards especiales */
.special-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.special-card:hover {
    transform: translateY(-8px) rotate(1deg);
}

.special-badge {
    animation: bounce 2s infinite;
}

/* Animaciones para testimonios */
.testimonial-card {
    transition: all 0.4s ease;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 4rem;
    color: var(--rojo);
    opacity: 0.1;
    font-family: serif;
    line-height: 1;
    z-index: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.rating i {
    transition: transform 0.3s ease;
}

.rating:hover i {
    animation: tada 0.6s ease;
}

/* Efectos para el formulario */
.form-group input:focus,
.form-group textarea:focus {
    animation: pulse 1s;
}

/* Efectos para precios */
.price {
    position: relative;
    transition: all 0.3s ease;
}

.price:hover {
    transform: scale(1.05);
    color: var(--naranja);
}

/* Animaciones para íconos */
.feature i {
    transition: all 0.4s ease;
}

.feature:hover i {
    transform: scale(1.2) rotate(10deg);
    color: var(--naranja);
}

/* Efectos para social links */
.social-link {
    transition: all 0.3s ease;
    position: relative;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    animation: tada 0.6s ease;
}

/* Animaciones para el header */
header {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--amarillo);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Efectos para contadores */
.counter {
    font-variant-numeric: tabular-nums;
    transition: all 0.3s ease;
}

.counter.animating {
    animation: bounce 0.6s ease;
}

/* Efectos de confeti */
.confetti-piece {
    position: fixed;
    width: 12px;
    height: 12px;
    background: #ff0000;
    top: -10px;
    opacity: 1;
    z-index: 9999;
    pointer-events: none;
    border-radius: 2px;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes confetti-bounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-25px) rotate(180deg);
    }
}

/* Efectos para mobile */
@media (max-width: 768px) {
    .neon-text {
        animation: none;
        text-shadow: 
            0 0 10px var(--rojo),
            0 0 20px var(--rojo);
    }
    
    .food-card {
        animation: float 5s ease-in-out infinite;
    }
    
    .llama {
        display: none; /* Ocultar llamas en móvil para mejor rendimiento */
    }
}

/* Clases de utilidad para animaciones */
.animate-bounce {
    animation: bounce 1s infinite;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-shake {
    animation: shake 0.5s ease;
}

.animate-tada {
    animation: tada 0.6s ease;
}

.animate-fadeIn {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.8s ease forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.8s ease forwards;
}

.animate-zoomIn {
    animation: zoomIn 0.6s ease forwards;
}

/* Transiciones suaves para todos los elementos interactivos */
a, button, .btn, .menu-item, .special-card, .testimonial-card, .feature {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Efectos de profundidad para hover */
.menu-item, .special-card, .testimonial-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.menu-item:hover, .special-card:hover, .testimonial-card:hover {
    transform: translateY(-8px) rotateX(2deg);
}

/* Animación de entrada para la página */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-image {
    animation: slideInRight 1s ease-out 0.3s both;
}

/* Efecto de aparición escalonada para elementos del menú */
.menu-item:nth-child(1) { transition-delay: 0.1s; }
.menu-item:nth-child(2) { transition-delay: 0.2s; }
.menu-item:nth-child(3) { transition-delay: 0.3s; }
.menu-item:nth-child(4) { transition-delay: 0.4s; }
.menu-item:nth-child(5) { transition-delay: 0.5s; }
.menu-item:nth-child(6) { transition-delay: 0.6s; }
.menu-item:nth-child(7) { transition-delay: 0.7s; }
.menu-item:nth-child(8) { transition-delay: 0.8s; }

/* Efecto de carga para imágenes */
.food-image {
    transition: opacity 0.5s ease, transform 0.3s ease;
}

.food-image.loading {
    opacity: 0.3;
}

.food-image.loaded {
    opacity: 1;
}