/* 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: 35px;
    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: 1px 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: 450px;
    overflow: hidden;
    position: relative;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.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: 2.2rem;
    font-weight: normal;
    color: var(--primary-color);
    line-height: 1.2;
    font-family: 'Permanent Marker', cursive;
    display: inline-block;
    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);
}

/* Adiciones List */
.adiciones-list {
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(245, 245, 240, 0.95) 0%, rgba(232, 232, 220, 0.95) 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--primary-color);
}

.adicion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1.2rem;
    margin-bottom: 0.5rem;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.adicion-item:last-child {
    margin-bottom: 0;
}

.adicion-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.5);
    background: rgba(44, 36, 22, 0.95);
    border-left-width: 4px;
}

.adicion-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.adicion-price {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: linear-gradient(135deg, #f5f5f0 0%, #e8e8dc 100%);
    margin: 2rem auto;
    padding: 0;
    border: 8px solid #d4d4c8;
    border-radius: 20px;
    width: 85%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #f4d03f;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background-color: #e8c22e;
    transform: scale(1.1);
}

.modal-close-btn::before,
.modal-close-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 3px;
    background-color: #333;
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-image {
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px 12px 0 0;
    margin: 0;
    overflow: hidden;
    background-color: #000;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-title {
    font-family: 'Permanent Marker', cursive;
    font-size: 40px;
    color: #2c2416;
    text-align: center;
    margin: 1.5rem 3rem 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 rgba(212, 175, 55, 0.3);
}

.modal-description {
    font-size: 1rem;
    color: #3a3a3a;
    text-align: center;
    margin: 0 3rem 1.5rem;
    line-height: 1.7;
    font-weight: 400;
}

.modal-price {
    font-family: 'Permanent Marker', cursive;
    font-size: 2.2rem;
    color: var(--primary-color);
    text-align: center;
    margin: 0 3rem 2.5rem;
    padding: 1rem 2rem;
    border: 4px solid var(--primary-color);
    border-radius: 15px;
    background-color: transparent;
    display: inline-block;
    width: calc(100% - 6rem);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background-color: #000000;
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 1.5rem auto;
        max-height: 85vh;
    }

    .modal-close-btn {
        width: 40px;
        height: 40px;
        top: 15px;
        right: 15px;
    }

    .modal-image {
        height: 350px;
    }

    .modal-title {
        font-size: 1.6rem;
        margin: 1.2rem 2rem 0.8rem;
    }

    .modal-description {
        font-size: 0.9rem;
        margin: 0 2rem 1.2rem;
        line-height: 1.6;
    }

    .modal-price {
        font-size: 1.8rem;
        margin: 0 2rem 2rem;
        padding: 0.8rem 1.5rem;
        width: calc(100% - 4rem);
    }

    .adiciones-list {
        padding: 1.2rem 0.8rem;
        max-width: 100%;
    }

    .adicion-item {
        padding: 0.6rem 1rem;
        margin-bottom: 0.4rem;
    }

    .adicion-name {
        font-size: 0.85rem;
    }

    .adicion-price {
        font-size: 1rem;
    }

    .footer {
        margin-top: 2rem;
        padding: 1.5rem 0;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 92%;
        margin: 1rem auto;
        border-width: 6px;
        max-height: 90vh;
    }

    .modal-close-btn {
        width: 35px;
        height: 35px;
        top: 12px;
        right: 12px;
    }

    .modal-close-btn::before,
    .modal-close-btn::after {
        width: 16px;
        height: 2px;
    }

    .modal-image {
        height: 280px;
    }

    .modal-title {
        font-size: 1.3rem;
        margin: 1rem 1.5rem 0.7rem;
        letter-spacing: 1px;
    }

    .modal-description {
        font-size: 0.8rem;
        margin: 0 1.5rem 1rem;
        line-height: 1.5;
    }

    .modal-price {
        font-size: 1.5rem;
        margin: 0 1.5rem 1.8rem;
        padding: 0.7rem 1rem;
        width: calc(100% - 3rem);
        border-width: 3px;
    }

    .adiciones-list {
        padding: 1rem 0.6rem;
        max-width: 100%;
    }

    .adicion-item {
        padding: 0.6rem 0.8rem;
        margin-bottom: 0.4rem;
        border-left-width: 2px;
    }

    .adicion-item:hover {
        transform: translateX(3px);
    }

    .adicion-name {
        font-size: 0.8rem;
    }

    .adicion-price {
        font-size: 0.95rem;
    }

    .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: 30px;
        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: 300px;
    }

    .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.8rem;
        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: 30px;
        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: 200px;
    }

    .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: 1.4rem;
        margin-bottom: 0.3rem;
    }

    .item-footer {
        margin-top: auto;
    }

    .item-button {
        font-size: 0.6rem;
        padding: 0.5rem 0.4rem;
        border-radius: 5px;
    }

    /* Estilos especiales para cards de 1 columna completa */
    .menu-item.last-item-full {
        grid-column: 1 / -1;
    }

    .menu-item.last-item-full .item-image {
        height: 400px;
        background-color: #000;
    }

    .menu-item.last-item-full .item-image img {
        object-fit: contain;
    }

    .menu-item.last-item-full .item-name {
        font-size: 1.1rem;
    }

    .menu-item.last-item-full .item-description {
        font-size: 0.75rem;
    }

    .menu-item.last-item-full .item-price {
        font-size: 1.8rem;
    }
}
