/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&family=Open+Sans:wght@400;600;700&display=swap');

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

:root {
    --primary-color: #D4AF37;
    --secondary-color: #C9A72C;
    --dark-color: #1a1a1a;
    --card-bg: #2a2a2a;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--white);
    background-color: var(--dark-color);
    overflow-x: hidden;
}

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

/* Header */
.header {
    background-color: #000000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--primary-color);
}

.header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem 20px;
}

.logo {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: bold;
    font-family: 'Permanent Marker', cursive;
    text-transform: uppercase;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    width: 100%;
    max-width: 1000px;
}

.nav-arrow {
    background-color: var(--primary-color);
    color: #000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.nav-arrow:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.nav-arrow span {
    line-height: 1;
}

.nav-container {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 1;
}

.nav-container::-webkit-scrollbar {
    display: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1rem;
    flex-wrap: nowrap;
    padding: 0.5rem 0;
}

.nav-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border: 2px solid var(--primary-color);
    background-color: transparent;
}

.nav-link:hover,
.nav-link.active {
    color: #000;
    background-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
}

/* Menu Category Section */
.menu-category {
    padding: 4rem 0 4rem;
    margin-top: 0;
    background-color: var(--dark-color);
    position: relative;
}

.menu-category .container {
    position: relative;
    z-index: 1;
}

.category-title {
    text-align: center;
    font-size: 4rem;
    margin-bottom: 3rem;
    color: var(--white);
    font-family: 'Permanent Marker', cursive;
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    padding-bottom: 1rem;
}

.category-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #999;
    margin-bottom: 3rem;
}

/* Banner de imagen */
.banner-image {
    max-width: 1000px;
    margin: 0 auto 4rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.banner-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .banner-image {
        box-shadow: none;
        border-radius: 0;
        margin-left: -20px;
        margin-right: -20px;
        max-width: none;
        margin-bottom: 2rem;
    }

    .banner-image img {
        height: auto;
    }

    .banner-image:hover img {
        transform: none;
    }
}

@media (max-width: 480px) {
    .banner-image {
        margin-left: -10px;
        margin-right: -10px;
        margin-bottom: 1.5rem;
    }
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

/* Menu Item Card */
.menu-item {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid var(--primary-color);
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
}

.item-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
}

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

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

.item-ver-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: #000;
    padding: 8px 25px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.item-ver-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

.item-content {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.8rem;
}

.item-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.8rem;
}

.item-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    font-family: 'Permanent Marker', cursive;
    text-transform: uppercase;
    line-height: 1.3;
}

.item-description {
    color: var(--white);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-price {
    font-size: 1.8rem;
    font-weight: normal;
    color: var(--primary-color);
    line-height: 1.2;
    font-family: 'Permanent Marker', cursive;
    border: 3px solid var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    display: inline-block;
    background-color: transparent;
    align-self: flex-start;
    margin-bottom: 0.5rem;
}

.item-footer {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: auto;
}

.item-extras {
    display: none;
}

.item-button {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-button:hover {
    background-color: var(--primary-color);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.item-button:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    background-color: #000000;
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .footer {
        margin-top: 2rem;
        padding: 1.5rem 0;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .footer {
        margin-top: 1.5rem;
        padding: 1rem 0;
        font-size: 0.75rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        padding: 0.6rem 10px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav {
        gap: 0.5rem;
    }

    .nav-arrow {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .nav-list {
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        font-weight: 700;
    }

    .menu-category {
        padding: 1.5rem 0 2rem;
    }

    .category-title {
        font-size: 2rem;
        padding-bottom: 0.6rem;
        letter-spacing: 1.5px;
        margin-bottom: 1.5rem;
    }

    .category-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .menu-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .item-image {
        height: 220px;
    }

    .item-ver-btn {
        padding: 6px 16px;
        font-size: 0.7rem;
        bottom: 10px;
        right: 10px;
    }

    .item-content {
        padding: 1.2rem 1rem;
        gap: 0.6rem;
    }

    .item-header {
        margin-bottom: 0.6rem;
    }

    .item-name {
        font-size: 1.1rem;
    }

    .item-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        margin-bottom: 0.7rem;
    }

    .item-price {
        font-size: 1.3rem;
        padding: 0.45rem 0.9rem;
        border: 2px solid var(--primary-color);
        margin-bottom: 0.4rem;
    }

    .item-footer {
        gap: 0;
        margin-top: auto;
    }

    .item-button {
        width: 100%;
        padding: 0.6rem;
        text-align: center;
        font-size: 0.75rem;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav {
        gap: 0.4rem;
    }

    .nav-arrow {
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
    }

    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }

    .category-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
        margin-bottom: 1.5rem;
        padding-bottom: 0.5rem;
    }

    .menu-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .item-image {
        height: 150px;
    }

    .item-ver-btn {
        padding: 4px 10px;
        font-size: 0.6rem;
        bottom: 6px;
        right: 6px;
    }

    .item-content {
        padding: 0.8rem 0.7rem;
        gap: 0.4rem;
    }

    .item-header {
        margin-bottom: 0.4rem;
    }

    .item-name {
        font-size: 0.85rem;
        line-height: 1.2;
    }

    .item-description {
        font-size: 0.65rem;
        -webkit-line-clamp: 2;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }

    .item-price {
        font-size: 1rem;
        padding: 0.35rem 0.6rem;
        border: 2px solid var(--primary-color);
        margin-bottom: 0.3rem;
    }

    .item-footer {
        margin-top: auto;
    }

    .item-button {
        font-size: 0.6rem;
        padding: 0.5rem 0.4rem;
        border-radius: 5px;
    }
}
