/*
 * modal.css — Estilos compartidos del modal de platos
 * Incluido en home.php y res/menu.php
 */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--h-pie-fondo-a90, rgba(7,15,22,0.9));
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 20px 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.modal-overlay.abierto { opacity: 1; pointer-events: all; }

.modal {
    background: var(--h-fondo-claro);
    max-width: 820px;
    width: 100%;
    height: min(88vh, 560px, calc(100vh - 110px));
    overflow: hidden;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
    border: 1px solid var(--h-borde);
}
.modal-overlay.abierto .modal { transform: translateY(0); }

.modal__cerrar {
    position: absolute;
    top: 16px; right: 16px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    z-index: 1;
    transition: color 0.2s;
}
.modal__cerrar:hover { color: var(--h-dorado); }

.modal__foto-col {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal__imagen {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
.modal__imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal__thumbs {
    display: flex;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(0,0,0,0.25);
    overflow-x: auto;
    flex-shrink: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.modal__thumb {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border: 2px solid transparent;
    cursor: pointer;
    background: none;
    padding: 0;
    overflow: hidden;
    border-radius: 2px;
    opacity: 0.55;
    transition: opacity .2s, border-color .2s;
}
.modal__thumb:hover { opacity: 0.85; }
.modal__thumb--activo { border-color: var(--h-dorado); opacity: 1; }
.modal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.modal__info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
}
.modal__info h3 {
    font-family: var(--fuente-display);
    font-size: 1.9rem;
    line-height: 1.05;
    font-weight: 600;
    font-style: italic;
    color: var(--h-texto);
    margin-bottom: 12px;
}
.modal__info p {
    font-family: var(--fuente-cuerpo);
    font-size: 13px;
    color: var(--h-texto-suave);
    line-height: 1.8;
}
.modal__info img { max-width: 100%; height: auto; display: block; margin: 8px 0; }
