.padre {
    padding: 30px 0px 30px 0px;
}

.pizza-card {
    transition: transform 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.pizza-card:hover {
    transform: scale(1.05);
}

.logo {
    border-radius: 50px;
    margin: 0px 0px 0px 20px;
    
}
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&display=swap');

body {
    font-family: 'Merriweather', serif;
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.payment-section {
    max-width: 400px;
    margin: auto;
    border-radius: 10px;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 4px 8px;
    font-size: 0.8rem;
}

/* Animación para el carrusel de frases */
#phraseCarousel .carousel-item {
    opacity: 0;
    transform: translateZ(-200px);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    will-change: opacity, transform;
    position: absolute;
    width: 100%;
}

/* Cuando la frase está activa, se acerca y se vuelve visible */
#phraseCarousel .carousel-item.active {
    opacity: 1;
    transform: translateZ(0);
    position: relative;
}

/* Cuando la frase desaparece, se aleja */
#phraseCarousel .carousel-item:not(.active) {
    opacity: 0;
    transform: translateZ(200px);
}


/* Estilos mejorados del carrusel */
#pizzaCarousel {
    max-width: 900px;
    margin: auto;
    border-radius: 15px;
    overflow: hidden;
}

#pizzaCarousel .carousel-item {
    transition: transform 1s ease-in-out, opacity 0.8s ease-in-out;
}

#pizzaCarousel .carousel-item img {
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    filter: brightness(90%);
    transition: filter 0.50s ease-in-out, transform 1s ease-in-out;
}

#pizzaCarousel .carousel-item.active img {
    filter: brightness(100%);
    transform: scale(1.10);
}

/* Fade Effect para el Carrusel */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* Controles del carrusel */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: brightness(70%);
    transition: filter 0.3s ease-in-out;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    filter: brightness(100%);
}

#pizzaCarousel .carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 20px;
    animation: fadeInUp 1s ease-in-out;
}

/* Animación para subtítulos */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-item {
    border-bottom: 1px solid #dee2e6;
    padding: 10px 0;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .navbar-brand img {
        width: 150px;
        margin: 0px 0px 0px 10px;
        border-radius: 50%;
    }

    #phraseCarousel h3 {
        font-size: 1rem;
    }

    #pizzaCarousel .carousel-item img {
        height: 200px;
    }

}

body::before {
    margin: 0;
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url('https://img.freepik.com/vector-premium/pizza-patrones-fisuras-textura-impresion-superficie-comida-italiana_167235-223.jpg?semt=ais_hybrid') center/cover no-repeat;
    filter: blur(10px);
    z-index: -1;
}

.burger {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 300ms;
    border-radius: 10px;
    position: relative;
}

.cart-button {
    position: relative;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s;
}

.cart-button:hover {
    transform: translateY(-2px);
}




/* Estilos base para la barra de categorías */
.category-buttons {
    padding: 10px 0;
    position: relative;
    background: #fff;
}

/* Contenedor flexible con scroll horizontal */
.category-buttons .container-fluid {
    display: flex;
    justify-content: start;
    overflow-x: auto;
    scrollbar-width: none; /* Oculta en Firefox */
    scroll-behavior: smooth;
    position: relative;
}

/* Oculta la barra de desplazamiento en navegadores webkit */
.category-buttons .container-fluid::-webkit-scrollbar {
    display: none;
}

/* Botones */
.category-btn {
    flex-shrink: 0;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Efecto hover */
.category-btn:hover {
    background: #dc3545;
    color: white;
}

/* Activo */
.category-btn.active {
    background: #dc3545;
    color: white;
}

/* Sombras para indicar más contenido */
.scroll-shadow-left, .scroll-shadow-right {
    position: absolute;
    top: 0;
    width: 30px;
    height: 100%;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.scroll-shadow-left {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    opacity: 0;
}

.scroll-shadow-right {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

/* Responsivo */
@media (max-width: 768px) {
    .category-buttons .container-fluid {
        padding: 15px 10px;
    }

    .category-btn {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .category-btn {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}













.pizza-animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  .pizza-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    perspective: 1000px;
    animation: appearPizza 0.8s ease-out, floatPizza 2s ease-in-out infinite;
  }
  
  .pizza-base {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotatePizza 5s linear infinite;
    filter: drop-shadow(0px 0px 10px rgba(255, 215, 0, 0.4));
  }
  
  .crust {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, #d4a017 30%, #ffcc33 70%);
    transform: translateZ(10px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: growCrust 0.6s ease-out;
  }
  
  .sauce {
    position: absolute;
    width: 90%;
    height: 90%;
    top: 5%;
    left: 5%;
    border-radius: 50%;
    background: linear-gradient(45deg, #b20000, #ff3333);
    transform: translateZ(12px);
    animation: spreadSauce 0.6s ease-out 0.3s both;
  }
  
  .cheese {
    position: absolute;
    width: 85%;
    height: 85%;
    top: 7.5%;
    left: 7.5%;
    border-radius: 50%;
    background: radial-gradient(circle, #ffd700 40%, #f0e68c 80%);
    transform: translateZ(14px);
    animation: meltCheese 0.6s ease-out 0.6s both;
  }
  
  .pepperoni, .mushroom {
    position: absolute;
    width: 15%;
    height: 15%;
    border-radius: 50%;
    transform: translateZ(16px);
    animation: addTopping 0.5s ease-out backwards;
  }
  
  .pepperoni {
    background: radial-gradient(circle, #b20000 20%, #8b0000 80%);
  }
  
  .mushroom {
    background: radial-gradient(circle, #a67c52 40%, #8b4513 80%);
  }
  
  .p1 { top: 20%; left: 20%; animation-delay: 0.9s; }
  .p2 { top: 60%; left: 60%; animation-delay: 1.1s; }
  .p3 { top: 20%; left: 60%; animation-delay: 1.3s; }
  .p4 { top: 60%; left: 20%; animation-delay: 1.5s; }
  .p5 { top: 40%; left: 40%; animation-delay: 1.7s; }
  
  .m1 { top: 30%; left: 40%; animation-delay: 1.9s; }
  .m2 { top: 50%; left: 30%; animation-delay: 2.1s; }
  .m3 { top: 40%; left: 70%; animation-delay: 2.3s; }
  .m4 { top: 70%; left: 40%; animation-delay: 2.5s; }
  
  .particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    animation: particleExplosion 2s ease-in-out infinite;
  }
  
  .success-message {
    position: absolute;
    bottom: 15%;
    color: #ffcc33;
    font-size: 2.5em;
    font-weight: bold;
    opacity: 0;
    text-shadow: 2px 2px 10px rgba(255, 215, 0, 0.8);
    animation: showMessage 1.5s ease-out 2s forwards;
  }
  

 

  /* ANIMACIONES */
  @keyframes appearPizza {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
  
  @keyframes rotatePizza {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
  }
  
  @keyframes floatPizza {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
  }
  
  @keyframes growCrust {
    from { transform: translateZ(10px) scale(0); }
    to { transform: translateZ(10px) scale(1); }
  }
  
  @keyframes spreadSauce {
    from { transform: translateZ(12px) scale(0); opacity: 0; }
    to { transform: translateZ(12px) scale(1); opacity: 1; }
  }
  
  @keyframes meltCheese {
    from { transform: translateZ(14px) scale(0); opacity: 0; }
    to { transform: translateZ(14px) scale(1); opacity: 1; }
  }
  
  @keyframes addTopping {
    from { transform: translateZ(16px) scale(0) rotate(180deg); opacity: 0; }
    to { transform: translateZ(16px) scale(1) rotate(0deg); opacity: 1; }
  }
  
  @keyframes particleExplosion {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(4); opacity: 0; }
  }
  
  @keyframes showMessage {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }