/* ===============================
   CATÁLOGO – PLATO RESPONSIVE
   Sistema escalable por variables
================================ */

/* Contenedor del plato */
.plato-container {
    width: 80%;
    height: var(--plato-height, 350px);
    border-radius: 21px 21px 0 0;
    position: relative;
    overflow: visible;
    /* permite superposición */
    margin: 0 auto;
}

/* Imagen del plato */
.plato-img {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: var(--plato-width, 90%);
    transform: translate(-50%, var(--plato-offset, 55%)) rotate(5deg);
    transition: transform 0.4s ease, filter 0.4s ease;
    pointer-events: none;
    filter: drop-shadow(0 0 0.4rem rgb(0, 0, 0, 0.4));
}

/* Hover SOLO en dispositivos con hover real */
@media (hover: hover) {
    .plato-container:hover .plato-img {
        transform: translate(-50%, var(--plato-hover-offset, 45%)) rotate(5deg);
    }
}

/* ===============================
   DESKTOP / LAPTOP MEDIO
================================ */
@media (max-width: 1200px) {
    .plato-container {
        --plato-height: 150px;
        --plato-width: 100%;
        --plato-offset: 50%;
        --plato-hover-offset: 15%;
    }
}

/* ===============================
   TABLET REAL (iPad Mini / iPad)
   768px – 900px
================================ */
@media (min-width: 768px) and (max-width: 900px) {
    .plato-container {
        --plato-height: 140px;
        --plato-width: 115%;
        --plato-offset: 25%;
        --plato-hover-offset: 15%;
    }

    .plato-img {
        filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.25));
    }
}

/* ===============================
   MOBILE
   hasta 767px
================================ */
@media (max-width: 767px) {
    .plato-container {
        width: 90%;
        --plato-height: 260px;
        --plato-width: 95%;
        --plato-offset: 60%;
    }
}

/* ===============================
   MOBILE PEQUEÑO
   hasta 480px
================================ */
@media (max-width: 480px) {
    .plato-container {
        width: 95%;
        --plato-height: 220px;
        --plato-width: 100%;
        --plato-offset: 20%;
    }
}

.popover {
    z-index: 9999;
}

.img-zoomable {
    cursor: zoom-in;
    transition: opacity 0.3s ease;
}

.img-zoomable:hover {
    opacity: 0.75;
}

.img-preview {
    max-width: 95vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-backdrop.show {
    opacity: 0.85;
}