/* ============================================
   Martini Menú de Autor - Modal
   ============================================ */

.mma-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.mma-modal.is-open {
    display: flex;
    animation: mma-fade-in 0.25s ease-out;
}
@keyframes mma-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.mma-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
    cursor: pointer;
}

.mma-modal-dialog {
    position: relative;
    background: #fff;
    color: #1a1a1a;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    padding: 40px 32px 32px;
    box-sizing: border-box;
    animation: mma-slide-up 0.3s ease-out;
}
@keyframes mma-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.mma-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #666;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}
.mma-modal-close:hover {
    background: #f3f3f3;
    color: #000;
}

.mma-modal-title {
    margin: 0 0 20px;
    font-size: 26px;
    font-weight: 600;
    text-align: center;
    color: #1a1a1a;
    letter-spacing: 0.5px;
}

.mma-modal-platos {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    border-top: 1px solid #eaeaea;
}
.mma-modal-platos li {
    padding: 14px 4px;
    border-bottom: 1px solid #eaeaea;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    text-align: center;
}

.mma-modal-disponible {
    margin: 0 0 28px;
    padding: 0;
    text-align: center;
    font-size: 14px;
    color: #777;
    font-style: italic;
}

.mma-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.mma-modal-btn {
    flex: 1;
    max-width: 200px;
    padding: 12px 20px;
    border: 0;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
    box-sizing: border-box;
    line-height: 1.4;
    font-family: inherit;
}
.mma-modal-btn-secondary {
    background: #f3f3f3;
    color: #333;
}
.mma-modal-btn-secondary:hover {
    background: #e5e5e5;
}
.mma-modal-btn-primary {
    background: #1a1a1a;
    color: #fff;
}
.mma-modal-btn-primary:hover {
    background: #000;
    color: #fff;
}

/* Bloqueo de scroll del body */
body.mma-modal-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 480px) {
    .mma-modal-dialog {
        padding: 36px 20px 24px;
    }
    .mma-modal-title {
        font-size: 22px;
    }
    .mma-modal-actions {
        flex-direction: column;
    }
    .mma-modal-btn {
        max-width: 100%;
    }
}
