:root {
    --primary: #fff;
    --secondary: #000;
    --bg: #000;
    --bg2: #111;
    --bgm: rgba(0, 0, 0, .95);
    --bgo: rgba(0, 0, 0, .8);
    --sh: 0 4px 6px rgba(0, 0, 0, .1)
}

* {
    margin: 0;
    font-family: "Plus Jakarta Sans", "Noto Sans", sans-serif;
    scroll-behavior: smooth;
    box-sizing: border-box;
    font-size: 16px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    background-color: var(--bg);
    background-image: url('/amazeen/static/jpeg/fondo-planta.jpeg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/amazeen/static/jpeg/fondo-planta.jpeg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none
}

@keyframes f {

    0%,
    40% {
        opacity: 0;
        transform: translateY(8px)
    }

    55%,
    75% {
        opacity: 1;
        transform: translateY(0)
    }

    92%,
    100% {
        opacity: 0;
        transform: translateY(-8px)
    }
}

@keyframes fb {

    0%,
    40% {
        background-color: transparent
    }

    55%,
    75% {
        background-color: rgba(255, 255, 255, .8)
    }

    92%,
    100% {
        background-color: transparent
    }
}

@keyframes ht {

    0%,
    40% {
        opacity: 1;
        transform: translateY(0)
    }

    45%,
    90% {
        opacity: 0;
        transform: translateY(-20px)
    }

    95%,
    100% {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes hs {

    0%,
    45% {
        opacity: 0;
        transform: translateY(20px)
    }

    50%,
    85% {
        opacity: 1;
        transform: translateY(0)
    }

    90%,
    100% {
        opacity: 0;
        transform: translateY(-20px)
    }
}

.header-container {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg) 0, var(--bg2) 50%, var(--bg) 100%);
    border-bottom: 2px solid var(--primary);
    padding: 1rem 0 .5rem;
    justify-content: center;
    position: relative;
    min-height: 80px
}

.animated-header {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center
}

.main-title,
.main-logo {
    opacity: 0;
    animation: ht 4s ease-in-out forwards
}

.slogan-text {
    position: absolute;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    animation: hs 4s ease-in-out forwards;
    font-style: italic
}

.main-title {
    color: var(--primary);
    font-size: 2.25rem;
    font-weight: bold;
    line-height: 1.1;
    letter-spacing: -.015em;
    text-align: center
}

.logo-image {
    max-height: 120px;
    max-width: 100%;
    object-fit: contain;
    transition: transform .3s
}

.logo-image:hover {
    transform: scale(1.05)
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary);
    box-shadow: var(--sh);
    width: 100%;
    transition: all .3s
}

.navbar.navbar-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0
}

.navbar-spacer {
    height: 110px;
    transition: height .3s
}

.navbar-spacer.active {
    height: 110px
}

.navbar-content {
    display: flex;
    align-items: center;
    padding: 1rem 0.5rem;
    justify-content: center;
    gap: 1rem
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 28rem
}

.search-input {
    width: 100%;
    padding: 10px 34px 10px 8px;
    background: transparent !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
    border-radius: .5rem !important;
    outline: none;
    transition: all .15s;
    box-shadow: var(--sh);
    font-size: 16px
}

.search-input:focus {
    border-color: var(--primary)
}

.search-input::placeholder {
    color: var(--primary) !important
}

.search-input::-webkit-input-placeholder {
    color: var(--primary) !important;
    opacity: 0.7
}

.search-input::-moz-placeholder {
    color: var(--primary) !important;
    opacity: 0.7
}

.search-input:-ms-input-placeholder {
    color: var(--primary) !important;
    opacity: 0.7
}

.search-icon {
    position: absolute;
    right: .75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary)
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(17, 17, 17, .9) 0, rgba(17, 17, 17, .95) 100%);
    border: 2px solid var(--primary);
    border-top: none;
    border-radius: 0 0 .5rem .5rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 50;
    display: none;
    box-shadow: var(--sh)
}

.search-result-item {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .3);
    cursor: pointer;
    transition: background-color .15s;
    color: var(--primary)
}

.search-result-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, .2) 0, rgba(255, 255, 255, .2) 100%);
    box-shadow: var(--sh)
}

.search-result-content {
    display: flex;
    align-items: center;
    gap: 0.75rem
}

.search-result-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1)
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px
}

.search-result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem
}

.search-result-title {
    font-weight: 500;
    font-size: 1rem;
    color: var(--primary);
    line-height: 1.2
}

.search-result-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary)
}

.search-result-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.25rem
}

.search-result-tag {
    background: var(--primary);
    color: var(--secondary);
    padding: 0.15rem 0.3rem;
    border-radius: 0.2rem;
    font-size: 0.6rem;
    font-weight: 600
}

.search-result-tag-more {
    background: rgba(255, 255, 255, 0.3);
    color: var(--primary);
    padding: 0.15rem 0.3rem;
    border-radius: 0.2rem;
    font-size: 0.6rem;
    font-weight: 600
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1rem
}

.dropdown-container {
    position: relative
}

.dropdown-button {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 10px 8px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: .5rem;
    cursor: pointer;
    outline: none;
    transition: all .15s;
    box-shadow: var(--sh)
}

.dropdown-button:hover {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
    box-shadow: var(--sh)
}

.dropdown-arrow {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, .5));
    transition: transform .15s
}

.dropdown-menu {
    position: absolute;
    right: 0;
    margin-top: .5rem;
    width: 12rem;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: .5rem;
    box-shadow: var(--sh);
    opacity: 0;
    visibility: hidden;
    transform: scale(.95);
    transition: all .2s;
    transform-origin: top right;
    overflow: hidden;
    z-index: 1;
}

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: url('/amazeen/static/jpeg/fondo-planta.jpeg');
    background-position: center center;
    background-size: cover;
    filter: blur(5px);
    -webkit-filter: blur(5px);
}

.dropdown-menu::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: rgba(0, 0, 0, 0.6);
}

.dropdown-menu.opacity-100.visible.scale-100 {
    opacity: 1;
    visibility: visible;
    transform: scale(1)
}

.dropdown-list {
    padding: .5rem 0;
    list-style: none;
    margin: 0
}

.dropdown-link {
    display: block;
    padding: .5rem 1rem;
    color: var(--primary);
    text-decoration: none;
    transition: all .15s
}

.dropdown-link:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, .3) 0, rgba(255, 255, 255, .3) 100%);
    color: var(--primary)
}

.nav-cart-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem 1rem;
    background-color: transparent;
    border: 2px solid var(--primary);
    border-radius: .5rem;
    color: var(--primary);
    cursor: pointer;
    position: relative;
    transition: all .3s
}

.nav-cart-button:hover {
    background-color: var(--bg2)
}

.nav-cart-button i {
    font-size: 20px;
    transition: transform .3s
}

.nav-cart-button:hover i {
    transform: scale(1.1)
}

.nav-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary);
    color: var(--secondary);
    border-radius: 50%;
    padding: .25rem;
    min-width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: bold
}

.section-title {
    color: var(--primary);
    font-size: 1.75rem;
    font-weight: bold;
    line-height: 1.1;
    letter-spacing: -.015em;
    padding: 1rem 1rem 1rem 1.5rem
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 10px
}

.product-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform .2s;
    border: 1px solid var(--primary);
    border-radius: .75rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    overflow: hidden
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.6)
}

.product-image {
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    aspect-ratio: 1;
    background-size: cover;
    border-radius: .75rem .75rem 0 0;
    position: relative
}

.product-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, .25);
    border-radius: .75rem .75rem 0 0;
    animation: fb 4s ease-in-out infinite
}

.product-name {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    animation: f 4s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    position: relative
}

.product-name-below {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin: 0;
    padding: 10px 5px 5px
}

.product-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px
}

.price-container {
    text-align: center
}

.price-text {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.33;
    margin: 5px 0 10px;
    text-align: center
}

.product-badges {
    position: absolute;
    top: .5rem;
    left: .5rem;
    display: flex;
    flex-direction: column;
    gap: .25rem
}

.product-badge {
    background: rgba(0, 0, 0, .8);
    color: var(--primary);
    padding: .25rem .5rem;
    border-radius: .25rem;
    font-size: .75rem;
    font-weight: 500
}

.product-tags {
    position: absolute;
    bottom: .5rem;
    right: .5rem;
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    max-width: calc(100% - 1rem)
}

.product-tag {
    background: var(--primary);
    color: var(--secondary);
    padding: .2rem .4rem;
    border-radius: .25rem;
    font-size: .65rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .2rem;
    box-shadow: var(--sh);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.product-tag i {
    font-size: .6rem
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--bgo) 0, rgba(0, 0, 0, .3) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all .3s
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible
}

.modal-content {
    background: transparent;
    border: 2px solid var(--primary);
    box-shadow: var(--sh);
    border-radius: 1rem;
    max-width: 400px;
    width: 94%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(.8);
    transition: transform .3s;
    z-index: 1;
}

.modal-content::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: url('/amazeen/static/jpeg/fondo-planta.jpeg');
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    filter: blur(10px);
    -webkit-filter: blur(10px);
}

.modal-content::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: rgba(0, 0, 0, 0.7);
}

.modal-overlay.active .modal-content {
    transform: scale(1)
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 1.4rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all .2s;
    box-shadow: var(--sh)
}

.modal-close:hover {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
    box-shadow: var(--sh);
    transform: scale(1.1)
}

.modal-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 1rem 1rem 0 0
}

.modal-body {
    padding: 1.5rem
}

.modal-title {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem
}

.modal-price {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem
}

.modal-description {
    color: var(--primary);
    line-height: 1.6;
    margin-bottom: 1.5rem
}

.modal-ingredients-title {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem
}

.modal-ingredients {
    background: linear-gradient(135deg, rgba(255, 255, 255, .03) 0%, rgba(255, 255, 255, .08) 100%);
    border-radius: 1rem;
    border: 2px dashed rgba(255, 255, 255, .15);
    position: relative;
    overflow: hidden
}

.ingredients-container {
    max-height: 140px;
    overflow-y: auto;
    border-radius: .75rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg)
}

.ingredients-container::-webkit-scrollbar {
    width: 6px
}

.ingredients-container::-webkit-scrollbar-track {
    background: var(--bg);
    border-radius: .5rem
}

.ingredients-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary) 0%, rgba(200, 200, 200, 1) 100%);
    border-radius: .5rem;
    transition: all .3s
}

.ingredients-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(200, 200, 200, 1) 0%, var(--primary) 100%)
}

.ingredients-list {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    padding: .5rem
}

.ingredient-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, .9) 0%, rgba(235, 235, 235, .9) 100%);
    color: #000;
    padding: .5rem 1rem;
    border-radius: 2rem;
    font-size: .85rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, .3);
    box-shadow: 0 2px 8px rgba(255, 255, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .3);
    position: relative;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    animation: fadeInUp .5s ease-out forwards;
    opacity: 0
}

.ingredient-item:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 255, 255, .2), inset 0 1px 0 rgba(255, 255, 255, .5);
    border-color: rgba(200, 200, 200, 1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(240, 240, 240, 1) 100%)
}

.ingredient-item:nth-child(1) {
    animation-delay: .1s
}

.ingredient-item:nth-child(2) {
    animation-delay: .2s
}

.ingredient-item:nth-child(3) {
    animation-delay: .3s
}

.ingredient-item:nth-child(4) {
    animation-delay: .4s
}

.ingredient-item:nth-child(5) {
    animation-delay: .5s
}

.ingredient-item:nth-child(6) {
    animation-delay: .6s
}

.ingredient-item:nth-child(7) {
    animation-delay: .7s
}

.ingredient-item:nth-child(8) {
    animation-delay: .8s
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: .3;
        transform: rotate(0deg) scale(1)
    }

    50% {
        opacity: .5;
        transform: rotate(180deg) scale(1.1)
    }
}

.modal-order-button {
    background: var(--primary);
    color: var(--secondary);
    padding: 10px 14px;
    border-radius: .75rem;
    font-weight: bold;
    border: 2px solid var(--primary);
    cursor: pointer;
    font-size: 1rem;
    transition: all .3s;
    margin-left: .5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: auto
}

.modal-order-button:hover {
    background: rgba(255, 255, 255, .9);
    border-color: rgba(255, 255, 255, .9);
    transform: translateY(-2px) scale(1.05)
}

.modal-quantity-section {
    margin-bottom: 0
}

.modal-quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    padding: 1rem
}

.modal-quantity-btn {
    background: #00000000;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sh)
}

.modal-quantity-btn:hover {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
    box-shadow: var(--sh);
    transform: scale(1.1)
}

.modal-quantity-input {
    color: var(--primary);
    font-weight: bold;
    width: 70px;
    text-align: center;
    font-size: 1.3rem;
    background: rgba(255, 255, 255, .15);
    padding: .75rem .5rem;
    border-radius: .75rem;
    border: 2px solid rgba(255, 255, 255, .4);
    outline: none;
    margin: 0 .25rem
}

.modal-quantity-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .2)
}

/* Estilos específicos para iconos de Bootstrap dentro de modales */
.modal-overlay i[class^="bi-"],
.modal-overlay i[class*=" bi-"],
.modal-content i[class^="bi-"],
.modal-content i[class*=" bi-"] {
    font-size: 20px !important;
}

.modal-close i[class^="bi-"],
.modal-close i[class*=" bi-"] {
    font-size: 20px !important;
}

.modal-quantity-btn i[class^="bi-"],
.modal-quantity-btn i[class*=" bi-"] {
    font-size: 20px !important;
}

.modal-order-button i[class^="bi-"],
.modal-order-button i[class*=" bi-"] {
    font-size: 24px !important;
}

.unified-tab i[class^="bi-"],
.unified-tab i[class*=" bi-"] {
    font-size: 24px !important;
}

.cart-action-btn i[class^="bi-"],
.cart-action-btn i[class*=" bi-"],
.quantity-btn i[class^="bi-"],
.quantity-btn i[class*=" bi-"],
.remove-item-btn i[class^="bi-"],
.remove-item-btn i[class*=" bi-"],
.notes-action-btn i[class^="bi-"],
.notes-action-btn i[class*=" bi-"],
.add-note-btn i[class^="bi-"],
.add-note-btn i[class*=" bi-"] {
    font-size: 20px !important;
}

.notification-close-btn i[class^="bi-"],
.notification-close-btn i[class*=" bi-"] {
    font-size: 20px !important;
}

.unified-modal-content {
    max-width: 500px;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    overflow: hidden
}

/* Nuevo header del carrito */
.cart-header {
    background: var(--primary);
    color: var(--secondary);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border-bottom: 2px solid var(--primary);
}

.cart-title {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary);
}

.cart-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
    border: 1px solid var(--primary);
}

/* Navegación del carrito */
.cart-nav {
    display: flex;
    border-bottom: 1px solid var(--primary);
}

.nav-btn {
    flex: 1;
    padding: 18px 15px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.nav-btn.active {
    color: var(--primary);
    background: var(--bg);
    font-weight: 600;
}

.nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 100%);
    border-radius: 3px 3px 0 0;
}



.nav-btn i {
    font-size: 1.1rem;
}

/* Estilos legacy que se mantienen para compatibilidad */
.unified-modal-header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, var(--bgm) 0, rgba(0, 0, 0, .95) 100%);
    border-bottom: 2px solid var(--primary);
    z-index: 10
}

.unified-tabs {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: .5rem
}

.unified-tab {
    flex: 1;
    padding: .75rem;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: .5rem;
    color: var(--primary);
    cursor: pointer;
    transition: all .3s;
    font-weight: 500
}

.unified-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--secondary)
}

.unified-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem
}

.modal-section {
    display: none
}

.modal-section.active {
    display: block
}

.cart-items {
    margin-bottom: 1rem;
    max-height: 400px;
    overflow-y: auto
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: var(--primary)
}

.cart-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, .05);
    border-radius: .5rem;
    border: 1px solid rgba(255, 255, 255, .3);
    position: relative;
    transition: all .3s
}

.cart-item:hover {
    background: rgba(255, 255, 255, .08);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(255, 255, 255, .2)
}

.cart-item-header {
    display: flex;
    align-items: center;
    margin-bottom: .75rem
}

.cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: .5rem;
    overflow: hidden;
    margin-right: 1rem;
    flex-shrink: 0
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.cart-item-details {
    flex: 1;
    margin-right: 1rem;
    margin-left: 1rem
}

.cart-item-details h4 {
    color: var(--primary);
    font-size: 1rem;
    margin: 0 0 .25rem;
    font-weight: 600
}

.cart-item-price {
    color: var(--primary);
    font-weight: bold;
    margin: 0;
    font-size: .9rem
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-right: 1rem;
    background: rgba(0, 0, 0, .2);
    padding: .5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, .3)
}

.quantity-btn {
    background: #00000000;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sh)
}

.quantity-btn:hover {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
    box-shadow: var(--sh);
    transform: scale(1.1)
}

.quantity {
    color: var(--primary);
    font-weight: bold;
    min-width: 40px;
    text-align: center;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, .15);
    padding: .5rem;
    border-radius: .75rem;
    border: 2px solid rgba(255, 255, 255, .4);
    outline: none
}

.quantity:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .2)
}

.cart-item-total {
    color: var(--primary);
    font-weight: bold;
    font-size: 1rem;
    margin-right: .5rem
}

.subtotal-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center
}

.subtotal-label {
    color: var(--primary);
    font-weight: normal;
    font-size: 0.8rem;
    margin-bottom: 0.25rem
}

.subtotal-amount {
    color: var(--primary);
    font-weight: bold;
    font-size: 1rem
}

.remove-item-btn {
    background: var(--primary);
    color: var(--secondary);
    padding: 10px 14px;
    border-radius: .75rem;
    font-weight: bold;
    border: 2px solid var(--primary);
    cursor: pointer;
    font-size: 1rem;
    transition: all .3s;
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: auto
}

.remove-item-btn:hover {
    background: rgba(255, 255, 255, .9);
    border-color: rgba(255, 255, 255, .9);
    transform: translateY(-2px) scale(1.05)
}

.add-note-btn {
    background: #00000000;
    border: 2px solid rgba(255, 255, 255, .3);
    color: var(--primary);
    padding: .25rem .5rem;
    border-radius: .5rem;
    font-size: .75rem;
    cursor: pointer;
    transition: all .3s;
    margin-top: .5rem;
    box-shadow: var(--sh)
}

.add-note-btn:hover {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
    box-shadow: var(--sh);
    transform: scale(1.05)
}

.add-note-btn.has-note {
    border-color: var(--primary);
    color: var(--primary)
}

.cart-item-notes {
    font-size: .8rem;
    color: var(--primary);
    font-style: italic;
    margin-top: .25rem;
    padding: .25rem .5rem;
    background: rgba(0, 0, 0, .2);
    border-radius: .25rem;
    border-left: 3px solid var(--primary)
}

.cart-total {
    border-top: 2px solid rgba(255, 255, 255, .3);
    padding-top: 1rem;
    margin-bottom: 1rem
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary)
}

.customer-form {
    background: rgba(255, 255, 255, .05);
    border-radius: .5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, .3)
}

.customer-form h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center
}

.form-group {
    margin-bottom: 1rem
}

.form-group label {
    display: block;
    color: var(--primary);
    margin-bottom: .5rem;
    font-weight: 500
}

.form-group input,
.form-group select {
    width: 100%;
    padding: .75rem;
    border-radius: .5rem;
    border: 2px solid rgba(255, 255, 255, .3);
    background: rgba(0, 0, 0, .3);
    color: var(--primary);
    font-size: 1rem;
    transition: border-color .3s
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .2)
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px;
    padding-right: 2.5rem
}

.form-group select option {
    background: rgba(0, 0, 0, .9);
    color: var(--primary);
    padding: .5rem
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: .75rem
}

.cart-action-btn {
    padding: .75rem 1.5rem;
    border-radius: .75rem;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all .3s;
    border: 2px solid;
    text-align: center;
    box-shadow: var(--sh)
}

.cart-action-btn.primary {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary)
}

.cart-action-btn.primary:hover {
    background: rgba(255, 255, 255, .9);
    border-color: rgba(255, 255, 255, .9);
    box-shadow: 0 5px 25px rgba(255, 255, 255, .5);
    transform: scale(1.05)
}

.cart-action-btn.secondary {
    background: var(--bg);
    color: var(--primary);
    border-color: var(--primary)
}

.cart-action-btn.secondary:hover {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
    box-shadow: var(--sh);
    transform: scale(1.05)
}

.orders-intro {
    margin-bottom: 1rem;
    text-align: center
}

.orders-subtitle {
    color: var(--primary);
    font-size: .9rem;
    font-style: italic;
    background: rgba(255, 255, 255, .05);
    padding: .75rem;
    border-radius: .5rem;
    border: 1px solid rgba(255, 255, 255, .2)
}

.empty-orders {
    text-align: center;
    padding: 2rem;
    color: var(--primary)
}

.order-completed-item {
    background: rgba(255, 255, 255, .05);
    border: 2px solid rgba(255, 255, 255, .3);
    border-radius: .75rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all .3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1)
}

.order-completed-item:hover {
    background: rgba(255, 255, 255, .08);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .15)
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    cursor: pointer
}

.order-info {
    flex: 1
}

.order-info h4 {
    color: var(--primary);
    margin: 0 0 .5rem;
    font-size: 1.1rem;
    font-weight: 600
}

.order-date {
    color: var(--primary);
    margin: 0 0 .35rem;
    font-size: .85rem;
    opacity: .8
}

.order-customer,
.order-phone {
    color: var(--primary);
    margin: 0 0 .25rem;
    font-size: .9rem
}

.order-total-section {
    display: flex;
    align-items: center;
    gap: .75rem
}

.order-total {
    display: none;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem
}

.toggle-details-btn {
    background: var(--primary);
    border: 2px solid var(--primary);
    border-radius: .5rem;
    color: var(--secondary);
    padding: .5rem .75rem;
    cursor: pointer;
    transition: all .3s;
    font-weight: 600;
    font-size: 1rem;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center
}

.toggle-details-btn:hover {
    background: rgba(255, 255, 255, .2);
    color: var(--primary);
    transform: scale(1.1)
}

.order-details {
    border-top: 2px solid rgba(255, 255, 255, .3);
    padding: 1rem;
    background: rgba(0, 0, 0, .3)
}

.order-products {
    margin-bottom: 1rem
}

.order-details-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 1rem;
    background: var(--primary);
    color: var(--secondary);
    border-radius: .5rem;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 1rem
}

.order-details-total-label {
    font-weight: 600
}

.order-details-total-amount {
    font-weight: bold;
    font-size: 1.2rem
}

.order-product-item {
    padding: .75rem;
    margin-bottom: .75rem;
    border: 2px solid rgba(255, 255, 255, .3);
    border-radius: .5rem;
    background: rgba(255, 255, 255, .05);
    transition: all .3s
}

.order-product-item:hover {
    transform: translateX(5px)
}

.order-product-item:last-child {
    margin-bottom: 0
}

.order-product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem
}

.product-name {
    color: var(--primary);
    font-weight: 500
}

.product-quantity {
    color: var(--primary);
    font-size: .9rem
}

.product-price {
    color: var(--primary);
    font-weight: bold
}

.order-product-notes {
    color: var(--primary);
    font-size: .8rem;
    font-style: italic;
    padding: .25rem .5rem;
    background: rgba(0, 0, 0, .2);
    border-radius: .25rem;
    border-left: 3px solid var(--primary)
}

.loading-message,
.error-message {
    text-align: center;
    padding: 2rem;
    margin: 1rem;
    border-radius: .5rem
}

.loading-message {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .3);
    color: var(--primary)
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, .3);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

.error-message {
    background: rgba(231, 76, 60, .1);
    border: 1px solid #e74c3c;
    color: #e74c3c
}

.error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem
}

.error-icon {
    font-size: 3rem
}

.error-retry-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: .75rem 1.5rem;
    border-radius: .5rem;
    cursor: pointer;
    font-weight: bold;
    transition: all .3s
}

.error-retry-btn:hover {
    background: #c0392b;
    transform: translateY(-2px)
}

@media(min-width:768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .main-title {
        font-size: 3rem
    }

    .slogan-text {
        font-size: 2rem;
        padding-top: 2rem
    }

    .cart-actions {
        flex-direction: row
    }
}

@media(min-width:1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        padding: 1.5rem
    }

    .navbar-content {
        padding: 1.5rem
    }
}

@media(max-width:480px) {
    .logo-image {
        max-height: 60px
    }

    .cart-item-controls {
        gap: .5rem;
        padding: .4rem
    }

    .quantity-btn,
    .modal-quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem
    }

    .quantity {
        min-width: 35px;
        font-size: 1rem;
        padding: .4rem
    }

    .remove-item-btn {
        padding: 8px 10px;
        font-size: 0.9rem
    }

    .modal-close {
        width: 28px;
        height: 28px;
        font-size: 1.2rem
    }
}

.hidden {
    display: none !important
}

.visible {
    display: block !important
}

.rotate-180 {
    transform: rotate(180deg) !important
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    font-weight: 500
}

.notification.show {
    transform: translateX(0)
}

.edit-notes-content {
    max-width: 450px
}

.modal-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, .3);
    background: linear-gradient(135deg, var(--bgm) 0, rgba(0, 0, 0, .95) 100%);
    border-radius: 1rem 1rem 0 0;
    position: relative
}

.modal-header h3 {
    color: var(--primary);
    margin: 0;
    font-size: 1.3rem;
    text-align: center
}

.edit-notes-textarea {
    width: 100%;
    min-height: 100px;
    padding: .75rem;
    border: 2px solid rgba(255, 255, 255, .3);
    border-radius: .5rem;
    background: rgba(0, 0, 0, .3);
    color: var(--primary);
    font-size: 1rem;
    resize: vertical;
    font-family: inherit
}

.edit-notes-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .2)
}

.notes-helper {
    color: var(--primary);
    font-size: .8rem;
    margin-top: .5rem;
    display: block
}

.notes-actions {
    display: flex;
    gap: .75rem;
    margin-top: 1rem
}

.notes-action-btn {
    flex: 1;
    padding: .75rem;
    border-radius: .75rem;
    font-weight: bold;
    cursor: pointer;
    transition: all .3s;
    border: 2px solid;
    box-shadow: var(--sh)
}

.notes-action-btn.primary {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary)
}

.notes-action-btn.secondary {
    background: var(--bg);
    color: var(--primary);
    border-color: var(--primary)
}

.notes-action-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--sh)
}

.order-confirmation-content {
    max-width: 500px;
    max-height: 90vh
}

.confirmation-header {
    text-align: center;
    padding: 2rem 1rem 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, .3)
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem
}

.success-icon::before {
    content: "";
    color: white;
    font-weight: bold
}

.confirmation-title {
    color: var(--primary);
    font-size: 1.5rem;
    margin: 0
}

.order-details {
    padding: 1.5rem
}

.detail-section {
    margin-bottom: 1.5rem
}

.detail-section h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    gap: .5rem
}

.details-content {
    background: rgba(255, 255, 255, .05);
    border-radius: .5rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .2)
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: .5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1)
}

.order-item:last-child {
    border-bottom: none
}

.order-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%
}

.item-name {
    color: var(--primary);
    font-weight: 500
}

.item-quantity {
    color: var(--primary);
    margin: 0 .5rem
}

.item-price {
    color: var(--primary);
    font-weight: bold
}

.order-item-notes {
    font-size: .8rem;
    color: var(--primary);
    font-style: italic;
    margin-top: .25rem;
    padding: .25rem .5rem;
    background: rgba(0, 0, 0, .2);
    border-radius: .25rem;
    border-left: 3px solid var(--primary)
}

.customer-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1)
}

.customer-info-row:last-child {
    border-bottom: none
}

.info-label {
    color: var(--primary);
    font-weight: 500
}

.info-value {
    color: var(--primary);
    font-weight: bold
}

.total-section .details-content {
    text-align: center
}

.total-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary)
}

.confirmation-footer {
    padding: 1.5rem;
    border-top: 2px solid rgba(255, 255, 255, .3);
    text-align: center
}

.status-message {
    color: var(--primary);
    margin-bottom: 1rem;
    font-style: italic
}

.close-confirmation-btn {
    background: var(--primary);
    color: var(--secondary);
    border: 2px solid var(--primary);
    padding: .75rem 2rem;
    border-radius: .5rem;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all .3s
}

.close-confirmation-btn:hover {
    background: rgba(255, 255, 255, .9);
    border-color: rgba(255, 255, 255, .9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, .3)
}

.confirm-order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001
}

.confirm-order-modal-content {
    background: linear-gradient(135deg, var(--bgm) 0, rgba(0, 0, 0, .95) 100%);
    border: 2px solid var(--primary);
    border-radius: 1rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .5)
}

.confirm-order-title {
    color: var(--primary);
    text-align: center;
    padding: 1.5rem 1.5rem 1rem;
    margin: 0;
    font-size: 1.3rem;
    border-bottom: 2px solid rgba(255, 255, 255, .3)
}

.confirm-order-summary {
    padding: 1.5rem;
    max-height: 300px;
    overflow-y: auto
}

.confirm-order-text {
    background: rgba(255, 255, 255, .05);
    color: var(--primary);
    padding: 1rem;
    border-radius: .5rem;
    border: 1px solid rgba(255, 255, 255, .2);
    white-space: pre-wrap;
    font-family: inherit;
    font-size: .9rem;
    line-height: 1.5;
    margin: 0
}

.confirm-order-buttons {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 2px solid rgba(255, 255, 255, .3)
}

.confirm-order-btn {
    flex: 1;
    padding: .75rem;
    border-radius: .75rem;
    font-weight: bold;
    cursor: pointer;
    transition: all .3s;
    border: 2px solid;
    box-shadow: var(--sh)
}

.confirm-order-btn.cancel-btn {
    background: var(--bg);
    color: var(--primary);
    border-color: var(--primary)
}

.confirm-order-btn.cancel-btn:hover {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
    transform: scale(1.05)
}

.confirm-order-btn.confirm-btn {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary)
}

.confirm-order-btn.confirm-btn:hover {
    background: rgba(255, 255, 255, .9);
    border-color: rgba(255, 255, 255, .9);
    transform: scale(1.05)
}

.no-animation {
    animation: none !important
}

.animate-header-title {
    animation: ht 4s ease-in-out forwards !important
}

.animate-header-slogan {
    animation: hs 4s ease-in-out forwards !important
}

.click-icon {
    position: absolute;
    bottom: .5rem;
    right: .5rem;
    background: rgba(0, 0, 0, .7);
    border-radius: 50%;
    padding: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .8;
    transition: all .3s
}

.click-icon:hover {
    opacity: 1;
    transform: scale(1.1)
}

.click-icon svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .5))
}

/* Pantalla de introducción */
.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity .8s ease-out, visibility .8s ease-out
}

.intro-screen.fade-out {
    opacity: 0;
    visibility: hidden
}

.intro-content {
    text-align: center;
    max-width: 90%;
    padding: 2rem;
    position: relative;
    z-index: 1
}

.intro-logo {
    opacity: 0;
    transform: translateY(0) scale(1);
    animation: fadeInSimple 0.7s ease-out forwards;
    animation-delay: 1s;
    display: block
}

.intro-logo-image {
    max-height: 150px;
    max-width: min(80vw, 400px);
    width: auto;
    height: auto;
    object-fit: contain
}

.intro-title {
    color: var(--primary);
    font-size: 3rem;
    font-weight: 900;
    margin: 1rem 0;
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    animation: introTitleAnim 2s ease-out forwards;
    animation-delay: 2.8s
}

.intro-slogan {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 1rem 0;
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    animation: introSloganAnim 2s ease-out forwards;
    animation-delay: 4.8s;
    font-style: italic
}

/* Animaciones de introducción */
@keyframes introLogoAnim {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8)
    }

    20% {
        opacity: 1;
        transform: translateY(0) scale(1.1)
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

@keyframes introTitleAnim {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8)
    }

    20% {
        opacity: 1;
        transform: translateY(0) scale(1.1)
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

@keyframes introSloganAnim {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8)
    }

    20% {
        opacity: 1;
        transform: translateY(0) scale(1.05)
    }

    60% {
        opacity: 1;
        transform: translateY(0) scale(1)
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

@keyframes fadeInSimple {
    0% {
        opacity: 0
    }

    100% {
        opacity: 1
    }
}

@keyframes logoInstantAppear {
    0% {
        opacity: 0
    }

    100% {
        opacity: 1
    }
}

/* Contenedor de hojas */
.leaves-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    animation: fadeInSimple 1s ease-out forwards
}

.leaf {
    position: absolute;
    width: 195px;
    height: 195px;
    object-fit: contain;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    transition: opacity 0.3s ease, transform 0.3s ease
}

.leaf-izquierda {
    top: 50%;
    left: 35%;
    animation: leafIzquierda 2.5s ease-out forwards;
    animation-delay: 2.5s
}

.leaf-derecha {
    top: 50%;
    left: 65%;
    animation: leafDerecha 2.5s ease-out forwards;
    animation-delay: 2.7s
}

.leaf2-izquierda {
    top: 50%;
    left: 29%;
    animation: leaf2Izquierda 2.5s ease-out forwards;
    animation-delay: 2.9s
}

.leaf2-derecha {
    top: 50%;
    left: 69%;
    animation: leaf2Derecha 2.5s ease-out forwards;
    animation-delay: 3.1s
}

/* Hojas Arriba */
.leaf-arriba-izquierda {
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%) rotate(180deg) scaleX(-1);
    animation: leafArribaIzquierda 2.5s ease-out forwards;
    animation-delay: 2.5s
}

.leaf-arriba-derecha {
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%) rotate(0deg) rotate(180deg) scaleX(-1);
    animation: leafArribaDerecha 2.5s ease-out forwards;
    animation-delay: 2.7s
}

.leaf2-arriba-izquierda {
    top: 50%;
    left: 48%;
    transform: translate(-50%, -50%) rotate(180deg) scaleX(-1);
    animation: leaf2ArribaIzquierda 2.5s ease-out forwards;
    animation-delay: 2.9s
}

.leaf2-arriba-derecha {
    top: 50%;
    left: 58%;
    transform: translate(-50%, -50%) rotate(0deg) rotate(180deg) scaleX(-1);
    animation: leaf2ArribaDerecha 2.5s ease-out forwards;
    animation-delay: 3.1s
}

/* Animaciones de hojas */
/* Animaciones de hojas con trayectoria curva (1/4 de circunferencia) */
/* La lógica es: translate(-50%,-50%) [centro] -> rotate(AnguloOrbita) [dirección] -> translateX(Distancia) [radio] -> rotate(GiroHoja) [spin] */

@keyframes leafIzquierda {

    /* Left -> Down (CCW). Fix flip with rotate(180deg) */
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(180deg) translateX(0) rotate(180deg);
    }

    100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) rotate(90deg) translateX(300px) rotate(135deg);
    }
}

@keyframes leafDerecha {

    /* Right -> Down (CW). "Correct" one. */
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(0deg) translateX(0) rotate(0deg);
    }

    100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) rotate(90deg) translateX(300px) rotate(45deg);
    }
}

@keyframes leaf2Izquierda {

    /* Left -> Down-Left (CCW). Fix flip with rotate(180deg) */
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(180deg) translateX(0) rotate(180deg);
    }

    100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) rotate(135deg) translateX(350px) rotate(135deg);
    }
}

@keyframes leaf2Derecha {

    /* Right -> Down-Right (CW). */
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(0deg) translateX(0) rotate(0deg);
    }

    100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) rotate(45deg) translateX(350px) rotate(45deg);
    }
}

/* Animaciones Hojas Arriba */
@keyframes leafArribaIzquierda {

    /* Left -> Up-Left (CW). Flipped 180 + ScaleX(-1) */
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(180deg) translateX(0) rotate(0deg) scaleX(-1);
    }

    100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) rotate(225deg) translateX(300px) rotate(45deg) scaleX(-1);
    }
}

@keyframes leafArribaDerecha {

    /* Right -> Up-Right (CCW). Flipped 180 + ScaleX(-1) */
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(0deg) translateX(0) rotate(180deg) scaleX(-1);
    }

    100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) rotate(-45deg) translateX(300px) rotate(135deg) scaleX(-1);
    }
}

@keyframes leaf2ArribaIzquierda {

    /* Left -> Up (CW). Flipped 180 + ScaleX(-1) */
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(180deg) translateX(0) rotate(0deg) scaleX(-1);
    }

    100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) rotate(270deg) translateX(350px) rotate(90deg) scaleX(-1);
    }
}

@keyframes leaf2ArribaDerecha {

    /* Right -> Up (CCW). Flipped 180 + ScaleX(-1) */
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(0deg) translateX(0) rotate(180deg) scaleX(-1);
    }

    100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) rotate(-90deg) translateX(350px) rotate(90deg) scaleX(-1);
    }
}

/* Estilos para notificaciones */
.notification {
    position: fixed;
    top: 80px;
    right: 10px;
    left: 10px;
    background: var(--primary);
    color: var(--secondary);
    padding: 16px;
    border-radius: 8px;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 500;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 200px;
    margin: 10px;
}

.notification-close-btn {
    background: var(--bg);
    border: 2px solid var(--primary);
    color: var(--primary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    font-size: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: var(--sh);
    flex-shrink: 0;
}

.notification-close-btn:hover {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
    box-shadow: var(--sh);
    transform: scale(1.1);
}

.notification-close-btn i[class^="bi-"],
.notification-close-btn i[class*=" bi-"] {
    font-size: 24px !important;
}

/* Cantidad de toppings centrada */
.modal-topping-quantity {
    appearance: textfield;
    -moz-appearance: textfield;
    width: 34px;
    height: 28px;
    text-align: center;
    padding: 0;
    margin: 0;
    line-height: 28px;
    font-weight: 700;
    border: none;
    background: transparent;
    color: inherit;
}

.modal-topping-quantity::-webkit-outer-spin-button,
.modal-topping-quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
