:root {
    --primary-color: #FFC107;
    --primary-dark: #FFA000;
    --primary-light: #FFECB3;
    --white: #FFFFFF;
    --black: #333333;
    --gray: #757575;
    --light-gray: #EEEEEE;
    --whatsapp-color: #25D366;
    --success-color: #4CAF50;
    --disabled-color: #CCCCCC;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 60px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--black);
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--black);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

.navbar {
    background-color: var(--white);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    height: 60px;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.navbar .restaurant-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(90deg, 
        #FFD700,  
        #FFC107,  
        #FFA000,  
        #FFC107,  
        #FFD700);
    background-size: 300% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: yellowGlow 8s linear infinite;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.8s ease;
}

@keyframes yellowGlow {
    0% {
        background-position: 0% center;
        text-shadow: 0 2px 8px rgba(255,193,7,0.3);
    }
    50% {
        background-position: 100% center;
        text-shadow: 0 2px 20px rgba(255,193,7,0.6);
    }
    100% {
        background-position: 0% center;
        text-shadow: 0 2px 8px rgba(255,193,7,0.3);
    }
}

.navbar .restaurant-name:hover {
    animation: yellowGlow 5s linear infinite;
    text-shadow: 0 4px 25px rgba(255,215,0,0.7);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-dark);
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--black);
    cursor: pointer;
    display: none;
}

.hero {
    display: flex;
    height: calc(100vh - 60px);
    min-height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.hero-loaded {
    opacity: 1;
    transform: translateY(0);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s;
}

.hero-loaded .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.6s, transform 0.8s ease-out 0.6s;
}

.hero-loaded h1 {
    opacity: 1;
    transform: translateY(0);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.9s, transform 0.8s ease-out 0.9s;
}

.hero-loaded p {
    opacity: 1;
    transform: translateY(0);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 1.2s, transform 0.8s ease-out 1.2s;
}

.hero-loaded .hero-buttons {
    opacity: 1;
    transform: translateY(0);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--black);
}

.nosotros {
    background-color: #FFF5D2;
}

.nosotros-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nosotros-text {
    flex: 1;
}

.nosotros-text p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.nosotros-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.nosotros-image img {
    transition: transform 0.5s ease;
}

.nosotros-image:hover img {
    transform: scale(1.03);
}

.menu {
    background-color: white;
}

.menu-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
    padding: 10px 0;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    scrollbar-width: none;
}

.menu-filters::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 30px;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--black);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.filter-btn:hover:not(.active) {
    background: var(--primary-light);
    color: var(--black);
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.menu-item {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.item-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-item:hover .item-image img {
    transform: scale(1.05);
}

.availability {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.available {
    background-color: var(--success-color);
    color: white;
}

.not-available {
    background-color: #F44336;
    color: white;
}

.item-info {
    padding: 15px;
}

.item-info h3 {
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.item-info p {
    color: var(--gray);
    margin-bottom: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--light-gray);
    border-radius: 30px;
    overflow: hidden;
}

.quantity-btn {
    background: none;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--black);
    background-color: var(--light-gray);
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: none;
    background: none;
    font-weight: 500;
}

.add-to-cart-btn {
    flex: 1;
    padding: 8px 15px;
    background-color: var(--success-color);
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.add-to-cart-btn:hover {
    background-color: #3e8e41;
}

.add-to-cart-btn.added {
    background-color: var(--primary-color);
    color: var(--black);
}

.add-to-cart-btn:disabled {
    background-color: var(--disabled-color);
    cursor: not-allowed;
}

.reserva {
    background-color: #FFF5D2;
}

.reserva-content {
    display: flex;
    gap: 30px;
}

.reserva-info {
    flex: 1;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 3px;
    min-width: 25px;
    text-align: center;
}

.info-item a {
    transition: color 0.3s ease;
    font-weight: 500;
    position: relative;
    animation: phoneGlow 3s infinite;
}

.info-item a:hover {
    color: #25D366;
    text-shadow: 0 0 8px rgba(37, 211, 102, 0.6);
}

.reserva-map {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer .restaurant-name {
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: none;
    -webkit-text-fill-color: initial;
    text-shadow: none;
    animation: none;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    color: var(--black);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: var(--gray);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.developer-credit-box {
    background-color: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    animation: none;
    margin-top: 10px;
}

.developer-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: normal;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    position: relative;
    animation: textGlow 2s infinite;
}

.developer-link:hover {
    color: var(--white);
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.7);
}

/* Carrito de Compras */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-container {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-container.active {
    right: 0;
}

.cart-overlay.active {
    display: block;
    opacity: 1;
}

.cart-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary-dark);
    font-weight: 600;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--light-gray);
    border-radius: 30px;
    overflow: hidden;
}

.cart-quantity-btn {
    background: none;
    border: none;
    padding: 2px 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--black);
    background-color: var(--light-gray);
}

.cart-quantity-input {
    width: 30px;
    text-align: center;
    border: none;
    background: none;
    font-weight: 500;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 1rem;
    margin-left: 10px;
}

.cart-footer {
    padding: 15px;
    border-top: 1px solid var(--light-gray);
    background-color: var(--white);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.1rem;
}

.cart-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 100px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--black);
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cart-float:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--primary-dark);
    color: var(--white);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Notificación de producto agregado */
.added-notification {
    position: fixed;
    bottom: 180px;
    right: 30px;
    background-color: var(--success-color);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.added-notification.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes phoneGlow {
    0% { text-shadow: 0 0 5px rgba(37, 211, 102, 0.3); }
    50% { text-shadow: 0 0 15px rgba(37, 211, 102, 0.7); }
    100% { text-shadow: 0 0 5px rgba(37, 211, 102, 0.3); }
}

@keyframes textGlow {
    0% { text-shadow: 0 0 5px rgba(255, 193, 7, 0.3); }
    50% { text-shadow: 0 0 15px rgba(255, 193, 7, 0.7); }
    100% { text-shadow: 0 0 5px rgba(255, 193, 7, 0.3); }
}

@media (max-width: 992px) {
    .nosotros-content, .reserva-content {
        flex-direction: column;
    }
    
    .nosotros-image, .reserva-map {
        order: -1;
        margin-bottom: 25px;
    }
    
    .hero h1 {
        font-size: 2.4rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .restaurant-name, .footer .restaurant-name {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 0;
        gap: 0;
        transition: left 0.3s ease;
        margin: 0;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin-left: 0;
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .nav-links a {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn, .btn-outline {
        width: 100%;
        max-width: 250px;
    }
    
    .navbar .restaurant-name {
        font-size: 1.4rem;
    }
    
    .cart-float {
        bottom: 80px;
        right: 20px;
    }
    
    .added-notification {
        bottom: 160px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .menu-items {
        grid-template-columns: 1fr;
    }
    
    .hero {
        min-height: 450px;
        height: 80vh;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .navbar .restaurant-name {
        font-size: 1.2rem;
    }
    
    .footer .restaurant-name {
        font-size: 1.1rem;
    }
    
    /* Ajustes específicos para el carrito en móviles */
    .cart-container {
        width: 100%;
        max-width: 100%;
        height: 70vh;
        bottom: 0;
        top: auto;
        right: 0;
        left: 0;
        transform: translateY(100%);
        border-radius: 15px 15px 0 0;
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
    }

    .cart-container.active {
        transform: translateY(0);
        right: auto;
    }

    .cart-items {
        max-height: calc(70vh - 150px);
    }

    .cart-float {
        bottom: 30px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }

    .added-notification {
        bottom: 100px;
        right: 20px;
    }

    /* Asegurar que el footer del carrito sea sticky */
    .cart-footer {
        position: sticky;
        bottom: 0;
        background: var(--white);
        padding: 15px;
        border-top: 1px solid var(--light-gray);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
}