* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: #fafafa;
    color: #2c2c2c;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.menu-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 80px;
    color: #1a1a1a;
}

.menu-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.menu-item:hover {
    transform: translateY(-5px);
}

.menu-item img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.item-label {
    font-size: 1.2rem;
    letter-spacing: 1px;
    font-weight: 300;
}

.back-link {
    display: inline-block;
    margin-bottom: 40px;
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #1a1a1a;
}

.dish-page {
    text-align: center;
}

.dish-image {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.dish-title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 50px;
    color: #1a1a1a;
}

.ingredients-section {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.ingredients-section h2 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: 1px;
    color: #333;
}

.ingredients-list {
    list-style: none;
    padding: 0;
}

.ingredients-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.ingredients-list li:last-child {
    border-bottom: none;
}

/* Empanadas Grid */
.empanadas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.empanada-card {
    perspective: 1000px;
    cursor: pointer;
    height: 280px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.empanada-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: #fff;
    padding: 15px;
    overflow: visible;
}

.card-back {
    transform: rotateY(180deg);
    background-color: #fff;
    padding-top: 20px;
    justify-content: flex-start;
}

.card-front .empanada-name {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: #1a1a1a;
    margin-bottom: 15px;
    margin-top: 0;
    text-align: center;
}

.card-front img {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.color-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.color-dots.right-side {
    justify-content: flex-end;
    padding-right: 20px;
}

.color-dots.horizontal {
    flex-direction: row;
    justify-content: center;
}

.color-dots.vertical {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.color-dots.bacon-cheese {
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.dots-vertical {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
}

.dot.green {
    background-color: #009A00;
}

.dot.red {
    background-color: #ff0000;
}

.dot.yellow {
    background-color: #FFCF00;
}

.dot.blue {
    background-color: #00CADF;
}

.card-back h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: 1px;
    color: #1a1a1a;
    margin-top: 0;
}

.card-back .ingredients-list {
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 0;
}

.card-back .ingredients-list li {
    font-size: 0.85rem;
    padding: 4px 0;
}

.card-back.many-ingredients h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.card-back.many-ingredients .ingredients-list li {
    font-size: 0.75rem;
    padding: 3px 0;
}

@media (max-width: 768px) {
    .menu-title {
        font-size: 2rem;
        margin-bottom: 50px;
    }

    .menu-items {
        gap: 40px;
    }

    .menu-item img {
        width: 250px;
        height: 250px;
    }

    .dish-title {
        font-size: 2rem;
    }

    .empanadas-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .empanada-card {
        height: 260px;
    }
}

