#menu-carta {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.filtros {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.filtros select {
    padding: 8px;
    font-size: 16px;
    border: 1px solid #d7a260;
    border-radius: 5px;
}

.categorias-menu {
    display: flex;
    justify-content: center;
    gap: 15px;
    overflow-x: auto;
    padding: 10px;
}

.categoria {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: #ddd;
    border-radius: 50%;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.categoria:hover {
    background: #bbb;
}

/* Imagen dentro de la categoría */
.categoria img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid transparent;
    transition: border-color 0.3s;
    object-fit: cover;
}

/* Si la imagen falla, mostrar solo el texto */
.categoria-imagen img:not([src]) {
    display: none;
}

/* Nombre de la categoría siempre visible */
.categoria span {
    font-size: 14px;
    font-weight: bold;
    margin-top: 5px;
    color: black;
    position: absolute;
    bottom: 10px;
    width: 100%;
}

.categoria-btn {
    margin: 5px;
    padding: 10px 15px;
    cursor: pointer;
    border: none;
    background: #d7a260;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.categoria-btn:hover {
    background: #b98a52;
}

/* Efecto hover en imagen */
.categoria:hover img {
    border-color: #d7a260;
}

/* Lista de platos */
.platos-lista {
    margin-top: 20px;
}

.plato-card {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Separa los elementos a los lados */
    gap: 15px;
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

.plato-info {
    flex: 1;
    text-align: left;
}

.plato-precio {
    font-size: 20px; /* 🔹 Aumentamos el tamaño */
    font-weight: bold;
    color: #d7a260;
    text-align: right;
    min-width: 80px; /* 🔹 Para mantener alineado */
}

.plato-card img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
}


.plato-nombre strong {
    font-weight: bold;
}

/* Modal para la imagen ampliada */
.modal {
    display: none; /* Inicialmente oculto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* Fondo oscuro */
    padding-top: 135px;
}

.modal-contenido {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    background-color: #fff; /* Fondo blanco para el contenido */
    padding: 20px; /* Espaciado dentro del modal */
    border-radius: 10px;
    position: relative; /* Esto ayuda a posicionar la X correctamente */
}

#imagen-ampliada {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    margin-bottom: 20px;
}

#nombre-plato {
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.cerrar {
    color: #d7a260 !important; 
    font-size: 30px !important; 
    font-weight: bold !important;
    position: absolute !important;
    top: 15px;
    right: 35px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.cerrar:hover {
    color: #b98a52;
}

.tooltip-alergeno {
    position: absolute;
    z-index: 999;
    background: #d7a260;
    color: white;
    padding: 5px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
}

.alergenos-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.alergeno {
    font-size: 24px;
    cursor: help;
    transition: transform 0.2s;
}

.alergeno:hover {
    transform: scale(1.2);
}

.paso-container {
    display: flex;
    flex-direction: column; /* esto asegura que título y grid están uno debajo del otro */
    margin-bottom: 20px;
}

.paso-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
    margin-top: 10px;
}

.paso-card {
    flex: 0 0 auto;
    width: 120px;
    text-align: center;
    border: 2px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.paso-card:hover,
.paso-card.selected {
    border-color: #d7a260;
    background-color: #f9f6f2;
}