/* Reset y fuentes */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    /* CAMBIO: Fondo naranja-rojo cálido (Opción 3) */
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 50%, #FF8C42 100%);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Destellos de luz aleatorios - Estilo rayos de estrella */
.sparkle {
    position: fixed;
    width: 4px;
    height: 4px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    animation: sparkleAnimation 2.5s ease-out;
}

.sparkle::before,
.sparkle::after {
    content: '';
    position: absolute;
    background: linear-gradient(to right, transparent, rgba(255, 215, 0, 0.9), transparent);
    top: 50%;
    left: 50%;
}

/* Rayo horizontal */
.sparkle::before {
    width: 60px;
    height: 2px;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 165, 0, 0.5);
}

/* Rayo vertical */
.sparkle::after {
    width: 2px;
    height: 60px;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 165, 0, 0.5);
}

/* Centro brillante */
.sparkle {
    background: radial-gradient(circle, rgba(255, 215, 0, 1) 0%, rgba(255, 255, 255, 0.9) 30%, transparent 70%);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 215, 0, 1), 0 0 60px rgba(255, 165, 0, 0.7);
}

@keyframes sparkleAnimation {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    20% {
        opacity: 1;
        transform: scale(1.5) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(90deg);
    }
    80% {
        opacity: 0.6;
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) rotate(360deg);
    }
}

/* Logo independiente */
.logo-container {
    position: absolute;
    top: 5px;
    left: 50px;
    z-index: 100;
}

.logo-icon {
    height: 80px;
    width: auto;
    object-fit: contain;
    animation: subtleShake 3s ease-in-out infinite;
}

@keyframes subtleShake {
    0%, 100% {
        transform: rotate(0deg) translateX(0);
    }
    25% {
        transform: rotate(-1deg) translateX(-1px);
    }
    50% {
        transform: rotate(1deg) translateX(1px);
    }
    75% {
        transform: rotate(-0.5deg) translateX(-0.5px);
    }
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 30px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
    /* CAMBIO: Borde naranja */
    border-bottom: 5px solid #F7931E;
}

.header-spacer {
    width: 120px;
}

.menu-title {
    font-family: 'Righteous', cursive;
    font-size: 3rem;
    /* CAMBIO: Color rojo intenso */
    color: #D32F2F;
    text-shadow: 3px 3px 0px #FFA726, 6px 6px 0px rgba(0, 0, 0, 0.2);
    letter-spacing: 3px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* WhatsApp Contact */
.whatsapp-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    padding: 8px 15px;
    border-radius: 25px;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
    margin-top: 10px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-contact:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon {
    width: 30px;
    height: 30px;
}

.whatsapp-number {
    font-family: 'Arial Black', sans-serif;
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 3px;
    padding: 10px 5px 10px 5px;
    height: calc(100vh - 55px);
}

/* Menu Item Card */
.menu-item {
    /* CAMBIO: Fondo crema cálido */
    background: #FFF8E7;
    border-radius: 12px;
    overflow: hidden;
    /* CAMBIO: Sombra naranja cálida */
    box-shadow: 0 8px 25px rgba(247, 147, 30, 0.3), 0 0 0 2px rgba(255, 107, 53, 0.2);
    display: flex;
    flex-direction: row;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid transparent;
    position: relative;
}

.menu-item:hover {
    transform: translateY(-3px);
    /* CAMBIO: Sombra naranja intensa al hover */
    box-shadow: 0 12px 35px rgba(247, 147, 30, 0.5), 0 0 0 3px #F7931E;
    border-color: #FF8C42;
}

/* Círculo de número en esquina superior derecha */
.item-number-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    /* CAMBIO: Amarillo mostaza */
    background: linear-gradient(135deg, #FBC02D 0%, #F9A825 100%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 900;
    color: white;
    box-shadow: 0 4px 12px rgba(251, 192, 45, 0.6), 0 0 20px rgba(251, 192, 45, 0.4);
    z-index: 5;
    border: 3px solid white;
    animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(251, 192, 45, 0.6), 0 0 20px rgba(251, 192, 45, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(251, 192, 45, 0.8), 0 0 25px rgba(251, 192, 45, 0.6);
    }
}

/* Image Container */
.item-image {
    width: 35%;
    height: 100%;
    /* CAMBIO: Fondo degradado cálido */
    background: linear-gradient(135deg, #FFE5B4 0%, #FFDAB9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    /* CAMBIO: Borde naranja */
    border-right: 4px solid #F7931E;
    object-fit: cover;
    flex-shrink: 0;
    animation: gentleSwing 4s ease-in-out infinite;
}

@keyframes gentleSwing {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-2deg) scale(1.02);
    }
    75% {
        transform: rotate(2deg) scale(0.98);
    }
}

/* Si usas imágenes reales */
.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content Container */
.item-content {
    width: 65%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px 12px;
    /* CAMBIO: Fondo degradado suave */
    background: linear-gradient(to bottom, #FFFFFF 0%, #FFF8E7 100%);
}

/* Content */
.item-name {
    font-size: 1rem;
    font-weight: 700;
    /* CAMBIO: Marrón cálido */
    color: #5D4037;
    text-align: left;
    line-height: 1.1;
    margin-bottom: 5px;
}

.item-description {
    font-size: 0.80rem;
    /* CAMBIO: Gris cálido */
    color: #795548;
    text-align: left;
    line-height: 1.2;
    margin-bottom: 8px;
    flex-grow: 1;
}

/* Price */
.item-price {
    font-size: 1.2rem;
    font-weight: 900;
    color: white;
    text-align: center;
    /* CAMBIO: Rojo intenso */
    background: linear-gradient(135deg, #D32F2F 0%, #C62828 100%);
    padding: 4px 6px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(211, 47, 47, 0.5);
    letter-spacing: 1px;
    border: 2px solid #EF5350;
}

/* Animaciones aleatorias individuales para cada precio */
.item-price:nth-child(1) {
    animation: randomPulse1 12s ease-in-out infinite;
}

.item-price:nth-child(2) {
    animation: randomPulse2 15s ease-in-out infinite;
}

.item-price:nth-child(3) {
    animation: randomPulse3 10s ease-in-out infinite;
}

/* Definir múltiples animaciones con tiempos diferentes */
@keyframes randomPulse1 {
    0%, 100% { transform: scale(1); }
    8% { transform: scale(1.12); }
    10% { transform: scale(1); }
    12% { transform: scale(1.12); }
    14%, 100% { transform: scale(1); }
}

@keyframes randomPulse2 {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.12); }
    27% { transform: scale(1); }
    29% { transform: scale(1.12); }
    31%, 100% { transform: scale(1); }
}

@keyframes randomPulse3 {
    0%, 100% { transform: scale(1); }
    45% { transform: scale(1.12); }
    47% { transform: scale(1); }
    49% { transform: scale(1.12); }
    51%, 100% { transform: scale(1); }
}

@keyframes randomPulse4 {
    0%, 100% { transform: scale(1); }
    60% { transform: scale(1.12); }
    62% { transform: scale(1); }
    64% { transform: scale(1.12); }
    66%, 100% { transform: scale(1); }
}

@keyframes randomPulse5 {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.12); }
    17% { transform: scale(1); }
    19% { transform: scale(1.12); }
    21%, 100% { transform: scale(1); }
}

@keyframes randomPulse6 {
    0%, 100% { transform: scale(1); }
    35% { transform: scale(1.12); }
    37% { transform: scale(1); }
    39% { transform: scale(1.12); }
    41%, 100% { transform: scale(1); }
}

@keyframes randomPulse7 {
    0%, 100% { transform: scale(1); }
    72% { transform: scale(1.12); }
    74% { transform: scale(1); }
    76% { transform: scale(1.12); }
    78%, 100% { transform: scale(1); }
}

@keyframes randomPulse8 {
    0%, 100% { transform: scale(1); }
    52% { transform: scale(1.12); }
    54% { transform: scale(1); }
    56% { transform: scale(1.12); }
    58%, 100% { transform: scale(1); }
}

@keyframes randomPulse9 {
    0%, 100% { transform: scale(1); }
    20% { transform: scale(1.12); }
    22% { transform: scale(1); }
    24% { transform: scale(1.12); }
    26%, 100% { transform: scale(1); }
}

@keyframes randomPulse10 {
    0%, 100% { transform: scale(1); }
    80% { transform: scale(1.12); }
    82% { transform: scale(1); }
    84% { transform: scale(1.12); }
    86%, 100% { transform: scale(1); }
}

@keyframes randomPulse11 {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.12); }
    42% { transform: scale(1); }
    44% { transform: scale(1.12); }
    46%, 100% { transform: scale(1); }
}

@keyframes randomPulse12 {
    0%, 100% { transform: scale(1); }
    65% { transform: scale(1.12); }
    67% { transform: scale(1); }
    69% { transform: scale(1.12); }
    71%, 100% { transform: scale(1); }
}

/* Responsive adjustments */
@media (max-width: 1600px) {
    .menu-grid {
        gap: 3px;
        padding: 10px 30px 10px 30px;
    }
    
    .item-image {
        width: 35%;
    }
    
    .item-name {
        font-size: 1rem;
    }
    
    .item-description {
        font-size: 0.9rem;
    }
    
    .item-price {
        font-size: 1.1rem;
    }
    
    .item-number-badge {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

@media (max-width: 1200px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 3px;
        padding: 10px 30px 10px 30px;
    }
    
    .menu-title {
        font-size: 2.5rem;
    }
    
    .item-image {
        width: 35%;
    }
    
    .item-name {
        font-size: 1rem;
    }
    
    .item-description {
        font-size: 0.85rem;
    }
    
    .item-price {
        font-size: 1rem;
    }
    
    .whatsapp-number {
        font-size: 1rem;
    }
    
    .whatsapp-icon {
        width: 25px;
        height: 25px;
    }
    
    .item-number-badge {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        top: 6px;
        right: 6px;
    }
}
